hugo-theme-zzo/assets/sass/components/_expand.scss

77 lines
1.6 KiB
SCSS
Raw Normal View History

2019-11-04 13:09:44 +00:00
.expand {
position: relative;
margin: 1.5rem 0;
border-radius: 0.25rem;
@include box-shadow(1px, 1px, 3px, 0, rgba(0, 0, 0, 0.125));
2020-01-07 07:30:51 +00:00
&__content {
padding: 0 18px;
overflow: hidden;
max-height: 0;
border-bottom-left-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
2020-01-07 07:30:51 +00:00
@include transition(all, 0.2s, ease);
@include themify($themes) {
background-color: themed('toc-body-background-color');
}
li {
font-family: $title-font;
font-size: 15.2px;
margin: 0 0 0.525rem 2rem !important;
list-style-type: '📂 ';
li {
font-size: 14.4px;
list-style-type: '📄 ';
margin: 0 0 0.25rem 1.25rem !important;
}
}
2020-01-07 07:30:51 +00:00
}
&__button {
2019-11-04 13:09:44 +00:00
cursor: pointer;
2020-01-07 07:30:51 +00:00
width: 100%;
margin: auto 0;
text-align: left;
outline: none;
border: none;
padding: 0.125rem;
font-size: 1rem;
font-family: $title-font;
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem;
2020-01-07 07:30:51 +00:00
2019-11-04 13:09:44 +00:00
@include flexbox();
@include align-items(center);
2020-01-07 07:30:51 +00:00
@include themify($themes) {
color: inherit;
background-color: themed('toc-header-background-color');
@include on-event {
background-color: themed('toc-header-background-color-hover');
}
}
2019-11-04 13:09:44 +00:00
}
2020-01-07 07:30:51 +00:00
&-label {
cursor: pointer;
@include flexbox();
@include align-items(center);
2019-11-04 13:09:44 +00:00
}
2020-01-07 07:30:51 +00:00
&-icon {
padding-top: 0.125rem;
padding-right: 0.5rem;
&__down {
2019-11-04 13:09:44 +00:00
@include rotate(90);
2020-01-07 07:30:51 +00:00
@include transition(all, 0.15s, ease);
2019-11-04 13:09:44 +00:00
}
&__right {
@include rotate(0);
2020-01-07 07:30:51 +00:00
@include transition(all, 0.15s, ease);
2019-11-04 13:09:44 +00:00
}
}
}