| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- .expand {
- position: relative;
- margin: 1.5rem 0;
- border-radius: 0.25rem;
- &__content {
- padding: 0 1.125rem;
- overflow: hidden;
- max-height: 0;
- border-bottom-left-radius: 0.25rem;
- border-bottom-right-radius: 0.25rem;
- @include transition(all, 0.2s, ease);
- @include themify($themes) {
- border-top: 1px solid themed('content-box-border-color');
- background-color: themed('toc-body-background-color');
- }
- li {
- font-size: 15.2px;
- margin: 0 0 0.525rem 2rem !important;
- &:first-child {
- margin-top: 0.25rem !important;
- }
- li {
- font-size: 14.4px;
- margin: 0 0 0.25rem 1.25rem !important;
- }
- }
- &--toc {
- font-family: $title-font;
- font-size: 15.2px;
- li {
- list-style-type: '📂 ';
- li {
- list-style-type: '📄 ';
- }
- }
- }
- }
- &__button {
- cursor: pointer;
- 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;
- @include flexbox();
- @include align-items(center);
- @include themify($themes) {
- color: inherit;
- background-color: themed('toc-header-background-color');
- @include on-event {
- background-color: themed('toc-header-background-color-hover');
- }
- }
- }
- &-label {
- cursor: pointer;
- @include flexbox();
- @include align-items(center);
- }
- &-icon {
- padding-top: 0.125rem;
- padding-right: 0.5rem;
-
- &__down {
- @include rotate(90);
- @include transition(all, 0.15s, ease);
- }
- &__right {
- @include rotate(0);
- @include transition(all, 0.15s, ease);
- }
- }
- }
|