Implement content styles
This commit is contained in:
parent
0e32ba9759
commit
97f088e99f
1 changed files with 18 additions and 35 deletions
|
@ -1,45 +1,28 @@
|
||||||
|
|
||||||
.content {
|
.main--single,
|
||||||
.heading {
|
.main--list,
|
||||||
align-items: center;
|
.content
|
||||||
gap: 0.25em;
|
{
|
||||||
display: flex;
|
blockquote,
|
||||||
}
|
dl,
|
||||||
|
ol,
|
||||||
.heading__anchor {
|
ul
|
||||||
/* font-family: var(--font-family-monospace); */
|
{
|
||||||
font-size: 60%;
|
grid-column: main-start / main-end;
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.codeblock {
|
.codeblock {
|
||||||
|
color: var(--foreground);
|
||||||
|
background-color: var(--background);
|
||||||
|
border: 1px solid var(--gray6);
|
||||||
font-family: var(--font-family-monospace);
|
font-family: var(--font-family-monospace);
|
||||||
|
grid-column: gutter-start / gutter-end;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
padding-block: var(--space-s);
|
||||||
|
|
||||||
|
.line {
|
||||||
|
margin-inline: var(--gutter-width);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.content-title {
|
|
||||||
margin-block: var(--space-xl) var(--space-l);
|
|
||||||
|
|
||||||
/* margin-block-start is handled by the grid */
|
|
||||||
&:first-child, &:first-child .title {
|
|
||||||
margin-block-start: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title:has(+ .subtitle) {
|
|
||||||
margin-block-end: var(--space-xs);
|
|
||||||
}
|
|
||||||
|
|
||||||
.title:not(:has(+ .subtitle)), .subtitle {
|
|
||||||
margin-block-end: var(--space-m);
|
|
||||||
}
|
|
||||||
|
|
||||||
.subtitle {
|
|
||||||
color: var(--gray3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.content-date {
|
|
||||||
margin-block-end: var(--space-paragraph);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading {
|
.heading {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue