Skip to content

Commit 273e8bb

Browse files
committed
Rename internal s-prose variable
1 parent 73ffabb commit 273e8bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/css/components/_stacks-prose.less

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
.s-prose {
1414
--s-prose-line-height: 1.5;
1515
--s-prose-spacing: 1.1em;
16-
--s-prose-spacing-half: calc(var(--s-prose-spacing) / 2);
16+
--s-prose-spacing-condensed: calc(var(--s-prose-spacing) / 2); // Reduce the base spacing by half in the context of lists, etc.
1717

1818
// Base styling
1919
font-size: 15px; // Force a font size that doesn’t change at the smallest breakpoint
@@ -206,19 +206,19 @@
206206
dd,
207207
ul,
208208
ol {
209-
margin-bottom: var(--s-prose-spacing-half);
209+
margin-bottom: var(--s-prose-spacing-condensed);
210210
}
211211

212212
pre {
213213
// Add some more spacing on the bottom
214214
// For a little extra optical alignment
215-
margin-bottom: calc(var(--s-prose-spacing-half) + .1em);
215+
margin-bottom: calc(var(--s-prose-spacing-condensed) + .1em);
216216
}
217217
}
218218

219219
ol li,
220220
ul li {
221-
margin-bottom: var(--s-prose-spacing-half);
221+
margin-bottom: var(--s-prose-spacing-condensed);
222222

223223
&:last-child {
224224
margin-bottom: 0;
@@ -228,7 +228,7 @@
228228
li {
229229
> ul,
230230
> ol {
231-
margin-top: var(--s-prose-spacing-half);
231+
margin-top: var(--s-prose-spacing-condensed);
232232
}
233233
}
234234

@@ -337,7 +337,7 @@
337337
// Blockquotes inside list
338338
li {
339339
blockquote {
340-
margin-top: var(--s-prose-spacing-half);
340+
margin-top: var(--s-prose-spacing-condensed);
341341
}
342342
}
343343

0 commit comments

Comments
 (0)