web/_sass/layout/categories.scss

67 lines
1.1 KiB
SCSS
Raw Normal View History

2021-01-23 08:20:58 +03:00
/*
Style for Tab Categories
*/
2019-11-15 19:01:33 +03:00
2020-02-25 12:56:03 +03:00
%category-icon-color {
color: gray;
2019-11-15 19:01:33 +03:00
}
2020-02-25 12:56:03 +03:00
.categories {
margin-bottom: 2rem;
2020-02-25 12:56:03 +03:00
.card-header {
padding-right: 12px;
}
i {
@extend %category-icon-color;
font-size: 86%; /* fontawesome icons */
}
2020-02-25 12:56:03 +03:00
.list-group-item {
border-left: none;
border-right: none;
padding-left: 2rem;
&:first-child {
2020-02-25 12:56:03 +03:00
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
2022-10-19 21:05:29 +03:00
} /* .categories */
2019-11-15 19:01:33 +03:00
.category-trigger {
width: 1.7rem;
height: 1.7rem;
border-radius: 50%;
text-align: center;
color: #6c757d !important;
i {
2020-02-25 12:56:03 +03:00
position: relative;
2020-10-27 17:08:04 +03:00
height: 0.7rem;
2020-02-25 12:56:03 +03:00
width: 1rem;
transition: -webkit-transform 300ms ease;
transition: transform 300ms ease;
transition: transform 300ms ease, -webkit-transform 300ms ease;
2020-02-25 12:56:03 +03:00
}
2022-10-19 21:05:29 +03:00
&:hover {
i {
color: var(--categories-icon-hover-color);
}
}
2019-11-15 19:01:33 +03:00
}
@media (hover: hover) { /* only works on desktop */
2019-11-15 19:01:33 +03:00
.category-trigger:hover {
background-color: var(--categories-hover-bg);
2019-11-15 19:01:33 +03:00
}
}
.rotate {
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
2020-10-27 17:08:04 +03:00
}