]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
fix headings order or add missing ones (#2871)
[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;
261 display: flex;
262 align-items: center;
263 justify-content: center;
264 font-size: 16px;
265 font-weight: $font-semibold;
266}
267
eb7c7a51
RK
268.dropdown-item {
269 @include dropdown-with-icon-item;
270
271 my-global-icon {
272 width: 22px;
273 height: 22px;
274 }
275}
276
45e0d669
RK
277.anchor {
278 position: relative;
279 top: #{-($header-height + 20px)};
280}
281
165ee292 282@media screen and (max-width: #{breakpoint(xxl)}) {
2303a803
RK
283 .main-col {
284 &.expanded {
285 .margin-content {
286 margin-left: $expanded-horizontal-margins/2;
287 margin-right: $expanded-horizontal-margins/2;
288 }
289 }
290 }
291}
292
165ee292 293@media screen and (max-width: #{breakpoint(lg)}) {
1def3c52 294 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
1f788f20 295 .main-col {
1def3c52
RK
296 &, &.expanded {
297 .margin-content {
298 margin-left: $expanded-horizontal-margins/3;
299 margin-right: $expanded-horizontal-margins/3;
300 }
dd778941 301
1def3c52
RK
302 .sub-menu {
303 padding-left: 50px;
304 padding-right: 50px;
22a16e36 305
1def3c52
RK
306 .title-page {
307 font-size: 17px;
308 }
dd778941 309 }
1f788f20
C
310 }
311 }
312}
313
1f6d2449 314@media screen and (min-width: $mobile-view) and (max-width: $small-view) {
ac6ac4e2 315 .main-col {
316 width: 100%;
317 }
318}
319
8ff3f883 320@media screen and (max-width: $small-view) {
20206dfb
C
321 .main-col {
322 margin-left: 0;
323
324 &, &.expanded {
325 .margin-content {
6693df9d
C
326 margin-left: 15px;
327 margin-right: 15px;
20206dfb
C
328 }
329
330 .sub-menu {
2c3abc4f 331 width: 100vw;
dd778941 332 padding-left: 15px;
22a16e36 333 padding-right: 15px;
4682468d 334 margin-bottom: $sub-menu-margin-bottom-small-view;
8544d8f5 335 overflow-x: auto;
20206dfb
C
336 }
337
7a03209d
K
338 .admin-sub-header {
339 @include admin-sub-header-responsive(15px*2);
340 }
341
b15fe00f
K
342 my-markdown-textarea {
343 .root {
344 max-width: 100% !important;
345 }
346 }
347
4682468d
K
348 input[type=text],
349 input[type=password],
350 input[type=email],
c285180a 351 textarea,
352 .peertube-select-container {
20206dfb
C
353 width: 100% !important;
354 }
25a42e29
RK
355
356 .caption input[type=text] {
357 width: unset !important;
358 flex-grow: 1;
359 }
20206dfb
C
360 }
361 }
457bb213 362}
7a03209d 363
165ee292 364// overflow-databale responsive rules
c2a89b70 365@media screen and (min-width: #{breakpoint(lg)}) {
165ee292
K
366 .main-col {
367 &.expanded {
c2a89b70 368 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/2, $mobile-paginator: false);
165ee292
K
369 }
370
371 &:not(.expanded) {
c2a89b70 372 @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2, $mobile-paginator: false);
165ee292
K
373 }
374 }
375}
376
377@media screen and (max-width: #{breakpoint(lg)}) {
378 .main-col {
379 &.expanded {
380 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3);
381 }
382
383 &:not(.expanded) {
c2a89b70 384 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3 + $menu-width/2);
165ee292
K
385 }
386 }
387}
388
389@media screen and (max-width: $small-view) {
390 .main-col {
391 &:not(.expanded),
392 &.expanded {
393 @include overflow-datatable(breakpoint(lg), 15px);
394 }
395 }
396}
397
7a03209d
K
398@media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) {
399 .main-col {
400 &:not(.expanded) {
401 .admin-sub-header {
c2a89b70 402 @include admin-sub-header-responsive($expanded-horizontal-margins/3 + $menu-width/2);
7a03209d 403 }
8544d8f5
K
404
405 .sub-menu {
406 overflow-x: auto;
407 width: calc(100vw - #{$menu-width});
408 }
7a03209d
K
409 }
410 }
411}