Skip to content

Commit 09a4eae

Browse files
authored
chore: fix list style in doc site (#1408)
1 parent b63e566 commit 09a4eae

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs-svelte-kit/src/app.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ h5 + h6 {
8484

8585
ul {
8686
margin: 1rem 0;
87+
--list-padding: 30px;
88+
margin-left: var(--list-padding);
8789
}
8890

8991
pre {

docs-svelte-kit/src/routes/+layout.svelte

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,23 @@
7676
margin: 0 auto;
7777
box-sizing: border-box;
7878
}
79+
80+
.main-content :global(:where(li)) {
81+
margin: 0 0 0.5em;
82+
line-height: 1.5;
83+
position: relative;
84+
}
85+
86+
.main-content :global(:where(ul li):before) {
87+
--sk-back-5: #c2cdd6;
88+
content: '';
89+
background-color: var(--sk-back-5);
90+
opacity: 0.7;
91+
border-radius: 2px;
92+
width: 6px;
93+
height: 6px;
94+
margin-top: 8px;
95+
margin-left: -18px;
96+
position: absolute;
97+
}
7998
</style>

0 commit comments

Comments
 (0)