]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
Translated using Weblate (Ukrainian)
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
CommitLineData
161b061d 1$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
63c4db6d 2
9b8a7aa8 3@import '_bootstrap-variables';
dcbc29d5
C
4@import '_variables';
5@import '_mixins';
6
fa40cbc3 7@import '_fonts';
63c4db6d 8
d592e0a9 9@import '~video.js/dist/video-js.css';
c893d451 10
583eb04b 11$assets-path: '../../assets/';
b335ccec 12@import './player/index';
e31f6ad6 13
2f4c784a 14@import './bootstrap';
bbe0f064 15@import './primeng-custom';
02c01341 16@import './ng-select.scss';
bbe0f064 17
383bfc83
C
18[hidden] {
19 display: none !important;
20}
a64668c0 21
b33f657c 22body {
dcbc29d5 23 /*** theme ***/
4f926722 24 // now beware sass requires interpolation
dcbc29d5 25 // for css custom properties #{$var}
680b5496
RK
26 --mainColor: #{$main-color};
27 --mainColorLighter: #{$main-color-lighter};
a6d5ff76 28 --mainColorLightest: #{$main-color-lightest};
680b5496 29 --mainHoverColor: #{$main-hover-color};
dcbc29d5
C
30 --mainBackgroundColor: #{$bg-color};
31 --mainForegroundColor: #{$fg-color};
680b5496 32 --secondaryColor: #{$secondary-color};
2fcc2294 33
c123027f 34 --greyForegroundColor: #{$grey-foreground-color};
441e453a 35 --greyBackgroundColor: #{$grey-background-color};
c123027f 36
1d9d9cfd
RK
37 --menuBackgroundColor: #{$menu-background};
38 --menuForegroundColor: #{$menu-color};
dcbc29d5 39 --submenuColor: #{$sub-menu-color};
2fcc2294 40
3bf07dd8 41 --inputForegroundColor: #{$input-foreground-color};
14aa8556 42 --inputBackgroundColor: #{$input-background-color};
dcbc29d5
C
43 --inputPlaceholderColor: #{$input-placeholder-color};
44
3bf07dd8 45 --textareaForegroundColor: #{$textarea-foreground-color};
b15fe00f 46 --textareaBackgroundColor: #{$textarea-background-color};
f33dc6ab 47 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
b15fe00f 48
0240da5c
RK
49 --actionButtonColor: #{$grey-foreground-color};
50 --supportButtonBackgroundColor: #{transparent};
e66883b3 51 --supportButtonColor: #{pvar(--actionButtonColor)};
0240da5c 52 --supportButtonHeartColor: #{$support-button-heart};
2fcc2294 53
5f57df54
C
54 --activatedActionButtonColor: #{$activated-action-button-color};
55
e752c75e 56 --expanded-horizontal-margin-content: #{$expanded-horizontal-margins};
10846ef6 57
8a8e02a4 58 font-family: $main-fonts;
b33f657c 59 font-weight: $font-regular;
e66883b3
RK
60 color: pvar(--mainForegroundColor);
61 background-color: pvar(--mainBackgroundColor);
b34a444e 62 font-size: 14px;
8110705d 63 // On desktop browsers, make sure vertical scroll bar is always visible
64 // Allow to disable the scrollbar instead of hide it when the content fit the body
65 // And not move the content and header horizontally sticked to right when the content is updating
66 overflow-y: scroll;
b33f657c
C
67}
68
52cc0d54 69::selection {
e66883b3
RK
70 color: pvar(--mainBackgroundColor);
71 background-color: pvar(--mainHoverColor);
52cc0d54
RK
72}
73
73e09f27
C
74#incompatible-browser {
75 display: none;
76 text-align: center;
77 position: absolute;
78 width: 100%;
79 top: 45%;
80}
81
07fa4c97
C
82strong {
83 font-weight: $font-semibold;
84}
85
383bfc83
C
86input.readonly {
87 /* Force blank on readonly inputs */
e66883b3 88 background-color: pvar(--inputBackgroundColor) !important;
0ac5edd9 89}
90
63347a0f
C
91input, textarea {
92 outline: none;
e66883b3 93 color: pvar(--mainForegroundColor);
63347a0f
C
94}
95
adcf9212
CC
96button {
97 background: unset;
98 @include disable-outline;
99}
100
d235f6b0
C
101label {
102 font-weight: $font-bold;
103 font-size: 15px;
09223546
C
104}
105
fd9c3c8d 106code {
107 background-color: pvar(--greyBackgroundColor);
a742b4b0 108 color: pvar(--greyForegroundColor);
fd9c3c8d 109 border-radius: 3px;
110 padding: .2em .4em;
111 margin: auto .4em;
112 font-size: 75%;
113 display: inline-block;
114 vertical-align: middle;
115}
116
a2b817d3
C
117.form-error {
118 display: block;
41a676db 119 color: $red;
a2b817d3
C
120 margin-top: 5px;
121}
122
f8b530e0
RK
123.input-error
124my-input-toggle-hidden ::ng-deep input {
41a676db 125 border-color: $red !important;
a2b817d3
C
126}
127
2d9fea16
RK
128.fullWidth {
129 width: 100%;
130 margin-left: auto;
131 margin-right: auto;
132 max-width: initial;
133}
134
383bfc83
C
135.glyphicon-black {
136 color: black;
137}
138
c4741804 139.row {
947d0102 140 margin: 0 !important;
c4741804
RK
141}
142
383bfc83 143.main-col {
c30745f3 144 margin-left: $menu-width;
c4741804 145 width: calc(100% - #{$menu-width});
a6d5ff76 146 outline: none;
9bf9d2a5 147
c30745f3 148 .margin-content {
d178b5c1
C
149 margin-left: $not-expanded-horizontal-margins;
150 margin-right: $not-expanded-horizontal-margins;
b34a444e 151 flex-grow: 1;
c30745f3
C
152 }
153
154 .sub-menu {
e66883b3 155 background-color: pvar(--submenuColor);
c30745f3 156 width: 100%;
c30745f3
C
157 display: flex;
158 align-items: center;
d178b5c1 159 padding-left: $not-expanded-horizontal-margins;
22a16e36 160 padding-right: $not-expanded-horizontal-margins;
7034b3c9 161 height: $sub-menu-height;
162 margin-bottom: $sub-menu-margin-bottom;
ae2dd046
C
163
164 &.sub-menu-fixed {
ae2dd046 165 position: fixed;
d6eace77 166 z-index: #{z('sub-menu') - 1};
a949f676 167 }
c30745f3
C
168 }
169
7034b3c9 170 // Use an appropriate offset top when sub-menu fixed
171 .margin-content.offset-content {
172 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
173 }
174
c30745f3
C
175 // Override some properties if the main content is expanded (no menu on the left)
176 &.expanded {
177 margin-left: 0;
c4741804 178 width: 100%;
c30745f3
C
179
180 .margin-content {
10846ef6
C
181 margin-left: var(--expanded-horizontal-margin-content);
182 margin-right: var(--expanded-horizontal-margin-content);
c30745f3
C
183 }
184
185 .sub-menu {
10846ef6
C
186 padding-left: var(--expanded-horizontal-margin-content);
187 padding-right: var(--expanded-horizontal-margin-content);
c30745f3 188 }
602eb142 189 }
b15fe00f
K
190
191 &.lock-scroll .main-row > router-outlet + * {
192 // Lock and hide body scrollbars
193 position: fixed;
194
195 // Lock and hide sub-menu scrollbars
196 .sub-menu {
197 overflow-x: hidden;
198 }
199 }
383bfc83 200}
602eb142 201
59aa1e5e 202.title-page {
ed5bb517 203 opacity: 0.6;
e66883b3 204 color: pvar(--mainForegroundColor);
59aa1e5e
C
205 font-size: 16px;
206 display: inline-block;
207 margin-right: 55px;
208 font-weight: $font-semibold;
209 @include disable-default-a-behaviour;
210
ed5bb517
K
211 border-bottom: 2px solid transparent;
212
213 &.title-page-single {
59aa1e5e
C
214 margin-top: 30px;
215 margin-bottom: 25px;
216 }
cadb46d8 217
d6ed9ccc 218 &.active {
ed5bb517 219 border-bottom-color: pvar(--mainColor);
d6ed9ccc
RK
220 }
221
222 &.title-page-single {
223 font-size: 125%;
224 }
225
cadb46d8 226 &:hover, &:active, &:focus {
e66883b3 227 color: pvar(--mainForegroundColor);
04e0fc48 228 }
1952a538 229
ed5bb517
K
230 &.active, &:hover, &:active, &:focus, &.title-page-single {
231 opacity: 1;
232 outline: 0px hidden !important;
233 }
234
ece3029b 235 @media screen and (max-width: $mobile-view) {
2c3abc4f 236 margin-right: 15px;
1952a538 237 }
cadb46d8 238}
04e0fc48 239
482fa503
RK
240.title-page-about,
241.title-page-settings {
e61151b0 242 white-space: nowrap;
482fa503 243 font-size: 115%;
482fa503
RK
244}
245
cd83ea1b
C
246.admin-sub-header {
247 display: flex;
248 align-items: center;
249 margin-bottom: 30px;
250
08c1efbe 251 .form-sub-title {
cd83ea1b
C
252 flex-grow: 1;
253 }
65b247dd
C
254
255 .admin-sub-nav a {
256 @include disable-default-a-behaviour;
257
258 font-size: 16px;
e66883b3 259 color: pvar(--mainForegroundColor);
65b247dd
C
260 padding: 5px 15px;
261 border-radius: 0.25rem;
ed5bb517
K
262 font-weight: $font-semibold;
263 opacity: 0.6;
65b247dd
C
264
265 &.active {
a742b4b0 266 background-color: pvar(--submenuColor);
ed5bb517
K
267 }
268
269 &.active, &:hover, &:active, &:focus {
270 opacity: 1;
65b247dd
C
271 }
272 }
cd83ea1b
C
273}
274
08c1efbe 275.form-sub-title {
04e0fc48
C
276 font-size: 20px;
277 font-weight: bold;
59aa1e5e
C
278}
279
315cc0cc
C
280@keyframes spin {
281 from { transform: scale(1) rotate(0deg);}
282 to { transform: scale(1) rotate(360deg);}
283}
284
fb4fd623
C
285// In tables, don't have a hover different background
286table {
287 .action-button-edit, .action-button-delete {
288 &:hover, &:active, &:focus, &[disabled], &.disabled {
457bb213 289 background-color: $grey-background-color !important;
fb4fd623
C
290 }
291 }
292}
293
2d3741d6
C
294.no-results {
295 height: 40vh;
22839330
RK
296 max-height: 500px;
297
2d3741d6 298 display: flex;
82f443de 299 flex-direction: column;
2d3741d6
C
300 align-items: center;
301 justify-content: center;
302 font-size: 16px;
303 font-weight: $font-semibold;
304}
305
eb7c7a51
RK
306.dropdown-item {
307 @include dropdown-with-icon-item;
308
309 my-global-icon {
310 width: 22px;
311 height: 22px;
312 }
313}
314
7034b3c9 315/* offsetTop for scrollToAnchor */
316
45e0d669
RK
317.anchor {
318 position: relative;
7034b3c9 319 top: #{-($header-height + 20px)};
320}
321
322.offset-content { // if sub-menu fixed
323 .anchor {
324 top: #{-($header-height + $sub-menu-height + 20px)};
325 }
45e0d669
RK
326}
327
c29039e7
C
328.form-group-description {
329 @extend .text-muted;
330
331 font-size: 90%;
332 margin-top: 10px;
333}
334
4872e946
C
335ngx-loading-bar {
336 z-index: z(header) + 1 !important;
337}
338
165ee292 339@media screen and (max-width: #{breakpoint(xxl)}) {
2303a803
RK
340 .main-col {
341 &.expanded {
342 .margin-content {
e752c75e 343 --expanded-horizontal-margin-content: #{$expanded-horizontal-margins/2};
2303a803
RK
344 }
345 }
346 }
347}
348
165ee292 349@media screen and (max-width: #{breakpoint(lg)}) {
1def3c52 350 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
1f788f20 351 .main-col {
1def3c52
RK
352 &, &.expanded {
353 .margin-content {
e752c75e 354 --expanded-horizontal-margin-content: #{$expanded-horizontal-margins/3};
1def3c52 355 }
dd778941 356
1def3c52
RK
357 .sub-menu {
358 padding-left: 50px;
359 padding-right: 50px;
22a16e36 360
1def3c52
RK
361 .title-page {
362 font-size: 17px;
363 }
dd778941 364 }
1f788f20
C
365 }
366 }
367}
368
1f6d2449 369@media screen and (min-width: $mobile-view) and (max-width: $small-view) {
ac6ac4e2 370 .main-col {
371 width: 100%;
372 }
373}
374
8ff3f883 375@media screen and (max-width: $small-view) {
20206dfb
C
376 .main-col {
377 margin-left: 0;
378
379 &, &.expanded {
380 .margin-content {
10846ef6 381 --expanded-horizontal-margin-content: 15px;
20206dfb
C
382 }
383
384 .sub-menu {
2c3abc4f 385 width: 100vw;
dd778941 386 padding-left: 15px;
22a16e36 387 padding-right: 15px;
4682468d 388 margin-bottom: $sub-menu-margin-bottom-small-view;
8544d8f5 389 overflow-x: auto;
20206dfb
C
390 }
391
7034b3c9 392 // Use an appropriate offset top when sub-menu fixed
393 .margin-content.offset-content {
394 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
395 }
396
7a03209d
K
397 .admin-sub-header {
398 @include admin-sub-header-responsive(15px*2);
399 }
400
b15fe00f
K
401 my-markdown-textarea {
402 .root {
403 max-width: 100% !important;
404 }
405 }
406
4682468d
K
407 input[type=text],
408 input[type=password],
409 input[type=email],
c285180a 410 textarea,
411 .peertube-select-container {
225a7682 412 flex-grow: 1;
20206dfb 413 }
25a42e29
RK
414
415 .caption input[type=text] {
416 width: unset !important;
417 flex-grow: 1;
418 }
20206dfb
C
419 }
420 }
457bb213 421}
7a03209d 422
165ee292 423// overflow-databale responsive rules
c2a89b70 424@media screen and (min-width: #{breakpoint(lg)}) {
165ee292
K
425 .main-col {
426 &.expanded {
c2a89b70 427 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/2, $mobile-paginator: false);
165ee292
K
428 }
429
430 &:not(.expanded) {
c2a89b70 431 @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2, $mobile-paginator: false);
165ee292
K
432 }
433 }
434}
435
436@media screen and (max-width: #{breakpoint(lg)}) {
437 .main-col {
438 &.expanded {
439 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3);
440 }
441
442 &:not(.expanded) {
c2a89b70 443 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3 + $menu-width/2);
165ee292
K
444 }
445 }
446}
447
448@media screen and (max-width: $small-view) {
449 .main-col {
450 &:not(.expanded),
451 &.expanded {
452 @include overflow-datatable(breakpoint(lg), 15px);
453 }
454 }
455}
456
7a03209d
K
457@media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) {
458 .main-col {
459 &:not(.expanded) {
460 .admin-sub-header {
c2a89b70 461 @include admin-sub-header-responsive($expanded-horizontal-margins/3 + $menu-width/2);
7a03209d 462 }
8544d8f5
K
463
464 .sub-menu {
465 overflow-x: auto;
466 width: calc(100vw - #{$menu-width});
467 }
7a03209d
K
468 }
469 }
470}