From 9e9278ce30dadf7401b431a26ce53a7c3e8732b5 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:32:23 +0800 Subject: [PATCH] Fix code style of SCSS files --- _sass/addon/commons.scss | 12 ++++-------- _sass/addon/syntax.scss | 3 +-- _sass/colors/dark-typography.scss | 5 ++--- _sass/layout/post.scss | 1 - 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index ee125b6..714b072 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -649,9 +649,6 @@ $sidebar-display: "sidebar-display"; #avatar { > a { - &:hover { - border-color: white; - } display: block; width: 6rem; height: 6rem; @@ -662,6 +659,10 @@ $sidebar-display: "sidebar-display"; -webkit-transition: border-color 0.35s ease-in-out; -moz-transition: border-color 0.35s ease-in-out; transition: border-color 0.35s ease-in-out; + + &:hover { + border-color: white; + } } img { @@ -806,11 +807,6 @@ $sidebar-display: "sidebar-display"; vertical-align: middle; } - i { - line-height: 1.75rem; // default line-height in body - vertical-align: middle; - } - #mode-toggle-wrapper { @extend %icon; diff --git a/_sass/addon/syntax.scss b/_sass/addon/syntax.scss index e868146..ed35cd0 100644 --- a/_sass/addon/syntax.scss +++ b/_sass/addon/syntax.scss @@ -187,7 +187,7 @@ div { span { padding-left: 0.6rem; - &:after { + &::after { content: attr(text-data); margin-left: 0.3rem; font-size: 0.85rem; @@ -202,7 +202,6 @@ div { } - // clipboard button { border: 1px solid var(--code-header-bg); diff --git a/_sass/colors/dark-typography.scss b/_sass/colors/dark-typography.scss index 9d48001..2842739 100644 --- a/_sass/colors/dark-typography.scss +++ b/_sass/colors/dark-typography.scss @@ -100,13 +100,12 @@ nav[data-toggle=toc] .nav-link.active, nav[data-toggle=toc] .nav-link.active:focus, nav[data-toggle=toc] .nav-link.active:hover, - nav[data-toggle=toc] .nav>li>a:focus, - nav[data-toggle=toc] .nav>li>a:hover { + nav[data-toggle=toc] .nav > li > a:focus, + nav[data-toggle=toc] .nav > li > a:hover { color: var(--toc-highlight) !important; border-left-color: var(--toc-highlight) !important; } - /* categories */ .categories.card, .list-group-item { diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss index bf34cb0..16900cb 100644 --- a/_sass/layout/post.scss +++ b/_sass/layout/post.scss @@ -158,7 +158,6 @@ nav[data-toggle=toc] { } } - /* --- Related Posts --- */ #related-posts {