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