]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/menu/menu.component.scss
Cleanup menu footer links
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / menu.component.scss
CommitLineData
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;
36f2981f 9 z-index: z(menu);
52cc0d54 10 scrollbar-color: var(--actionButtonColor) var(--menuBackgroundColor);
8afc19a6
C
11}
12
b33f657c 13menu {
ef80c66c
C
14 @include ellipsis;
15
1d9d9cfd 16 background-color: var(--menuBackgroundColor);
b33f657c
C
17 margin: 0;
18 padding: 0;
19 height: 100%;
606793b9 20 overflow-x: hidden;
1d9d9cfd 21 color: var(--menuForegroundColor);
8afc19a6
C
22 display: flex;
23 flex-direction: column;
46ae6f67 24 width: 100%;
8afc19a6 25
a54991da
RK
26 &:focus, &:hover {
27 overflow-y: auto;
28 }
29
a55052c9
C
30 &.logged-in {
31 .panel-block {
d3217560 32 margin-bottom: 20px;
a55052c9
C
33 }
34
35 .block-title {
36 margin-bottom: 15px;
37 }
38 }
39
66467298
RK
40 .top-menu {
41 flex-grow: 1;
c13e2bf3 42 width: $menu-width;
66467298
RK
43 }
44
b33f657c
C
45 .logged-in-block {
46 height: 100px;
47 background-color: rgba(255, 255, 255, 0.15);
48 display: flex;
49 align-items: center;
50 justify-content: center;
a55052c9 51 margin-bottom: 20px;
b33f657c
C
52
53 .logged-in-info {
ef80c66c
C
54 @include ellipsis;
55
b33f657c 56 flex-grow: 1;
b33f657c 57
b7a7e801 58 .logged-in-display-name {
b33f657c
C
59 font-size: 16px;
60 font-weight: $font-semibold;
1d9d9cfd 61 color: var(--menuForegroundColor);
c30745f3
C
62 cursor: pointer;
63
64 @include disable-default-a-behaviour;
b33f657c
C
65 }
66
b7a7e801 67 .logged-in-username {
ef80c66c
C
68 @include ellipsis;
69
b33f657c
C
70 font-size: 13px;
71 color: #C6C6C6;
cadb46d8 72 max-width: 140px;
223b24e6 73 cursor: pointer;
b33f657c
C
74 }
75 }
76
77 .logged-in-more {
78 margin-right: 20px;
79
e5b432e0 80 my-global-icon.dropdown-toggle {
b33f657c 81 cursor: pointer;
63347a0f
C
82
83 &::after {
84 border: none;
85 }
e5b432e0 86
03652b31 87 ::ng-deep {
e5b432e0
C
88 @include apply-svg-color(var(--menuForegroundColor));
89 }
b33f657c
C
90 }
91 }
92 }
93
94 .button-block {
95 margin: 30px 25px 35px 25px;
96
9bce8112
C
97 .login-button {
98 @include peertube-button-link;
99 @include orange-button;
100
c30745f3 101 display: block;
9bce8112
C
102 width: 100%;
103 margin-bottom: 10px;
104 }
c30745f3 105
9bce8112
C
106 .create-account-button {
107 @include peertube-button-link;
b33f657c 108
9bce8112
C
109 display: block;
110 width: 100%;
111
112 color: #fff;
113 background-color: rgba(255, 255, 255, 0.25);
b33f657c 114
9bce8112
C
115 &:hover {
116 background-color: rgba(255, 255, 255, 0.28);
b33f657c
C
117 }
118 }
119 }
120
121 .block-title {
122 text-transform: uppercase;
123 font-weight: $font-bold; // Bold
124 font-size: 13px;
125 margin-bottom: 25px;
829be6e8 126 margin-left: 26px;
b33f657c
C
127 }
128
129 .panel-block {
d3217560 130 margin-bottom: 15px;
b33f657c
C
131
132 a {
24e0d900
C
133 @include disable-default-a-behaviour;
134
b33f657c 135 display: flex;
829be6e8 136 align-items: center;
35c29307 137 padding-left: $menu-lateral-padding;
1d9d9cfd 138 color: var(--menuForegroundColor);
c30745f3 139 cursor: pointer;
24e0d900 140 min-height: 40px;
c30745f3 141 font-size: 16px;
829be6e8 142 transition: background-color .1s ease-in-out;
24e0d900
C
143 white-space: normal;
144 word-break: break-word;
145 padding-right: 20px;
b33f657c 146
e6d5a4f1 147 &.active {
829be6e8
CL
148 background-color: rgba(255, 255, 255, 0.15);
149 }
150
e6d5a4f1
C
151 &:hover, &.focus-visible {
152 background-color: rgba(255, 255, 255, 0.10);
153 }
154
a55052c9
C
155 my-global-icon {
156 @include apply-svg-color(#808080);
0727cab0 157
a55052c9
C
158 display: flex;
159 width: 22px;
160 height: 22px;
b33f657c 161 margin-right: 18px;
b33f657c 162
a55052c9
C
163 &[iconName="playlists"] {
164 height: 24px;
165 width: 24px;
b33f657c 166
a55052c9 167 margin-right: 16px;
b33f657c
C
168 }
169
a55052c9 170 &[iconName="videos"] {
066e94c5 171 position: relative;
a55052c9 172 right: -1px;
b33f657c 173 }
a55052c9 174 }
36f9424f 175
a55052c9
C
176 .icon {
177 @include icon(22px);
36f9424f 178
a55052c9 179 margin-right: 18px;
b33f657c
C
180 }
181 }
182 }
8afc19a6
C
183
184 .footer {
c13e2bf3 185 width: $menu-width;
d3217560 186 padding-bottom: 15px;
8afc19a6 187
14f83c68
C
188 .bottom-links {
189 display: flex;
190 flex-direction: column;
191 padding: 0 $menu-lateral-padding;
d3217560 192 }
8afc19a6 193
d3217560 194 $footer-links-base-opacity: .8;
8afc19a6 195
d3217560 196 .footer-links {
14f83c68
C
197 &, > div {
198 display: flex;
199 flex-wrap: wrap;
200 }
8afc19a6 201
14f83c68 202 a, span[role=button] {
d3217560
RK
203 display: inline-block;
204 text-decoration: none;
205 color: var(--mainBackgroundColor);
206 opacity: $footer-links-base-opacity;
207 white-space: nowrap;
208 font-size: 90%;
209 font-weight: 500;
210 line-height: 1.4rem;
211 margin-right: 8px;
212
213 &.inline-global-icon {
214 display: inline-flex;
215 align-items: center;
216 white-space: nowrap;
217 height: 1.4rem;
218
219 my-global-icon {
220 @include apply-svg-color(var(--mainBackgroundColor));
14f83c68 221
d3217560
RK
222 display: flex;
223 width: auto;
224 height: 90%;
225 margin-right: .2rem;
226 }
8afc19a6 227 }
d3217560
RK
228 }
229 }
8afc19a6 230
d3217560
RK
231 .footer-copyleft small a {
232 @include disable-default-a-behaviour;
4a216666 233
d3217560
RK
234 color: var(--mainBackgroundColor);
235 opacity: $footer-links-base-opacity - .2;
236 }
237 }
238}
4a216666 239
d3217560
RK
240.dropdown-menu {
241 width: calc(100% + 40px);
242}
9a0fc840 243
d3217560
RK
244.dropdown-item {
245 @include dropdown-with-icon-item;
9a0fc840 246
d3217560
RK
247 cursor: pointer;
248 display: flex;
249 align-items: center;
250
251 i.glyphicon-menu-right {
252 opacity: .4;
253 }
254
255 my-global-icon {
256 &[iconName="cog"],
257 &[iconName="sign-out"] {
258 position: relative;
259 right: -2px;
260 height: 20px;
261 width: 20px;
262 }
263 }
264
265 my-global-icon.not-displayed {
266 display: none;
267 }
268
269 &:hover {
270 my-global-icon.hover-display-toggle.not-displayed {
271 display: inherit;
272 }
273 my-global-icon.hover-display-toggle {
274 display: none;
8afc19a6
C
275 }
276 }
b33f657c 277}
46ae6f67 278
d3217560
RK
279.more-settings {
280 text-transform: uppercase;
281 font-size: 80%;
282 color: #6c757d;
283}
284
285.icon {
286 @include disable-outline;
287 @include icon(22px);
288 opacity: 0.8;
289
290 &.icon-shortcuts {
291 position: relative;
292 top: -1px;
293 margin-right: 10px;
294
295 background-image: url('../../assets/images/menu/keyboard.png');
296 }
297}
298
299input[type=checkbox]{
300 position: absolute;
301 visibility: hidden;
302}
303
304label {
305 cursor: pointer;
306 text-indent: -9999px;
307 width: 35px;
308 height: 20px;
309 background: #cccccc;
310 display: block;
311 border-radius: 100px;
312 position: relative;
313 margin: 0;
314
315 &:after {
316 content: '';
317 position: absolute;
318 top: 3px;
319 left: 3px;
320 width: 14px;
321 height: 14px;
322 background: var(--mainBackgroundColor);
323 border-radius: 50%;
324 transition: 0.3s ease-out;
325 }
326
327 &:active:after {
328 width: 40px;
329 }
330}
331
332input:checked + label {
333 background: var(--mainColor);
334
335 &:after {
336 left: calc(100% - 3px);
337 transform: translateX(-100%);
338 }
339}
340
fdebd9a3 341@media screen and (max-width: $mobile-view) {
46ae6f67
C
342 .menu-wrapper {
343 width: 100% !important;
c06be129 344
c06be129
C
345 menu {
346 overflow-y: auto;
347 }
348 }
c0022613
C
349
350 .top-menu, .footer {
351 width: 100% !important;
352 }
c06be129 353}