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