web/_sass/layout/categories.scss
Cotes Chung e7dee2a589
refactor: update vendor prefix in SCSS
{
  "browsers": [
    "last 2 versions",
    "> 0.2%",
    "not dead"
  ]
}
2022-10-22 03:26:22 +08:00

66 lines
1.1 KiB
SCSS

/*
Style for Tab Categories
*/
%category-icon-color {
color: gray;
}
.categories {
margin-bottom: 2rem;
.card-header {
padding-right: 12px;
}
i {
@extend %category-icon-color;
font-size: 86%; /* fontawesome icons */
}
.list-group-item {
border-left: none;
border-right: none;
padding-left: 2rem;
&:first-child {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
} /* .categories */
.category-trigger {
width: 1.7rem;
height: 1.7rem;
border-radius: 50%;
text-align: center;
color: #6c757d !important;
i {
position: relative;
height: 0.7rem;
width: 1rem;
transition: -webkit-transform 300ms ease;
transition: transform 300ms ease;
transition: transform 300ms ease, -webkit-transform 300ms ease;
}
&:hover {
i {
color: var(--categories-icon-hover-color);
}
}
}
@media (hover: hover) { /* only works on desktop */
.category-trigger:hover {
background-color: var(--categories-hover-bg);
}
}
.rotate {
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}