Skip to content

Commit

Permalink
webman: Use li::marker for coloring bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
wikku committed Oct 15, 2021
1 parent e0d1668 commit e62ed42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
11 changes: 3 additions & 8 deletions manual/src/html_processing/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,9 @@ html {
margin-left:-1em
}

@mixin disc {
content:"";
color:$logocolor;
margin-right:4px;
margin-left:-1em;
font-family: $font-sans;
font-size:13px;
vertical-align:1px;
@mixin colored-disc-marker {
list-style-type: disc;
li::marker { color:$logocolor; }
}

@mixin diamond {
Expand Down
8 changes: 3 additions & 5 deletions manual/src/html_processing/scss/manual.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
}
ul{list-style:none;}
ul.itemize li::before{@include disc;}
ul.itemize {@include colored-disc-marker;}

/* When the TOC is repeated in the main content */
ul.ul-content {
Expand All @@ -44,7 +44,6 @@
ul{
list-style: none;
li {
margin-left: 0.5ex;
span {
color:#c88b5f;
}
Expand All @@ -54,9 +53,8 @@
}
}
/* only for Contents/Foreword in index.html: */
ul.ul-content li::before{
@include disc;
margin-left: 0;
ul.ul-content {
@include colored-disc-marker;
}
/* table of contents: (manual.001.html): */
ul.toc ul.toc ul.toc{
Expand Down

0 comments on commit e62ed42

Please sign in to comment.