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

Alexander Bilz
06.22.2022 9df825df06bf47bdbb53b67f15601c60f636b898
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
.languageswitch {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: inline-block;
  padding-right: 20px;
 
  &__list {
    list-style: none;
    label {
      cursor: pointer;
    }
 
    &-item {
      .dropdown__list {
        display: none;
        position: absolute;
        top: 29px;
        right: -15px;
        background: $accent;
        border-color: $primary;
        padding-left: 0;
        padding-top: 0px;
        z-index: 1;
        border-radius: 5px;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
 
        &-item {
          position: relative;
          text-align: left;
          background: transparent;
          padding: 12px;
          z-index: 2;
          color: $primary;
          display: block;
          white-space: nowrap;
        }
      }
    }
  }
 
  &__picker:checked {
    ~ .dropdown__list {
      display: block;
    }
 
    ~ .triangle {
      position: absolute;
      top: 15px;
      right: -10px;
      z-index: 10;
      height: 14px;
      overflow: hidden;
      width: 30px;
      background: transparent;
 
      &:after {
        content: '';
        z-index: 20;
        width: 15px;
        transform: rotate(45deg) translateY(0px) translatex(10px);
        height: 15px;
        background: $accent;
        border-radius: 2px 0px 0px 0px;
        border-color: $primary;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
        float: left;
        display: block;
      }
    }
  }
 
  @media screen and (max-width: 960px) {
    .languageswitch {
      &__list {
        padding-right: inherit;
 
        label {
          cursor: pointer;
        }
 
        .triangle {
          display: none;
        }
 
        &-item {
          .dropdown__list {
            right: inherit;
            position: relative;
            top: inherit;
            padding-right: 0px;
            background: none;
            border-color: inherit;
            box-shadow: none;
            &-item {
              text-align: center;
              padding: 0.5rem 0.75rem;
              padding-left: initial;
            }
          }
        }
      }
    }
  }
}