Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_expand.scss « components « sass « assets - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b875a8e9ef92e49a0bbf9a06b5721fedba6dfe1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.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);
    }
  }
}