autonomic-block-theme/block-styles.css
Aadil Ayub 885dfeb558
All checks were successful
continuous-integration/drone/push Build is passing
trying last commit again
2024-04-02 14:16:03 +05:00

79 lines
1.9 KiB
CSS

/* For the "Tabbed Heading" block style */
.is-style-tabbed-heading {
display: flex;
height: 36px;
align-items: center;
border-top: 1px solid;
font-size: 14px;
}
.is-style-tabbed-heading::before {
content: "";
border-bottom: 1px solid;
border-right: 1px solid;
width: 80px;
margin-right: 12px;
height: 36px;
border-top: 2px solid var(--wp--preset--color--background);
}
@media (max-width: 782px) {
.is-style-tabbed-heading::before {
width: 32px;
}
}
.is-style-tabbed-heading::after {
content: "";
border-bottom: 1px solid;
flex-grow: 1;
margin-left: 12px;
height: 36px;
border-left: 1px solid;
border-top: 2px solid var(--wp--preset--color--background);
}
/* For the "Markdown-style Heading" block style */
.is-style-markdown-heading {
margin-bottom: 1em;
}
.is-style-markdown-heading.wp-block-post-title a {
display: inline;
}
.is-style-markdown-heading::before {
content: "##";
width: 4ch;
margin-right: 0;
font-family: monospace;
margin-inline-end: .3em;
letter-spacing: 2px;
}
@media screen and (max-width: 782px) {
.is-style-markdown-heading::before {
margin-inline-start: 1em;
}
}
@media screen and (min-width: 782px) {
.is-style-markdown-heading {
margin-top: 4em;
font-size: var(--wp--preset--font-size--medium);
}
}
/* For "Arrow" style lists
* TODO: use an svg or dashicons arrow component for this
*/
ul.is-style-arrow-list {
list-style-image: url('https://beta.autonomic.zone/wp-content/uploads/2023/01/arrow.png');
}
/* HACK: fixing stretched out post width in editor */
.edit-post-visual-editor .editor-styles-wrapper .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.edit-post-visual-editor .editor-styles-wrapper .editor-editor-canvas__post-title-wrapper > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
max-width: 600px !important;
}