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