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

Alexander Bilz
05.31.2022 2810499b57f4d2db357478c314d93953e4ff7d77
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
.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;
                  }
 
              }
 
            #languagepicker:checked ~ .dropdown {
                display: block;
              }
        
            #languagepicker:checked ~ .triangle {
                position: absolute;
                top: 15px;
                right: -10px;
                z-index: 10;
                height: 14px;
                overflow: hidden;
                width: 30px;
                background: transparent;
              }
              
              #languagepicker:checked ~ .triangle:after {
                content: '';
                display: block;
                z-index: 20;
                width: 15px;
                transform: rotate(45deg) translateY(0px) translatex(10px);
                height: 15px;
                background: $primary-light;
                border-radius: 2px 0px 0px 0px;
                border-color: $primary;
                box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
                float: left;
                display: block;
              } 
        }
    }  
}