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