]>
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 C |
21 | body { |
22 | font-family: 'Source Sans Pro'; | |
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 { | |
121 | -animation: spin .7s infinite linear; | |
122 | -ms-animation: spin .7s infinite linear; | |
123 | -webkit-animation: spinw .7s infinite linear; | |
124 | -moz-animation: spinm .7s infinite linear; | |
125 | } | |
126 | ||
127 | @keyframes spin { | |
128 | from { transform: scale(1) rotate(0deg);} | |
129 | to { transform: scale(1) rotate(360deg);} | |
130 | } | |
131 | ||
132 | @-webkit-keyframes spinw { | |
133 | from { -webkit-transform: rotate(0deg);} | |
134 | to { -webkit-transform: rotate(360deg);} | |
135 | } | |
136 | ||
137 | @-moz-keyframes spinm { | |
138 | from { -moz-transform: rotate(0deg);} | |
139 | to { -moz-transform: rotate(360deg);} | |
140 | } | |
141 | ||
04e0fc48 | 142 | // ngprime data table customizations |
d592e0a9 | 143 | p-datatable { |
cd83ea1b C |
144 | font-size: 15px !important; |
145 | ||
146 | .ui-datatable-scrollable-header { | |
147 | background-color: #fff !important; | |
148 | } | |
149 | ||
150 | .ui-widget-content { | |
151 | border: none !important; | |
152 | } | |
153 | ||
154 | .ui-datatable-virtual-table { | |
155 | border-top: none !important; | |
156 | } | |
157 | ||
158 | td { | |
159 | border: 1px solid #E5E5E5 !important; | |
f595d394 | 160 | padding-left: 15px !important; |
cd83ea1b C |
161 | } |
162 | ||
163 | tr { | |
164 | background-color: #fff !important; | |
165 | height: 46px; | |
166 | ||
167 | &:hover { | |
168 | background-color: #f0f0f0 !important; | |
169 | } | |
170 | ||
171 | &:not(:hover) { | |
172 | .action-cell * { | |
173 | display: none !important; | |
174 | } | |
175 | } | |
176 | ||
177 | &:first-child td { | |
178 | border-top: none !important; | |
179 | } | |
f595d394 C |
180 | |
181 | &:last-child td { | |
182 | border-bottom: none !important; | |
183 | } | |
cd83ea1b C |
184 | } |
185 | ||
186 | th { | |
187 | border: none !important; | |
188 | border-bottom: 1px solid #f0f0f0 !important; | |
189 | text-align: left !important; | |
190 | padding: 5px 0 5px 15px !important; | |
191 | font-weight: $font-semibold !important; | |
192 | color: #000 !important; | |
193 | ||
c2830fa8 | 194 | &.ui-sortable-column:hover:not(.ui-state-active) { |
cd83ea1b C |
195 | background-color: #f0f0f0 !important; |
196 | border: 1px solid #f0f0f0 !important; | |
f595d394 | 197 | border-width: 0 1px !important; |
cd83ea1b | 198 | } |
c2830fa8 C |
199 | |
200 | &.ui-state-active { | |
201 | color: #fff !important; | |
202 | background-color: $orange-color !important; | |
203 | border: 1px solid $orange-color !important; | |
204 | border-width: 0 1px !important; | |
205 | } | |
cd83ea1b C |
206 | } |
207 | ||
d592e0a9 | 208 | .action-cell { |
cd83ea1b C |
209 | width: 250px !important; |
210 | padding: 0 !important; | |
d592e0a9 | 211 | text-align: center; |
cd83ea1b | 212 | } |
28798b5d | 213 | |
cd83ea1b | 214 | p-paginator { |
cd83ea1b C |
215 | .ui-paginator-bottom { |
216 | position: relative; | |
217 | border: none !important; | |
f595d394 | 218 | border: 1px solid #f0f0f0 !important; |
cd83ea1b C |
219 | height: 40px; |
220 | display: flex; | |
221 | justify-content: center; | |
222 | align-items: center; | |
223 | ||
224 | a { | |
225 | color: #000 !important; | |
226 | font-weight: $font-semibold !important; | |
227 | margin-right: 20px !important; | |
228 | outline: 0 !important; | |
229 | border-radius: 3px !important; | |
230 | padding: 5px 2px !important; | |
231 | ||
232 | &.ui-state-active { | |
233 | &, &:hover, &:active, &:focus { | |
234 | color: #fff !important; | |
235 | background-color: $orange-color !important; | |
236 | } | |
237 | } | |
238 | } | |
d592e0a9 | 239 | } |
ad42bea3 | 240 | } |
21496304 | 241 | } |
7b272fd7 | 242 | |
04e0fc48 | 243 | // Bootstrap customizations |
7b272fd7 C |
244 | .dropdown-menu { |
245 | border-radius: 3px; | |
246 | box-shadow: 0 3px 6px; | |
247 | font-size: 15px; | |
248 | ||
249 | .dropdown-item { | |
250 | padding: 3px 15px; | |
251 | } | |
252 | ||
253 | a { | |
254 | color: #000 !important; | |
255 | } | |
256 | } | |
0727cab0 C |
257 | |
258 | .modal { | |
259 | .modal-header { | |
260 | border-bottom: none; | |
5f0805d3 | 261 | margin-bottom: 5px; |
0727cab0 | 262 | |
5f0805d3 C |
263 | .modal-title { |
264 | font-size: 20px; | |
265 | font-weight: $font-semibold; | |
266 | } | |
267 | ||
268 | .close { | |
269 | @include icon(24px); | |
270 | ||
271 | position: relative; | |
272 | right: -1px; | |
273 | float: right; | |
274 | background-image: url('../assets/images/global/cross.svg'); | |
275 | } | |
276 | } | |
277 | ||
278 | .inputs { | |
279 | margin-top: 40px; | |
280 | margin-bottom: 0; | |
281 | text-align: right; | |
282 | ||
283 | .action-button-cancel { | |
284 | @include peertube-button; | |
285 | @include grey-button; | |
286 | ||
287 | display: inline-block; | |
288 | margin-right: 10px; | |
289 | } | |
290 | ||
291 | .action-button-submit { | |
292 | @include peertube-button; | |
293 | @include orange-button; | |
0727cab0 C |
294 | } |
295 | } | |
296 | } | |
297 | ||
04e0fc48 | 298 | .nav { |
04e0fc48 C |
299 | font-size: 16px !important; |
300 | border: none !important; | |
301 | ||
302 | .nav-item .nav-link { | |
04e0fc48 | 303 | margin-right: 30px; |
e600e1fe | 304 | padding: 0; |
04e0fc48 C |
305 | border-radius: 3px; |
306 | border: none !important; | |
307 | ||
e600e1fe C |
308 | .tab-link { |
309 | display: flex !important; | |
310 | align-items: center; | |
311 | height: 30px !important; | |
312 | padding: 0 15px; | |
313 | } | |
314 | ||
04e0fc48 C |
315 | &, & a { |
316 | color: #000 !important; | |
e600e1fe | 317 | @include disable-default-a-behaviour; |
04e0fc48 C |
318 | } |
319 | ||
320 | &.active, &:hover { | |
321 | background-color: #F0F0F0; | |
322 | } | |
323 | ||
324 | &.active { | |
325 | font-weight: $font-semibold !important; | |
326 | } | |
327 | } | |
04e0fc48 C |
328 | } |
329 | ||
0727cab0 C |
330 | .orange-button { |
331 | @include peertube-button; | |
332 | @include orange-button; | |
333 | } | |
334 | ||
335 | .orange-button-link { | |
336 | @include peertube-button-link; | |
337 | @include orange-button; | |
338 | } | |
339 | ||
340 | .grey-button { | |
341 | @include peertube-button; | |
342 | @include grey-button; | |
343 | } | |
344 | ||
345 | .grey-button-link { | |
346 | @include peertube-button-link; | |
347 | @include grey-button; | |
348 | } | |
20206dfb C |
349 | |
350 | // On small screen, menu is absolute | |
351 | @media screen and (max-width: 800px) { | |
352 | .title-menu-left { | |
353 | width: 150px !important; | |
354 | position: absolute !important; | |
355 | z-index: 10000; | |
356 | } | |
357 | ||
358 | .main-col { | |
359 | margin-left: 0; | |
360 | ||
361 | &, &.expanded { | |
362 | .margin-content { | |
363 | margin-left: 10px; | |
364 | margin-right: 10px; | |
365 | } | |
366 | ||
367 | .sub-menu { | |
368 | padding-left: 10px; | |
369 | margin-bottom: 10px; | |
370 | } | |
371 | ||
372 | input[type=text], input[type=password] { | |
373 | width: 100% !important; | |
374 | } | |
375 | } | |
376 | } | |
377 | } |