mirror of https://github.com/luizdepra/hugo-coder.git

Björn Albers
27.20.2025 70c0792f78b257c7b3c7614b2bc7dffa95f5143f
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
.tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem 0 2rem 0;
  position: relative;
 
  &.tabs-left {
    justify-content: flex-start;
 
    label.tab-label {
      margin-right: 0.5rem;
    }
 
    .tab-content {
      border-radius: 0px 4px 4px 4px;
    }
  }
 
  &.tabs-right {
    justify-content: flex-end;
 
    label.tab-label {
      margin-left: 0.5rem;
    }
 
    .tab-content {
      border-radius: 4px 0px 4px 4px;
    }
  }
 
  input.tab-input {
    display: none;
  }
 
  label.tab-label {
    background-color: $alt-bg-color;
    border-color: $darker-alt-bg-color;
    border-radius: 4px 4px 0px 0px;
 
    border-style: solid;
    border-bottom-style: hidden;
 
    border-width: 1px;
    cursor: pointer;
    display: inline-block;
    order: 1;
    padding: 0.3rem 0.6rem;
    position: relative;
    top: 1px;
    user-select: none;
  }
 
  input.tab-input:checked + label.tab-label {
    background-color: $bg-color;
  }
 
  .tab-content {
    background-color: $bg-color;
    border-color: $darker-alt-bg-color;
    border-style: solid;
    border-width: 1px;
    display: none;
    order: 2;
    padding: 1rem;
    width: 100%;
  }
 
  &.tabs-code {
    .tab-content {
      padding: 0.5rem;
 
      pre {
        margin: 0;
      }
    }
  }
}