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