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