Merge branch 'feature/icons-improvement' into develop

This commit is contained in:
Cotes Chung 2021-09-24 15:32:35 +08:00
commit 30dfc6fb7e
4 changed files with 37 additions and 18 deletions

View file

@ -806,6 +806,11 @@ $sidebar-display: "sidebar-display";
vertical-align: middle; vertical-align: middle;
} }
i {
line-height: 1.75rem; // default line-height in body
vertical-align: middle;
}
#mode-toggle-wrapper { #mode-toggle-wrapper {
@extend %icon; @extend %icon;
@ -1081,18 +1086,27 @@ $sidebar-display: "sidebar-display";
/* --- button back-to-top --- */ /* --- button back-to-top --- */
#back-to-top { #back-to-top {
$size: 2.7em;
display: none; display: none;
z-index: 1; z-index: 1;
cursor: pointer; cursor: pointer;
position: fixed; position: fixed;
background: var(--button-bg); background: var(--button-bg);
color: var(--btn-backtotop-color); color: var(--btn-backtotop-color);
height: 2.6em; padding: 0;
width: 2.7em; width: $size;
height: $size;
border-radius: 50%; border-radius: 50%;
border: 1px solid var(--btn-backtotop-border-color); border: 1px solid var(--btn-backtotop-border-color);
transition: 0.2s ease-out; transition: transform 0.2s ease-out;
-webkit-transition: 0.2s ease-out; -webkit-transition: transform 0.2s ease-out;
i {
line-height: $size;
position: relative;
bottom: 2px;
}
} }
#back-to-top:hover { #back-to-top:hover {

View file

@ -77,6 +77,7 @@
/* categories */ /* categories */
--categories-border: rgb(64, 66, 69); --categories-border: rgb(64, 66, 69);
--categories-hover-bg: rgb(73, 75, 76); --categories-hover-bg: rgb(73, 75, 76);
--categories-icon-hover-color: white;
/* archives */ /* archives */
--timeline-node-bg: rgb(150, 152, 156); --timeline-node-bg: rgb(150, 152, 156);

View file

@ -65,9 +65,12 @@
--tag-hover: rgb(222, 226, 230); --tag-hover: rgb(222, 226, 230);
--tb-odd-bg: #fbfcfd; --tb-odd-bg: #fbfcfd;
--tb-border-color: #eaeaea; --tb-border-color: #eaeaea;
--categories-hover-bg: var(--btn-border-color);
--dash-color: silver; --dash-color: silver;
/* Categories */
--categories-hover-bg: var(--btn-border-color);
--categories-icon-hover-color: darkslategray;
/* Archive */ /* Archive */
--timeline-color: rgba(0, 0, 0, 0.075); --timeline-color: rgba(0, 0, 0, 0.075);
--timeline-node-bg: #c2c6cc; --timeline-node-bg: #c2c6cc;

View file

@ -8,24 +8,22 @@
.categories { .categories {
margin-bottom: 2rem; margin-bottom: 2rem;
.card-header { .card-header {
padding-right: 12px; padding-right: 12px;
} }
i { i {
&.far, @extend %category-icon-color;
&.fas {
font-size: 86%; // fontawesome icons font-size: 86%; // fontawesome icons
} }
}
.list-group-item { .list-group-item {
border-left: none; border-left: none;
border-right: none; border-right: none;
padding-left: 2rem; padding-left: 2rem;
> i {
@extend %category-icon-color;
}
&:first-child { &:first-child {
border-top-left-radius: 0; border-top-left-radius: 0;
border-top-right-radius: 0; border-top-right-radius: 0;
@ -33,10 +31,6 @@
} }
.card-header > span > i:first-child {
@extend %category-icon-color;
}
} // .categories } // .categories
.category-trigger { .category-trigger {
@ -45,11 +39,18 @@
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
color: #6c757d !important; color: #6c757d !important;
> i.fas {
&:hover {
i {
color: var(--categories-icon-hover-color);
}
}
i {
position: relative; position: relative;
height: 0.7rem; height: 0.7rem;
width: 1rem; width: 1rem;
transition: 300ms ease all; transition: transform 300ms ease;
} }
} }