Skip to content

Commit d4dfeb0

Browse files
committed
refactor: ol styling
1 parent ce9745d commit d4dfeb0

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

src/pages/index.astro

+3-1
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ exec "<path-to-directory>/bin/lua-language-server" "$@&quot
640640

641641
.instructions {
642642
ol {
643+
margin-left: 0.5em;
644+
643645
&[type="1"],
644646
&:not([type]) {
645647
counter-reset: item;
@@ -665,7 +667,7 @@ exec "<path-to-directory>/bin/lua-language-server" "$@&quot
665667
}
666668

667669
& > li {
668-
margin: 1em auto;
670+
margin: 0.5em auto;
669671
}
670672
}
671673
}

src/pages/wiki/[...slug].astro

+30
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,33 @@ const modifiedTime = remarkPluginFrontmatter.lastModified
6161
</p>
6262
</div>
6363
</Layout>
64+
65+
<style lang="scss" is:global>
66+
article ol {
67+
margin-left: 0.5em;
68+
counter-reset: item;
69+
list-style: none;
70+
71+
&:first-of-type {
72+
padding-left: 0px;
73+
}
74+
75+
& > li {
76+
margin: 0.5em auto;
77+
78+
&::before {
79+
display: inline-block;
80+
content: counter(item);
81+
counter-increment: item;
82+
font-size: 1.25em;
83+
background-color: #ffffff;
84+
color: #000000;
85+
width: fit-content;
86+
min-width: 1.5em;
87+
text-align: center;
88+
border-radius: 1em;
89+
margin-right: 0.5em;
90+
}
91+
}
92+
}
93+
</style>

0 commit comments

Comments
 (0)