mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
12.09.2022 fe27dbac37cf3301ac78c0ce6422eda748649447
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
.languageswitch {
  position: relative;
 
  &__label {
    cursor: pointer;
    white-space: nowrap;
  }
 
  &__list {
    display: none;
    list-style: none;
    padding: 0;
    position: relative;
 
    @include desktop {
      @include themed() {
        background: t(accent);
        border-color: t(primary);
        box-shadow: t(shadow);
      }
      border-radius: 5px;
      position: absolute;
      top: 40px;
    }
 
    &-item {
      @include themed() {
        color: t('primary');
      }
      background: transparent;
      display: block;
      line-height: 1;
      padding: 0.5rem 0.75rem 0.5rem 0;
      text-align: center;
      white-space: nowrap;
 
      @include desktop {
        padding: 1.2rem;
      }
    }
  }
 
  &__triangle {
    display: none;
 
    &::before {
      @include themed() {
        background: t('accent');
        box-shadow: t('shadow');
        border-color: t('primary');
      }
      content: '';
      border-radius: 2px 0px 0px 0px;
      height: 14px;
      bottom: 0px;
      left: calc(50% / 2);
      overflow: hidden;
      position: absolute;
      transform: rotate(45deg) translateY(0px) translatex(10px);
      width: 14px;
    }
  }
 
  &__picker {
    &:checked {
      ~ .languageswitch {
        &__list {
          display: block;
        }
 
        &__triangle {
          @include desktop {
            display: block;
          }
        }
      }
    }
  }
}