blob: fb0e6a59ea0341aaf277a7f3c93376093c2d2091 (
plain) (
blame)
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
107
108
109
110
111
112
113
114
|
@keyframes showTopMenu {
0% {transform: translateY(100%) scale(0.8) ; opacity: 0;}
80% {transform: translateY(100%) scale(1.1); opacity: 100%;}
100% {transform: translateY(100%) scale(1); opacity: 100%;}
}
.top-bar {
flex-grow: 0;
display: flex;
justify-content: end;
padding: 1em;
&__fog {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
}
.user {
position: relative;
&__list {
position: absolute;
display: block;
bottom: 0;
right: 0;
transform: translateY(100%);
background: #222;
animation: showTopMenu .3s;
}
&__main-item {
color: white;
display: block;
padding: .5em;
white-space: nowrap;
transition: color .3s;
cursor: pointer;
&--active {
background: #222;
color: yellow;
}
&:hover {
color: yellow;
}
}
&__item {
display: block;
color: white;
padding: .5em;
font-weight: normal;
transition: color .3s;
cursor: pointer;
white-space: nowrap;
text-align: right;
&:hover {
color: yellow;
}
}
}
.lang-switch {
display: inline-block;
position: relative;
&__list {
position: absolute;
bottom: 0;
left: 0;
right: 0;
transform: translateY(100%);
background: #222;
animation: showTopMenu .3s;
}
&__main-item {
transition: .3s color;
padding: .5em;
display: block;
color: white;
font-weight: normal;
cursor: pointer;
&:hover {
color: yellow;
}
&--active {
background: #222;
color: yellow;
}
}
&__item {
padding: .5em;
display: block;
color: white;
font-weight: normal;
cursor: pointer;
transition: color .3s;
&:hover {
color: yellow;
}
}
}
|