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