]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
fix nav tab and tag color in dark theme
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
CommitLineData
b34a444e 1$icon-font-path: '../../node_modules/@neos21/bootstrap3-glyphicons/assets/fonts/';
e203f2e0 2@import '_bootstrap';
63c4db6d 3
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
bbe0f064
C
15@import './primeng-custom';
16
383bfc83
C
17[hidden] {
18 display: none !important;
19}
a64668c0 20
b33f657c 21body {
dcbc29d5
C
22 /*** theme ***/
23 // now beware node-sass requires interpolation
24 // for css custom properties #{$var}
25 --mainColor: #{$orange-color};
26 --mainHoverColor: #{$orange-hoover-color};
27 --mainBackgroundColor: #{$bg-color};
28 --mainForegroundColor: #{$fg-color};
1d9d9cfd
RK
29 --menuBackgroundColor: #{$menu-background};
30 --menuForegroundColor: #{$menu-color};
dcbc29d5 31 --submenuColor: #{$sub-menu-color};
db6d617d 32 --inputColor: #{$input-background-color};
dcbc29d5
C
33 --inputPlaceholderColor: #{$input-placeholder-color};
34
8a8e02a4 35 font-family: $main-fonts;
b33f657c 36 font-weight: $font-regular;
9a0fc840 37 color: var(--mainForegroundColor);
b34a444e 38 font-size: 14px;
b33f657c
C
39}
40
73e09f27
C
41#incompatible-browser {
42 display: none;
43 text-align: center;
44 position: absolute;
45 width: 100%;
46 top: 45%;
47}
48
07fa4c97
C
49strong {
50 font-weight: $font-semibold;
51}
52
383bfc83
C
53input.readonly {
54 /* Force blank on readonly inputs */
20c3a59e 55 background-color: var(--inputColor) !important;
0ac5edd9 56}
57
63347a0f
C
58input, textarea {
59 outline: none;
20c3a59e 60 color: var(--mainForegroundColor);
63347a0f
C
61}
62
d235f6b0
C
63label {
64 font-weight: $font-bold;
65 font-size: 15px;
09223546
C
66}
67
a2b817d3
C
68.form-error {
69 display: block;
41a676db 70 color: $red;
a2b817d3
C
71 margin-top: 5px;
72}
73
74.input-error {
41a676db 75 border-color: $red !important;
a2b817d3
C
76}
77
2d9fea16
RK
78.fullWidth {
79 width: 100%;
80 margin-left: auto;
81 margin-right: auto;
82 max-width: initial;
83}
84
383bfc83
C
85.glyphicon-black {
86 color: black;
87}
88
383bfc83 89.main-col {
c30745f3 90 margin-left: $menu-width;
b34a444e 91 width: auto;
9bf9d2a5 92
c30745f3 93 .margin-content {
d178b5c1
C
94 margin-left: $not-expanded-horizontal-margins;
95 margin-right: $not-expanded-horizontal-margins;
b34a444e 96 flex-grow: 1;
c30745f3
C
97 }
98
99 .sub-menu {
9a0fc840 100 background-color: var(--submenuColor);
c30745f3
C
101 width: 100%;
102 height: 81px;
103 margin-bottom: 30px;
104 display: flex;
105 align-items: center;
d178b5c1 106 padding-left: $not-expanded-horizontal-margins;
22a16e36 107 padding-right: $not-expanded-horizontal-margins;
c30745f3
C
108 }
109
110 // Override some properties if the main content is expanded (no menu on the left)
111 &.expanded {
112 margin-left: 0;
113
114 .margin-content {
115 margin-left: $expanded-horizontal-margins;
116 margin-right: $expanded-horizontal-margins;
117 }
118
119 .sub-menu {
120 padding-left: $expanded-horizontal-margins;
22a16e36 121 padding-right: $expanded-horizontal-margins;
c30745f3 122 }
602eb142 123 }
383bfc83 124}
602eb142 125
59aa1e5e 126.title-page {
9a0fc840 127 color: var(--mainForegroundColor);
59aa1e5e
C
128 font-size: 16px;
129 display: inline-block;
130 margin-right: 55px;
131 font-weight: $font-semibold;
132 @include disable-default-a-behaviour;
133
134 &.active, &.title-page-single {
9a0fc840 135 border-bottom: 2px solid var(--mainColor);
59aa1e5e
C
136 font-weight: $font-bold;
137 margin-top: 30px;
138 margin-bottom: 25px;
139 }
cadb46d8
C
140
141 &:hover, &:active, &:focus {
9a0fc840 142 color: var(--mainForegroundColor);
04e0fc48 143 }
1952a538
C
144
145 @media screen and (max-width: 500px) {
146 margin-right: 20px;
147 }
cadb46d8 148}
04e0fc48 149
cd83ea1b
C
150.admin-sub-header {
151 display: flex;
152 align-items: center;
153 margin-bottom: 30px;
154
08c1efbe 155 .form-sub-title {
cd83ea1b
C
156 flex-grow: 1;
157 }
65b247dd
C
158
159 .admin-sub-nav a {
160 @include disable-default-a-behaviour;
161
162 font-size: 16px;
9a0fc840 163 color: var(--mainForegroundColor);
65b247dd
C
164 padding: 5px 15px;
165 border-radius: 0.25rem;
166
167 &.active {
168 font-weight: $font-semibold;
169 background-color: #f0f0f0;
9a0fc840 170 color: #000;
65b247dd
C
171 }
172 }
cd83ea1b
C
173}
174
08c1efbe 175.form-sub-title {
04e0fc48
C
176 font-size: 20px;
177 font-weight: bold;
59aa1e5e
C
178}
179
315cc0cc
C
180// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
181.glyphicon-refresh-animate {
4635f59d 182 animation: spin .7s infinite linear;
315cc0cc
C
183}
184
185@keyframes spin {
186 from { transform: scale(1) rotate(0deg);}
187 to { transform: scale(1) rotate(360deg);}
188}
189
04e0fc48 190// Bootstrap customizations
7b272fd7
C
191.dropdown-menu {
192 border-radius: 3px;
193 box-shadow: 0 3px 6px;
194 font-size: 15px;
195
196 .dropdown-item {
197 padding: 3px 15px;
198 }
199
200 a {
201 color: #000 !important;
202 }
203}
0727cab0
C
204
205.modal {
9a0fc840
RK
206 .modal-content {
207 background-color: var(--mainBackgroundColor);
208 }
209
0727cab0
C
210 .modal-header {
211 border-bottom: none;
5f0805d3 212 margin-bottom: 5px;
0727cab0 213
5f0805d3
C
214 .modal-title {
215 font-size: 20px;
216 font-weight: $font-semibold;
217 }
218
219 .close {
220 @include icon(24px);
221
222 position: relative;
63347a0f 223 top: 3px;
5f0805d3
C
224 float: right;
225 background-image: url('../assets/images/global/cross.svg');
63347a0f
C
226
227 margin: 0;
228 padding: 0;
229 opacity: 1;
5f0805d3
C
230 }
231 }
232
233 .inputs {
234 margin-top: 40px;
235 margin-bottom: 0;
236 text-align: right;
237
238 .action-button-cancel {
239 @include peertube-button;
240 @include grey-button;
241
242 display: inline-block;
243 margin-right: 10px;
244 }
245
246 .action-button-submit {
247 @include peertube-button;
248 @include orange-button;
0727cab0
C
249 }
250 }
251}
252
63347a0f
C
253// Nav customizations
254.nav .nav-link {
255 display: flex !important;
256 align-items: center;
257 height: 30px !important;
258 padding: 10px 15px !important;
259}
04e0fc48 260
63347a0f
C
261.nav.nav-pills {
262 font-size: 16px !important;
263
264 .nav-link.active {
265 font-weight: $font-semibold !important;
266 }
267
268 a {
269 @include disable-default-a-behaviour;
270
9a0fc840 271 color: var(--mainForegroundColor);
6de36768
C
272 }
273}
04e0fc48 274
63347a0f 275ngb-tabset.bootstrap {
bbe0f064 276
63347a0f 277 .nav-link {
6de36768 278 &, & a {
6de36768 279 @include disable-default-a-behaviour;
63347a0f 280
9a0fc840 281 color: var(--mainForegroundColor) !important;
04e0fc48
C
282 }
283 }
04e0fc48
C
284}
285
1fd3ef3f
RK
286.nav-tabs .nav-link.active {
287 background-color: var(--mainBackgroundColor) !important;
288 border-bottom: none;
289}
290
0727cab0
C
291.orange-button {
292 @include peertube-button;
293 @include orange-button;
294}
295
296.orange-button-link {
297 @include peertube-button-link;
298 @include orange-button;
299}
300
301.grey-button {
302 @include peertube-button;
303 @include grey-button;
304}
305
306.grey-button-link {
307 @include peertube-button-link;
308 @include grey-button;
309}
20206dfb 310
fb4fd623
C
311// In tables, don't have a hover different background
312table {
313 .action-button-edit, .action-button-delete {
314 &:hover, &:active, &:focus, &[disabled], &.disabled {
315 background-color: $grey-color !important;
316 }
317 }
318}
319
2d3741d6
C
320.no-results {
321 height: 40vh;
322 display: flex;
323 align-items: center;
324 justify-content: center;
325 font-size: 16px;
326 font-weight: $font-semibold;
327}
328
8ff3f883 329@media screen and (max-width: 1200px) {
2303a803
RK
330 .main-col {
331 &.expanded {
332 .margin-content {
333 margin-left: $expanded-horizontal-margins/2;
334 margin-right: $expanded-horizontal-margins/2;
335 }
336 }
337 }
338}
339
1f788f20
C
340@media screen and (max-width: 900px) {
341 .main-col {
2303a803 342 &.expanded {
1f788f20 343 .margin-content {
2303a803
RK
344 margin-left: $expanded-horizontal-margins/3;
345 margin-right: $expanded-horizontal-margins/3;
1f788f20 346 }
dd778941
C
347
348 .sub-menu {
349 padding-left: 50px;
22a16e36
C
350
351 .title-page {
352 font-size: 15px;
353 }
dd778941 354 }
1f788f20
C
355 }
356 }
357}
358
8ff3f883 359@media screen and (max-width: $small-view) {
20206dfb
C
360 .main-col {
361 margin-left: 0;
362
363 &, &.expanded {
364 .margin-content {
6693df9d
C
365 margin-left: 15px;
366 margin-right: 15px;
20206dfb
C
367 }
368
369 .sub-menu {
dd778941 370 padding-left: 15px;
22a16e36 371 padding-right: 15px;
20206dfb
C
372 margin-bottom: 10px;
373 }
374
375 input[type=text], input[type=password] {
376 width: 100% !important;
377 }
378 }
379 }
46ae6f67 380}