]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
8afc19a6 C |
4 | .menu-wrapper { |
5 | position: fixed; | |
6 | height: calc(100vh - #{$header-height}); | |
7 | padding: 0; | |
8 | width: $menu-width; | |
8ff3f883 | 9 | z-index: 10000; |
8afc19a6 C |
10 | } |
11 | ||
b33f657c | 12 | menu { |
ef80c66c C |
13 | @include ellipsis; |
14 | ||
1d9d9cfd | 15 | background-color: var(--menuBackgroundColor); |
b33f657c C |
16 | margin: 0; |
17 | padding: 0; | |
18 | height: 100%; | |
185a4abd | 19 | overflow: auto; |
1d9d9cfd | 20 | color: var(--menuForegroundColor); |
8afc19a6 C |
21 | display: flex; |
22 | flex-direction: column; | |
46ae6f67 | 23 | width: 100%; |
8afc19a6 | 24 | |
a54991da RK |
25 | &:focus, &:hover { |
26 | overflow-y: auto; | |
27 | } | |
28 | ||
a55052c9 C |
29 | &.logged-in { |
30 | .panel-block { | |
31 | margin-bottom: 25px; | |
32 | } | |
33 | ||
34 | .block-title { | |
35 | margin-bottom: 15px; | |
36 | } | |
37 | } | |
38 | ||
66467298 RK |
39 | .top-menu { |
40 | flex-grow: 1; | |
c13e2bf3 | 41 | width: $menu-width; |
66467298 RK |
42 | } |
43 | ||
b33f657c C |
44 | .logged-in-block { |
45 | height: 100px; | |
46 | background-color: rgba(255, 255, 255, 0.15); | |
47 | display: flex; | |
48 | align-items: center; | |
49 | justify-content: center; | |
a55052c9 | 50 | margin-bottom: 20px; |
b33f657c C |
51 | |
52 | .logged-in-info { | |
ef80c66c C |
53 | @include ellipsis; |
54 | ||
b33f657c | 55 | flex-grow: 1; |
d4804eea C |
56 | white-space: nowrap; |
57 | overflow: hidden; | |
58 | text-overflow: ellipsis; | |
b33f657c | 59 | |
b7a7e801 | 60 | .logged-in-display-name { |
b33f657c C |
61 | font-size: 16px; |
62 | font-weight: $font-semibold; | |
1d9d9cfd | 63 | color: var(--menuForegroundColor); |
c30745f3 C |
64 | cursor: pointer; |
65 | ||
66 | @include disable-default-a-behaviour; | |
b33f657c C |
67 | } |
68 | ||
b7a7e801 | 69 | .logged-in-username { |
ef80c66c C |
70 | @include ellipsis; |
71 | ||
b33f657c C |
72 | font-size: 13px; |
73 | color: #C6C6C6; | |
cadb46d8 | 74 | max-width: 140px; |
b33f657c C |
75 | } |
76 | } | |
77 | ||
78 | .logged-in-more { | |
79 | margin-right: 20px; | |
80 | ||
c5a1ae50 C |
81 | my-global-icon { |
82 | @include apply-svg-color(var(--mainBackgroundColor)); | |
83 | ||
b33f657c | 84 | cursor: pointer; |
63347a0f C |
85 | |
86 | &::after { | |
87 | border: none; | |
88 | } | |
b33f657c | 89 | } |
a55052c9 C |
90 | |
91 | .dropdown-item { | |
92 | @include dropdown-with-icon-item; | |
93 | ||
94 | my-global-icon { | |
95 | @include apply-svg-color(var(--mainForegroundColor)); | |
96 | ||
97 | width: 22px; | |
98 | height: 22px; | |
99 | ||
100 | &[iconName="sign-out"] { | |
101 | position: relative; | |
102 | right: -1px; | |
103 | height: 21px; | |
104 | width: 21px; | |
105 | } | |
106 | } | |
107 | } | |
b33f657c C |
108 | } |
109 | } | |
110 | ||
111 | .button-block { | |
112 | margin: 30px 25px 35px 25px; | |
113 | ||
9bce8112 C |
114 | .login-button { |
115 | @include peertube-button-link; | |
116 | @include orange-button; | |
117 | ||
c30745f3 | 118 | display: block; |
9bce8112 C |
119 | width: 100%; |
120 | margin-bottom: 10px; | |
121 | } | |
c30745f3 | 122 | |
9bce8112 C |
123 | .create-account-button { |
124 | @include peertube-button-link; | |
b33f657c | 125 | |
9bce8112 C |
126 | display: block; |
127 | width: 100%; | |
128 | ||
129 | color: #fff; | |
130 | background-color: rgba(255, 255, 255, 0.25); | |
b33f657c | 131 | |
9bce8112 C |
132 | &:hover { |
133 | background-color: rgba(255, 255, 255, 0.28); | |
b33f657c C |
134 | } |
135 | } | |
136 | } | |
137 | ||
138 | .block-title { | |
139 | text-transform: uppercase; | |
140 | font-weight: $font-bold; // Bold | |
141 | font-size: 13px; | |
142 | margin-bottom: 25px; | |
829be6e8 | 143 | margin-left: 26px; |
b33f657c C |
144 | } |
145 | ||
146 | .panel-block { | |
147 | margin-bottom: 45px; | |
b33f657c C |
148 | |
149 | a { | |
150 | display: flex; | |
829be6e8 | 151 | align-items: center; |
35c29307 | 152 | padding-left: $menu-lateral-padding; |
1d9d9cfd | 153 | color: var(--menuForegroundColor); |
c30745f3 | 154 | cursor: pointer; |
829be6e8 | 155 | height: 40px; |
c30745f3 | 156 | font-size: 16px; |
829be6e8 | 157 | transition: background-color .1s ease-in-out; |
c30745f3 | 158 | @include disable-default-a-behaviour; |
b33f657c | 159 | |
e6d5a4f1 | 160 | &.active { |
829be6e8 CL |
161 | background-color: rgba(255, 255, 255, 0.15); |
162 | } | |
163 | ||
e6d5a4f1 C |
164 | &:hover, &.focus-visible { |
165 | background-color: rgba(255, 255, 255, 0.10); | |
166 | } | |
167 | ||
a55052c9 C |
168 | my-global-icon { |
169 | @include apply-svg-color(#808080); | |
0727cab0 | 170 | |
a55052c9 C |
171 | display: flex; |
172 | width: 22px; | |
173 | height: 22px; | |
b33f657c | 174 | margin-right: 18px; |
b33f657c | 175 | |
a55052c9 C |
176 | &[iconName="playlists"] { |
177 | height: 24px; | |
178 | width: 24px; | |
b33f657c | 179 | |
a55052c9 | 180 | margin-right: 16px; |
b33f657c C |
181 | } |
182 | ||
a55052c9 | 183 | &[iconName="videos"] { |
066e94c5 | 184 | position: relative; |
a55052c9 | 185 | right: -1px; |
b33f657c | 186 | } |
a55052c9 | 187 | } |
36f9424f | 188 | |
a55052c9 C |
189 | .icon { |
190 | @include icon(22px); | |
36f9424f | 191 | |
a55052c9 | 192 | margin-right: 18px; |
b33f657c C |
193 | } |
194 | } | |
195 | } | |
8afc19a6 C |
196 | |
197 | .footer { | |
9a0fc840 | 198 | padding-bottom: 15px; |
35c29307 RK |
199 | padding-left: $menu-lateral-padding; |
200 | padding-right: $menu-lateral-padding; | |
c13e2bf3 | 201 | width: $menu-width; |
8afc19a6 | 202 | |
4a216666 | 203 | .language, .shortcuts, .color-palette { |
8afc19a6 C |
204 | display: inline-block; |
205 | color: $menu-bottom-color; | |
206 | cursor: pointer; | |
207 | font-size: 12px; | |
208 | font-weight: $font-semibold; | |
209 | ||
210 | .icon { | |
e78980eb | 211 | @include disable-outline; |
8afc19a6 C |
212 | @include icon(28px); |
213 | opacity: 0.9; | |
214 | ||
215 | &.icon-language { | |
216 | position: relative; | |
217 | top: -1px; | |
218 | width: 28px; | |
219 | height: 24px; | |
220 | ||
221 | background-image: url('../../assets/images/menu/language.png'); | |
222 | } | |
223 | ||
4a216666 RK |
224 | &.icon-shortcuts { |
225 | position: relative; | |
226 | top: -1px; | |
227 | width: 24px; | |
228 | height: 24px; | |
229 | ||
230 | background-image: url('../../assets/images/menu/keyboard.png'); | |
4a216666 RK |
231 | filter: invert(100%); |
232 | } | |
233 | ||
9a0fc840 RK |
234 | &.icon-moonsun { |
235 | margin-left: 10px; | |
236 | position: relative; | |
237 | top: -1px; | |
238 | width: 24px; | |
239 | height: 24px; | |
240 | ||
241 | background-image: url('../../assets/images/menu/moonsun.svg'); | |
242 | } | |
243 | ||
8afc19a6 C |
244 | &:hover { |
245 | opacity: 1; | |
246 | } | |
247 | } | |
248 | } | |
249 | } | |
b33f657c | 250 | } |
46ae6f67 | 251 | |
fdebd9a3 | 252 | @media screen and (max-width: $mobile-view) { |
46ae6f67 C |
253 | .menu-wrapper { |
254 | width: 100% !important; | |
46ae6f67 C |
255 | } |
256 | ||
c13e2bf3 RK |
257 | .top-menu, .footer { |
258 | width: 100% !important; | |
46ae6f67 C |
259 | } |
260 | } |