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