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

_codetab.scss « components « sass « assets - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 896bfda428620b3718c58dba4d1f3640cc896b2b (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
.codetab {
  position: relative;

  &__links {
    position: absolute;
    top: 2px;
    left: 0;
    height: 26px;
    z-index: z('clipboard');
    border-top-left-radius: 0.25rem;

    @include flexbox();
    @include align-items(center);
    @include justify-content(flex-start);
    @include themify($codeblock) {
      background-color: themed('content-pre-header-background-color');
    }
  }

  &__link {
    height: 26px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 13.8px;
    font-family: $title-font;
    text-transform: capitalize;
    padding: 0.25rem 0.5rem;

    &:first-child {
      border-top-left-radius: 0.25rem;
    }
    
    @include transition(all, 0.2s, ease-in);
    @include themify($themes) {
      color: themed('title-color');
      border-top: 1px solid transparent;
      &.active {
        border-top: 1px solid themed('title-color');
      }
    }

    @include themify($codeblock) {
      background-color: themed('content-pre-header-background-color');

      &.active {
        background-color: themed('content-pre-background-color');
      }

      @include on-event {
        background-color: themed('content-pre-background-color');
      }
    }
  }

  &__content {
    display: none;
  }
}