Convert to css style comments, part 2.
This commit is contained in:
parent
2eee4d3c24
commit
9f8b1eaf18
1 changed files with 234 additions and 201 deletions
|
|
@ -1,25 +1,28 @@
|
|||
// Grouping content
|
||||
/* Grouping content */
|
||||
|
||||
// Block quotes
|
||||
/* Block quotes */
|
||||
|
||||
blockquote {
|
||||
// Add vertical rhythm margins.
|
||||
/* Add vertical rhythm margins. */
|
||||
margin-block: 0 var(--spacing-m);
|
||||
// Nicer text wrap, e.g. no lone word on last line.
|
||||
|
||||
/* Nicer text wrap, e.g. no lone word on last line. */
|
||||
text-wrap: pretty;
|
||||
// Also indent the quote on both sides.
|
||||
|
||||
/* Also indent the quote on both sides. */
|
||||
margin-inline: var(--indent-amount);
|
||||
// Set max text line width in main for readability.
|
||||
|
||||
/* Set max text line width in main for readability. */
|
||||
max-width: var(--max-line-width);
|
||||
}
|
||||
|
||||
// Lists
|
||||
/* Lists */
|
||||
|
||||
dl,
|
||||
ol,
|
||||
ul,
|
||||
menu {
|
||||
// Add vertical rhythm margins.
|
||||
/* Add vertical rhythm margins. */
|
||||
margin-block: 0 var(--spacing-m);
|
||||
}
|
||||
|
||||
|
|
@ -30,7 +33,8 @@ dt {
|
|||
dd {
|
||||
margin: 0;
|
||||
margin-inline-start: var(--indent-amount);
|
||||
// Nicer text wrap, e.g. no lone word on last line.
|
||||
|
||||
/* Nicer text wrap, e.g. no lone word on last line. */
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
|
|
@ -40,7 +44,7 @@ menu {
|
|||
padding: 0;
|
||||
padding-inline-start: var(--indent-amount);
|
||||
|
||||
// Turn off margins on nested lists.
|
||||
/* Turn off margins on nested lists. */
|
||||
ol,
|
||||
ul,
|
||||
menu {
|
||||
|
|
@ -49,49 +53,51 @@ menu {
|
|||
}
|
||||
|
||||
li {
|
||||
// Nicer text wrap, e.g. no lone word on last line.
|
||||
/* Nicer text wrap, e.g. no lone word on last line. */
|
||||
text-wrap: pretty;
|
||||
// Set max text line width in main for readability.
|
||||
|
||||
/* Set max text line width in main for readability. */
|
||||
.main & {
|
||||
max-width: var(--max-line-width);
|
||||
}
|
||||
}
|
||||
|
||||
// Horizontal rule
|
||||
/* Horizontal rule */
|
||||
|
||||
hr {
|
||||
// Add vertical rhythm margins.
|
||||
/* Add vertical rhythm margins. */
|
||||
margin-block: var(--spacing-m);
|
||||
border: 0;
|
||||
border-block-start: 1px solid var(--color-border);
|
||||
height: 0;
|
||||
}
|
||||
|
||||
// Paragraphs
|
||||
/* Paragraphs */
|
||||
|
||||
p {
|
||||
// Add vertical rhythm margins.
|
||||
/* Add vertical rhythm margins. */
|
||||
margin-block: 0 var(--spacing-m);
|
||||
// Nicer text wrap, e.g. no lone word on last line.
|
||||
|
||||
/* Nicer text wrap, e.g. no lone word on last line. */
|
||||
text-wrap: pretty;
|
||||
|
||||
// Set max text line width in main for readability.
|
||||
/* Set max text line width in main for readability. */
|
||||
.main & {
|
||||
max-width: var(--max-line-width);
|
||||
}
|
||||
}
|
||||
|
||||
// Preformatted text
|
||||
/* Preformatted text */
|
||||
|
||||
pre {
|
||||
// Add vertical rhythm margins.
|
||||
/* Add vertical rhythm margins. */
|
||||
margin-block: 0 var(--spacing-m);
|
||||
font-family: var(--ff-monospace);
|
||||
}
|
||||
|
||||
// Code
|
||||
/* Code */
|
||||
|
||||
// Do not set colour for code with syntax highlighting.
|
||||
/* Do not set colour for code with syntax highlighting. */
|
||||
code:not([data-lang]),
|
||||
kbd,
|
||||
samp {
|
||||
|
|
|
|||
Loading…
Reference in a new issue