Beautify the style of categories button

This commit is contained in:
Cotes Chung 2021-09-23 22:28:38 +08:00
parent 50c88f7205
commit 1ce350e33e
3 changed files with 19 additions and 14 deletions

View file

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

View file

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

View file

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