Skip to content

Commit 4c3afe6

Browse files
committed
Improve the layout of list.
1 parent 4b07838 commit 4c3afe6

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

assets/css/_addon/main.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -823,13 +823,9 @@ div.post-content .table-wrapper {
823823
p {
824824
font-size: 1.08rem;
825825
}
826-
> ol, > ul {
827-
> li {
828-
margin-top: 0.5rem;
829-
}
830-
}
831826
}
832827

828+
833829
.tag:hover {
834830
@extend %tag-hover;
835831
}

assets/css/post.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
2727
border-color: var(--btn-border-color);
2828
}
2929

30-
.post {
30+
.post-content {
3131
img {
3232
max-width: 100%;
3333
margin-top: .5rem;
@@ -38,6 +38,20 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
3838
-ms-transform: translateX(-50%);
3939
transform: translateX(-50%);
4040
}
41+
> ol, > ul, > dl {
42+
padding-left: 2rem;
43+
li+li {
44+
margin-top: 0.3rem;
45+
}
46+
}
47+
li {
48+
> ol, > ul, > dl { // sub list
49+
padding-left: 2rem;
50+
}
51+
> p {
52+
margin: 1rem 0 0.8rem;
53+
}
54+
}
4155
}
4256

4357
.post-tail-wrapper {

0 commit comments

Comments
 (0)