Skip to content

Commit 146e7bf

Browse files
committed
Improve look of indented config
1 parent ef46648 commit 146e7bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_sass/custom/custom.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ th {
123123
section.config-indent {
124124
--indent-size: 2em;
125125

126-
--bracket-width: 0.5em;
127126
&::before, &::after {
128127
position: relative;
129-
left: calc(-1 * var(--indent-size) - var(--bracket-width) / 2);
128+
font-family: monospace;
129+
left: calc(-1 * var(--indent-size) - 0.5ch); //-0.5ch to center the line neatly between the {}'s
130130
}
131131

132132
&::before { content: "{"; }

0 commit comments

Comments
 (0)