]>
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 | ||
137 | .form-sub-title { | |
138 | font-size: 20px; | |
139 | font-weight: bold; | |
140 | } | |
141 | ||
142 | // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d | |
143 | .glyphicon-refresh-animate { | |
144 | animation: spin .7s infinite linear; | |
145 | } | |
146 | ||
147 | @keyframes spin { | |
148 | from { transform: scale(1) rotate(0deg);} | |
149 | to { transform: scale(1) rotate(360deg);} | |
150 | } | |
151 | ||
152 | // Bootstrap customizations | |
153 | .dropdown-menu { | |
154 | border-radius: 3px; | |
155 | box-shadow: 0 3px 6px; | |
156 | font-size: 15px; | |
157 | ||
158 | .dropdown-item { | |
159 | padding: 3px 15px; | |
160 | } | |
161 | ||
162 | a { | |
163 | color: #000 !important; | |
164 | } | |
165 | } | |
166 | ||
167 | .modal { | |
168 | .modal-header { | |
169 | border-bottom: none; | |
170 | margin-bottom: 5px; | |
171 | ||
172 | .modal-title { | |
173 | font-size: 20px; | |
174 | font-weight: $font-semibold; | |
175 | } | |
176 | ||
177 | .close { | |
178 | @include icon(24px); | |
179 | ||
180 | position: relative; | |
181 | top: 3px; | |
182 | float: right; | |
183 | background-image: url('../assets/images/global/cross.svg'); | |
184 | ||
185 | margin: 0; | |
186 | padding: 0; | |
187 | opacity: 1; | |
188 | } | |
189 | } | |
190 | ||
191 | .inputs { | |
192 | margin-top: 40px; | |
193 | margin-bottom: 0; | |
194 | text-align: right; | |
195 | ||
196 | .action-button-cancel { | |
197 | @include peertube-button; | |
198 | @include grey-button; | |
199 | ||
200 | display: inline-block; | |
201 | margin-right: 10px; | |
202 | } | |
203 | ||
204 | .action-button-submit { | |
205 | @include peertube-button; | |
206 | @include orange-button; | |
207 | } | |
208 | } | |
209 | } | |
210 | ||
211 | // Nav customizations | |
212 | .nav .nav-link { | |
213 | display: flex !important; | |
214 | align-items: center; | |
215 | height: 30px !important; | |
216 | padding: 10px 15px !important; | |
217 | } | |
218 | ||
219 | .nav.nav-pills { | |
220 | font-size: 16px !important; | |
221 | ||
222 | .nav-link.active { | |
223 | font-weight: $font-semibold !important; | |
224 | } | |
225 | ||
226 | a { | |
227 | @include disable-default-a-behaviour; | |
228 | ||
229 | color: #000; | |
230 | } | |
231 | } | |
232 | ||
233 | ngb-tabset.bootstrap { | |
234 | ||
235 | .nav-link { | |
236 | &, & a { | |
237 | @include disable-default-a-behaviour; | |
238 | ||
239 | color: #000 !important; | |
240 | } | |
241 | } | |
242 | } | |
243 | ||
244 | .orange-button { | |
245 | @include peertube-button; | |
246 | @include orange-button; | |
247 | } | |
248 | ||
249 | .orange-button-link { | |
250 | @include peertube-button-link; | |
251 | @include orange-button; | |
252 | } | |
253 | ||
254 | .grey-button { | |
255 | @include peertube-button; | |
256 | @include grey-button; | |
257 | } | |
258 | ||
259 | .grey-button-link { | |
260 | @include peertube-button-link; | |
261 | @include grey-button; | |
262 | } | |
263 | ||
264 | // In tables, don't have a hover different background | |
265 | table { | |
266 | .action-button-edit, .action-button-delete { | |
267 | &:hover, &:active, &:focus, &[disabled], &.disabled { | |
268 | background-color: $grey-color !important; | |
269 | } | |
270 | } | |
271 | } | |
272 | ||
273 | @media screen and (max-width: 900px) { | |
274 | .main-col { | |
275 | &, &.expanded { | |
276 | .margin-content { | |
277 | margin-left: 50px; | |
278 | margin-right: 50px; | |
279 | } | |
280 | ||
281 | .sub-menu { | |
282 | padding-left: 50px; | |
283 | } | |
284 | } | |
285 | } | |
286 | } | |
287 | ||
288 | @media screen and (max-width: 600px) { | |
289 | .menu-wrapper { | |
290 | width: 100% !important; | |
291 | z-index: 10000; | |
292 | } | |
293 | ||
294 | .main-col { | |
295 | margin-left: 0; | |
296 | ||
297 | &, &.expanded { | |
298 | .margin-content { | |
299 | margin-left: 15px; | |
300 | margin-right: 15px; | |
301 | } | |
302 | ||
303 | .sub-menu { | |
304 | padding-left: 15px; | |
305 | margin-bottom: 10px; | |
306 | } | |
307 | ||
308 | input[type=text], input[type=password] { | |
309 | width: 100% !important; | |
310 | } | |
311 | } | |
312 | } | |
313 | } |