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