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