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