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

_toc.scss « components « sass « assets - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d456ef0e163503a16e48b16d7c870ac9f1f86ef5 (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
.toc {
  position: -webkit-sticky;
  position: sticky;
  top: $grid-nav-height;
  padding: 0.5rem;
  margin: 0.5rem;
  margin-top: 0;
  padding-top: 1.25rem;
  height: calc(100vh - $grid-nav-height);
  overflow-y: auto;
  font-size: 0.85rem;
  z-index: z('toc');
  @include no-select;
  
  #TableOfContents {
    position: relative;
  }

  &__label {
    font-family: $title-font;
    font-size: 1rem;
    margin-top: 0.65rem;
    margin-bottom: 1rem;
    margin-left: 1.25rem;
    padding-bottom: 0.5rem;

    @include themify($themes) {
      color: themed('toc-label-color');
    }
  }

  @include themify($themes) {
    a {
      color: themed('toc-color');
      position: relative;

      @include on-event {
        color: themed('link-hover');
      }

      &.active {
        color: themed('active-font-color');
        
        &::before {
          background-color: themed('active-font-color');
          content: '';
          height: 11px;
          left: -8px;
          margin: 0.25rem 0;
          position: absolute;
          width: 2px;            
          &:last-child {
            background-color: transparent;
          }
        }
      }
    }
  }

  ul {
    li {
      li {
        margin-left: 0.85rem;
      }
    }
  }
}

.expand__content {
  #TableOfContents {
    ul {
      list-style-type: circle;
    }
  }
}