diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-12 16:19:42 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-12 16:19:42 +0800 |
commit | 50a9106b6c72a97aee9d6c430c1b3dac81ee5d3e (patch) | |
tree | 0545f38052034f324348d5bc40d6446edc3c2fe4 /_sass | |
parent | b83c3ac2377deab05c7c80fb9c06718971e2bfb9 (diff) |
feat: change article menu style
Diffstat (limited to '_sass')
-rw-r--r-- | _sass/misc/article-menu.scss | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/_sass/misc/article-menu.scss b/_sass/misc/article-menu.scss index 006f6ee..ff2bf7e 100644 --- a/_sass/misc/article-menu.scss +++ b/_sass/misc/article-menu.scss @@ -7,40 +7,54 @@ max-width: 250px; .post-menu-title { - font-size: $base-font-size * 1.35; - margin-bottom: 6px; + font-size: $base-font-size * 1.5; + margin-bottom: 14px; font-weight: 600; - color: #4e4e4e; - - &:before { - content: '\f02e'; - margin-right: 5px; - font-size: $base-font-size * 1.15; - } + color: #222; } .post-menu-content { ul { + border-left: 1px solid #e9ecef; + $indent: $base-font-size / 4; + $active-bgcolor: #ecebec; + @for $i from 2 to 7 { .h-h#{$i} { - padding-left: ($i - 2) * $base-font-size * 0.9; - font-size: (7 - $i) + $base-font-size * 0.9; + padding-inline-start: $indent + ($i - 2) * $base-font-size * 1.3; + font-size: $base-font-size * 1.2; + line-height: 1.4; } } a { display: flex; - padding: 0px 8px; + padding: 2px 8px; + color: darken($text-color, 10%); * { pointer-events: none; } + + &:hover { + text-decoration: none; + color: lighten($text-color, 20%)!important; + } } .active { - color: white; - background: mix(invert($theme-color), darkorange); + background-color: $active-bgcolor; transition: background 0.5s; + border-left: 2px solid #202020; + margin-left: -2px; + + &:hover { + background-color: lighten($active-bgcolor, 2%); + } + + a { + color: #121416; + } } } } |