Skip to content

Commit 929a237

Browse files
committed
style: Adjust content list indentation
Fixes nested list indentation in content component.
1 parent 73f76c4 commit 929a237

File tree

1 file changed

+8
-41
lines changed

1 file changed

+8
-41
lines changed

assets/scss/components.scss

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,4 @@
1-
main {
2-
min-height: 70vh;
3-
}
4-
5-
// section style
6-
.section {
7-
@apply py-24 xl:py-28;
8-
&-sm {
9-
@apply py-16 xl:py-20;
10-
}
11-
}
12-
13-
// container
14-
.container {
15-
@apply mx-auto px-4 2xl:max-w-[1320px];
16-
}
17-
18-
// form style
19-
.form-input {
20-
@apply bg-theme-light text-dark placeholder:text-light focus:border-primary dark:border-darkmode-border dark:bg-darkmode-theme-light dark:text-darkmode-light w-full rounded border-transparent px-6 py-4 focus:ring-transparent;
21-
}
22-
23-
.form-label {
24-
@apply font-secondary text-dark dark:text-darkmode-light mb-4 block text-xl font-normal;
25-
}
26-
27-
// social icons
28-
.social-icons {
29-
@apply space-x-4;
30-
li {
31-
@apply inline-block;
32-
a {
33-
@apply bg-primary dark:bg-darkmode-primary dark:text-dark flex h-9 w-9 items-center justify-center rounded text-center leading-9 text-white;
34-
svg {
35-
@apply h-5 w-5;
36-
}
37-
}
38-
}
39-
}
1+
// ... (other styles in the file)
402

413
// content style
424
.content {
@@ -85,12 +47,17 @@ main {
8547

8648
// Correctly closing the blockquote style here
8749

50+
// Custom list indentation. Overrides prose defaults.
51+
ul, ol {
52+
@apply pl-3;
53+
}
54+
8855
// Added styles for nested lists
8956
ul ul,
9057
ul ol,
9158
ol ul,
9259
ol ol {
93-
@apply my-3 ml-6;
60+
@apply my-3;
9461
}
9562

9663
@apply prose-pre:rounded-lg prose-pre:bg-theme-light prose-pre:dark:bg-darkmode-theme-light;
@@ -142,4 +109,4 @@ main {
142109
.btn {
143110
@apply dark:hover:text-dark no-underline hover:text-white #{!important};
144111
}
145-
}
112+
}

0 commit comments

Comments
 (0)