Improve the layout of list.

This commit is contained in:
Cotes Chung 2020-08-21 22:44:58 +08:00
parent 717a501c36
commit f0b4e30363
2 changed files with 16 additions and 6 deletions

View file

@ -823,13 +823,9 @@ div.post-content .table-wrapper {
p { p {
font-size: 1.08rem; font-size: 1.08rem;
} }
> ol, > ul {
> li {
margin-top: 0.5rem;
}
}
} }
.tag:hover { .tag:hover {
@extend %tag-hover; @extend %tag-hover;
} }

View file

@ -27,7 +27,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
border-color: var(--btn-border-color); border-color: var(--btn-border-color);
} }
.post { .post-content {
img { img {
max-width: 100%; max-width: 100%;
margin-top: .5rem; margin-top: .5rem;
@ -38,6 +38,20 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
-ms-transform: translateX(-50%); -ms-transform: translateX(-50%);
transform: translateX(-50%); transform: translateX(-50%);
} }
> ol, > ul, > dl {
padding-left: 2rem;
li+li {
margin-top: 0.3rem;
}
}
li {
> ol, > ul, > dl { // sub list
padding-left: 2rem;
}
> p {
margin: 1rem 0 0.8rem;
}
}
} }
.post-tail-wrapper { .post-tail-wrapper {