autonomic-block-theme/block-styles.css

79 lines
1.9 KiB
CSS
Raw Normal View History

/* For the "Tabbed Heading" block style */
2023-08-29 11:01:38 +00:00
.is-style-tabbed-heading {
display: flex;
height: 36px;
align-items: center;
border-top: 1px solid;
2023-09-04 10:42:47 +00:00
font-size: 14px;
}
2023-08-29 11:01:38 +00:00
.is-style-tabbed-heading::before {
content: "";
border-bottom: 1px solid;
border-right: 1px solid;
width: 80px;
2023-09-04 10:42:47 +00:00
margin-right: 12px;
height: 36px;
border-top: 2px solid var(--wp--preset--color--background);
}
2023-09-04 11:49:16 +00:00
@media (max-width: 782px) {
.is-style-tabbed-heading::before {
width: 32px;
}
}
2023-08-29 11:01:38 +00:00
.is-style-tabbed-heading::after {
content: "";
border-bottom: 1px solid;
flex-grow: 1;
2023-09-04 10:42:47 +00:00
margin-left: 12px;
height: 36px;
border-left: 1px solid;
border-top: 2px solid var(--wp--preset--color--background);
}
2023-08-29 12:11:33 +00:00
/* For the "Markdown-style Heading" block style */
2023-09-04 11:30:40 +00:00
.is-style-markdown-heading {
margin-bottom: 1em;
}
2023-09-04 11:32:24 +00:00
.is-style-markdown-heading.wp-block-post-title a {
2023-09-04 11:26:14 +00:00
display: inline;
}
2023-08-29 12:11:33 +00:00
.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);
}
2023-08-29 12:21:08 +00:00
}
2023-08-29 12:22:03 +00:00
/* For "Arrow" style lists
* TODO: use an svg or dashicons arrow component for this
*/
2023-08-29 12:21:08 +00:00
ul.is-style-arrow-list {
list-style-image: url('https://beta.autonomic.zone/wp-content/uploads/2023/01/arrow.png');
2024-03-31 12:34:06 +00:00
}
/* HACK: fixing stretched out post width in editor */
2024-04-02 09:16:03 +00:00
.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)) {
2024-04-01 08:34:05 +00:00
max-width: 600px !important;
2023-08-29 12:11:33 +00:00
}