Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ojroques/hugo-researcher.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn0b0dy <n0b0dypku@gmail.com>2021-06-11 06:41:07 +0300
committern0b0dy <n0b0dypku@gmail.com>2021-06-11 06:42:15 +0300
commit4252700ea96ce64bd678e17b2a45a9b9d1fadf44 (patch)
tree3d47731d28100287d34b5dd8912791a9b6ba2777
parent41641db52665a1fb8a7b4083545a6b8f0249e817 (diff)
Keep indent of ol and ul to make multiple lines looks better
-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;