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