aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorn0b0dy <n0b0dypku@gmail.com>2021-06-11 11:41:07 +0800
committern0b0dy <n0b0dypku@gmail.com>2021-06-11 11:42:15 +0800
commit4212a696d86a642b617222e179419b2019cc65b5 (patch)
tree3d47731d28100287d34b5dd8912791a9b6ba2777 /assets
parente6e7d32b863e7f4a8aaaf897ee1923693f0b24dc (diff)
Keep indent of ol and ul to make multiple lines looks better
Diffstat (limited to 'assets')
-rw-r--r--assets/sass/researcher.scss10
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/sass/researcher.scss b/assets/sass/researcher.scss
index 89b5f09..8bd2561 100644
--- a/assets/sass/researcher.scss
+++ b/assets/sass/researcher.scss
@@ -91,9 +91,15 @@ $y-medium: 1.0rem;
counter-reset: list;
list-style: none;
padding-left: 2rem;
+ & > li {
+ display: table-row;
+ }
& > li:before {
content: "[" counter(list, decimal) "] ";
counter-increment: list;
+ display: table-cell;
+ text-align: right;
+ padding-right: .5em;
}
}
.container > ol, .footnotes > ol {
@@ -102,6 +108,10 @@ $y-medium: 1.0rem;
ul {
list-style: inside;
padding-left: 2rem;
+ & > li {
+ list-style-position: outside;
+ margin-left: 1em;
+ }
}
.container > ul, .footnotes > ul {
padding-left: 0;