2019-11-15 19:01:33 +03:00
|
|
|
---
|
2020-05-03 22:52:23 +03:00
|
|
|
# Style for Tab Categories
|
|
|
|
# v2.0
|
|
|
|
# https://github.com/cotes2020/jekyll-theme-chirpy
|
|
|
|
# © 2019 Cotes Chung
|
|
|
|
# MIT License
|
2019-11-15 19:01:33 +03:00
|
|
|
---
|
2020-05-03 22:52:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
{% include_relative _addon/main.scss %}
|
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;
|
|
|
|
.card-header {
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|
|
|
|
.list-group-item {
|
|
|
|
border-left: none;
|
|
|
|
border-right: none;
|
|
|
|
padding-left: 2rem;
|
|
|
|
>i {
|
|
|
|
@extend %category-icon-color;
|
|
|
|
}
|
2020-03-04 02:29:31 +03:00
|
|
|
&:first-child {
|
2020-02-25 12:56:03 +03:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
2020-03-04 02:29:31 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-header>span>i:first-child {
|
|
|
|
@extend %category-icon-color;
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
i {
|
|
|
|
&.far, &.fas {
|
|
|
|
font-size: 86%; // fontawesome icons
|
|
|
|
}
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-25 12:56:03 +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;
|
2020-02-25 12:56:03 +03:00
|
|
|
>i.fas {
|
|
|
|
position: relative;
|
|
|
|
height: .7rem;
|
|
|
|
width: 1rem;
|
|
|
|
transition: 300ms ease all;
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (hover: hover) { // only works on desktop
|
|
|
|
.category-trigger:hover {
|
2020-02-27 16:05:50 +03:00
|
|
|
background-color: var(--categories-hover-bg);
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-22 19:42:14 +03:00
|
|
|
.rotate {
|
|
|
|
-ms-transform: rotate(-90deg); /* IE 9 */
|
|
|
|
-webkit-transform: rotate(-90deg); /* Safari 3-8 */
|
|
|
|
transform: rotate(-90deg);
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|