]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
Only use woff2 for fonts
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
3
4$icon-font-path: '../../node_modules/bootstrap-sass/assets/fonts/bootstrap/';
e203f2e0 5@import '_bootstrap';
63c4db6d 6
fa40cbc3 7@import '_fonts';
63c4db6d 8
d592e0a9
C
9@import '~primeng/resources/themes/bootstrap/theme.css';
10@import '~primeng/resources/primeng.css';
11@import '~video.js/dist/video-js.css';
c893d451
C
12
13@import './video-js-custom';
14@import './loading-bar';
e31f6ad6 15
383bfc83
C
16[hidden] {
17 display: none !important;
18}
a64668c0 19
b33f657c 20body {
8a8e02a4 21 font-family: $main-fonts;
b33f657c
C
22 font-weight: $font-regular;
23 color: #000;
24}
25
73e09f27
C
26#incompatible-browser {
27 display: none;
28 text-align: center;
29 position: absolute;
30 width: 100%;
31 top: 45%;
32}
33
07fa4c97
C
34strong {
35 font-weight: $font-semibold;
36}
37
383bfc83
C
38input.readonly {
39 /* Force blank on readonly inputs */
40 background-color: #fff !important;
0ac5edd9 41}
42
d235f6b0
C
43label {
44 font-weight: $font-bold;
45 font-size: 15px;
09223546
C
46}
47
a2b817d3
C
48.form-error {
49 display: block;
50 color: $red-error;
51 margin-top: 5px;
52}
53
54.input-error {
55 border-color: $red-error !important;
56}
57
383bfc83
C
58.glyphicon-black {
59 color: black;
60}
61
383bfc83 62.main-col {
c30745f3 63 margin-left: $menu-width;
9bf9d2a5 64
c30745f3 65 .margin-content {
d178b5c1
C
66 margin-left: $not-expanded-horizontal-margins;
67 margin-right: $not-expanded-horizontal-margins;
c30745f3
C
68 }
69
70 .sub-menu {
71 background-color: #F7F7F7;
72 width: 100%;
73 height: 81px;
74 margin-bottom: 30px;
75 display: flex;
76 align-items: center;
d178b5c1 77 padding-left: $not-expanded-horizontal-margins;
c30745f3
C
78 }
79
80 // Override some properties if the main content is expanded (no menu on the left)
81 &.expanded {
82 margin-left: 0;
83
84 .margin-content {
85 margin-left: $expanded-horizontal-margins;
86 margin-right: $expanded-horizontal-margins;
87 }
88
89 .sub-menu {
90 padding-left: $expanded-horizontal-margins;
91 }
602eb142 92 }
383bfc83 93}
602eb142 94
59aa1e5e
C
95.title-page {
96 color: #000;
97 font-size: 16px;
98 display: inline-block;
99 margin-right: 55px;
100 font-weight: $font-semibold;
101 @include disable-default-a-behaviour;
102
103 &.active, &.title-page-single {
104 border-bottom: 2px solid $orange-color;
105 font-weight: $font-bold;
106 margin-top: 30px;
107 margin-bottom: 25px;
108 }
cadb46d8
C
109
110 &:hover, &:active, &:focus {
111 color: #000;
04e0fc48 112 }
1952a538
C
113
114 @media screen and (max-width: 500px) {
115 margin-right: 20px;
116 }
cadb46d8 117}
04e0fc48 118
cd83ea1b
C
119.admin-sub-header {
120 display: flex;
121 align-items: center;
122 margin-bottom: 30px;
123
08c1efbe 124 .form-sub-title {
cd83ea1b
C
125 flex-grow: 1;
126 }
127}
128
08c1efbe 129.form-sub-title {
04e0fc48
C
130 font-size: 20px;
131 font-weight: bold;
59aa1e5e
C
132}
133
315cc0cc
C
134// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
135.glyphicon-refresh-animate {
4635f59d 136 animation: spin .7s infinite linear;
315cc0cc
C
137}
138
139@keyframes spin {
140 from { transform: scale(1) rotate(0deg);}
141 to { transform: scale(1) rotate(360deg);}
142}
143
04e0fc48 144// ngprime data table customizations
ab998f7b 145p-table {
cd83ea1b
C
146 font-size: 15px !important;
147
cd83ea1b
C
148 td {
149 border: 1px solid #E5E5E5 !important;
f595d394 150 padding-left: 15px !important;
fb4fd623
C
151 overflow: hidden !important;
152 text-overflow: ellipsis !important;
153 white-space: nowrap !important;
cd83ea1b
C
154 }
155
156 tr {
157 background-color: #fff !important;
158 height: 46px;
ab998f7b 159 }
cd83ea1b 160
ab998f7b
C
161 .ui-table-tbody {
162 tr {
163 &:hover {
164 background-color: #f0f0f0 !important;
165 }
cd83ea1b 166
ab998f7b
C
167 &:not(:hover) {
168 .action-cell * {
169 display: none !important;
170 }
cd83ea1b 171 }
cd83ea1b 172
ab998f7b
C
173 &:first-child td {
174 border-top: none !important;
175 }
176
177 &:last-child td {
178 border-bottom: none !important;
179 }
cd83ea1b 180 }
f595d394 181
ab998f7b
C
182 .expander {
183 cursor: pointer;
184 position: relative;
185 top: 1px;
f595d394 186 }
cd83ea1b
C
187 }
188
189 th {
190 border: none !important;
191 border-bottom: 1px solid #f0f0f0 !important;
192 text-align: left !important;
193 padding: 5px 0 5px 15px !important;
194 font-weight: $font-semibold !important;
195 color: #000 !important;
196
fb4fd623 197 &.ui-sortable-column:hover {
cd83ea1b
C
198 background-color: #f0f0f0 !important;
199 border: 1px solid #f0f0f0 !important;
f595d394 200 border-width: 0 1px !important;
fb4fd623
C
201
202 &:first-child {
203 border-width: 0 1px 0 0 !important;
204 }
cd83ea1b 205 }
c2830fa8 206
ab998f7b 207 &.ui-state-highlight {
fb4fd623
C
208 background-color: #fff !important;
209
210 .fa {
211 @extend .glyphicon;
212 font-size: 11px;
213
214 &.fa-sort-asc {
215 @extend .glyphicon-triangle-top;
216 }
217
218 &.fa-sort-desc {
219 @extend .glyphicon-triangle-bottom;
220 }
221 }
c2830fa8 222 }
cd83ea1b
C
223 }
224
d592e0a9 225 .action-cell {
cd83ea1b
C
226 width: 250px !important;
227 padding: 0 !important;
d592e0a9 228 text-align: center;
e998cf3c
C
229
230 my-edit-button + my-delete-button {
231 margin-left: 5px;
232 }
cd83ea1b 233 }
28798b5d 234
cd83ea1b 235 p-paginator {
cd83ea1b
C
236 .ui-paginator-bottom {
237 position: relative;
238 border: none !important;
f595d394 239 border: 1px solid #f0f0f0 !important;
cd83ea1b
C
240 height: 40px;
241 display: flex;
242 justify-content: center;
243 align-items: center;
244
245 a {
246 color: #000 !important;
247 font-weight: $font-semibold !important;
248 margin-right: 20px !important;
249 outline: 0 !important;
250 border-radius: 3px !important;
251 padding: 5px 2px !important;
252
253 &.ui-state-active {
254 &, &:hover, &:active, &:focus {
255 color: #fff !important;
256 background-color: $orange-color !important;
257 }
258 }
259 }
d592e0a9 260 }
ad42bea3 261 }
21496304 262}
7b272fd7 263
04e0fc48 264// Bootstrap customizations
7b272fd7
C
265.dropdown-menu {
266 border-radius: 3px;
267 box-shadow: 0 3px 6px;
268 font-size: 15px;
269
270 .dropdown-item {
271 padding: 3px 15px;
272 }
273
274 a {
275 color: #000 !important;
276 }
277}
0727cab0
C
278
279.modal {
280 .modal-header {
281 border-bottom: none;
5f0805d3 282 margin-bottom: 5px;
0727cab0 283
5f0805d3
C
284 .modal-title {
285 font-size: 20px;
286 font-weight: $font-semibold;
287 }
288
289 .close {
290 @include icon(24px);
291
292 position: relative;
293 right: -1px;
294 float: right;
295 background-image: url('../assets/images/global/cross.svg');
296 }
297 }
298
299 .inputs {
300 margin-top: 40px;
301 margin-bottom: 0;
302 text-align: right;
303
304 .action-button-cancel {
305 @include peertube-button;
306 @include grey-button;
307
308 display: inline-block;
309 margin-right: 10px;
310 }
311
312 .action-button-submit {
313 @include peertube-button;
314 @include orange-button;
0727cab0
C
315 }
316 }
317}
318
6de36768
C
319tabset:not(.bootstrap) {
320 .nav {
321 font-size: 16px !important;
04e0fc48
C
322 border: none !important;
323
6de36768
C
324 .nav-item .nav-link {
325 margin-right: 30px;
326 padding: 0;
327 border-radius: 3px;
328 border: none !important;
e600e1fe 329
6de36768
C
330 .tab-link {
331 display: flex !important;
332 align-items: center;
333 min-height: 30px !important;
334 padding: 0 15px;
335 }
04e0fc48 336
6de36768
C
337 &, & a {
338 color: #000 !important;
339 @include disable-default-a-behaviour;
340 }
341
342 &.active, &:hover {
343 background-color: #F0F0F0;
344 }
345
346 &.active {
347 font-weight: $font-semibold !important;
348 }
04e0fc48 349 }
6de36768
C
350 }
351}
04e0fc48 352
6de36768
C
353tabset.bootstrap {
354 .nav-item .nav-link {
355 &, & a {
356 color: #000;
357 @include disable-default-a-behaviour;
04e0fc48
C
358 }
359 }
04e0fc48
C
360}
361
0727cab0
C
362.orange-button {
363 @include peertube-button;
364 @include orange-button;
365}
366
367.orange-button-link {
368 @include peertube-button-link;
369 @include orange-button;
370}
371
372.grey-button {
373 @include peertube-button;
374 @include grey-button;
375}
376
377.grey-button-link {
378 @include peertube-button-link;
379 @include grey-button;
380}
20206dfb 381
fb4fd623
C
382// In tables, don't have a hover different background
383table {
384 .action-button-edit, .action-button-delete {
385 &:hover, &:active, &:focus, &[disabled], &.disabled {
386 background-color: $grey-color !important;
387 }
388 }
389}
390
1f788f20
C
391@media screen and (max-width: 900px) {
392 .main-col {
393 &, &.expanded {
394 .margin-content {
395 margin-left: 50px;
396 margin-right: 50px;
397 }
dd778941
C
398
399 .sub-menu {
400 padding-left: 50px;
401 }
1f788f20
C
402 }
403 }
404}
405
20206dfb 406// On small screen, menu is absolute
c8cf5952 407@media screen and (max-width: 600px) {
20206dfb 408 .title-menu-left {
c8cf5952 409 width: 100% !important;
20206dfb
C
410 position: absolute !important;
411 z-index: 10000;
412 }
413
414 .main-col {
415 margin-left: 0;
416
417 &, &.expanded {
418 .margin-content {
6693df9d
C
419 margin-left: 15px;
420 margin-right: 15px;
20206dfb
C
421 }
422
423 .sub-menu {
dd778941 424 padding-left: 15px;
20206dfb
C
425 margin-bottom: 10px;
426 }
427
428 input[type=text], input[type=password] {
429 width: 100% !important;
430 }
431 }
432 }
c8cf5952
C
433
434 bs-dropdown-container {
435 z-index: 10000;
436 }
20206dfb 437}