Spaces:
Running
Running
Sebastiankay
commited on
Commit
•
663a02b
1
Parent(s):
17ca092
Update _res/_custom.css
Browse files- _res/_custom.css +9 -32
_res/_custom.css
CHANGED
@@ -228,70 +228,47 @@ span.has-info+div {
|
|
228 |
& #switch_width_height_inner {
|
229 |
width: 100px;
|
230 |
height: 100px;
|
231 |
-
transition: transform 0.2s ease-in-out, width 0.3s ease-in-out, height 0.38s ease-in-out 0.1s;
|
232 |
border-radius: 0.4rem;
|
233 |
border: 4px solid var(--text-color-by-luminance);
|
234 |
-
overflow: hidden;
|
235 |
/*background: transparent;*/
|
236 |
-
|
237 |
-
& div {
|
238 |
-
width: calc(100% + 20px);
|
239 |
-
height: calc(100% + 20px);
|
240 |
-
margin-top: -10px;
|
241 |
-
margin-left: -10px;
|
242 |
-
transition: background-image 0.3s ease-in-out;
|
243 |
-
background-position: center;
|
244 |
-
}
|
245 |
}
|
246 |
|
247 |
[data-aspect-ratio="16-9"] {
|
248 |
width: 90px !important;
|
249 |
height: 51px !important;
|
250 |
-
|
251 |
-
background-image: url("file=_res/assets/ratio_preview_bgs/90x51px_16zu9.png");
|
252 |
-
}
|
253 |
}
|
254 |
[data-aspect-ratio="9-16"] {
|
255 |
width: 51px !important;
|
256 |
height: 90px !important;
|
257 |
-
|
258 |
-
background-image: url("file=_res/assets/ratio_preview_bgs/51x90px_9zu16.png");
|
259 |
-
}
|
260 |
}
|
261 |
[data-aspect-ratio="4-3"] {
|
262 |
width: 90px !important;
|
263 |
height: 60px !important;
|
264 |
-
|
265 |
-
background-image: url("file=_res/assets/ratio_preview_bgs/90x60px_4zu3.png");
|
266 |
-
}
|
267 |
}
|
268 |
[data-aspect-ratio="3-4"] {
|
269 |
width: 60px !important;
|
270 |
height: 90px !important;
|
271 |
-
|
272 |
-
background-image: url("file=_res/assets/ratio_preview_bgs/90x60px_3zu4.png");
|
273 |
-
}
|
274 |
}
|
275 |
[data-aspect-ratio="3-2"] {
|
276 |
width: 90px !important;
|
277 |
height: 67px !important;
|
278 |
-
|
279 |
-
background-image: url("file=_res/assets/ratio_preview_bgs/90x67px_3zu2.png");
|
280 |
-
}
|
281 |
}
|
282 |
[data-aspect-ratio="2-3"] {
|
283 |
width: 67px !important;
|
284 |
height: 90px !important;
|
285 |
-
|
286 |
-
background-image: url("file=_res/assets/ratio_preview_bgs/67x90px_2zu3.png");
|
287 |
-
}
|
288 |
}
|
289 |
[data-aspect-ratio="1-1"] {
|
290 |
width: 70px !important;
|
291 |
height: 70px !important;
|
292 |
-
|
293 |
-
background-image: url("file=_res/assets/ratio_preview_bgs/70x70px_1zu1.png");
|
294 |
-
}
|
295 |
}
|
296 |
}
|
297 |
|
|
|
228 |
& #switch_width_height_inner {
|
229 |
width: 100px;
|
230 |
height: 100px;
|
231 |
+
transition: transform 0.2s ease-in-out, width 0.3s ease-in-out, height 0.38s ease-in-out 0.1s, background-image 0.3s ease-in-out;
|
232 |
border-radius: 0.4rem;
|
233 |
border: 4px solid var(--text-color-by-luminance);
|
|
|
234 |
/*background: transparent;*/
|
235 |
+
background-position: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
}
|
237 |
|
238 |
[data-aspect-ratio="16-9"] {
|
239 |
width: 90px !important;
|
240 |
height: 51px !important;
|
241 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/90x51px_16zu9.png");
|
|
|
|
|
242 |
}
|
243 |
[data-aspect-ratio="9-16"] {
|
244 |
width: 51px !important;
|
245 |
height: 90px !important;
|
246 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/51x90px_9zu16.png");
|
|
|
|
|
247 |
}
|
248 |
[data-aspect-ratio="4-3"] {
|
249 |
width: 90px !important;
|
250 |
height: 60px !important;
|
251 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/90x60px_4zu3.png");
|
|
|
|
|
252 |
}
|
253 |
[data-aspect-ratio="3-4"] {
|
254 |
width: 60px !important;
|
255 |
height: 90px !important;
|
256 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/60x70px_3zu4.png");
|
|
|
|
|
257 |
}
|
258 |
[data-aspect-ratio="3-2"] {
|
259 |
width: 90px !important;
|
260 |
height: 67px !important;
|
261 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/90x67px_3zu2.png");
|
|
|
|
|
262 |
}
|
263 |
[data-aspect-ratio="2-3"] {
|
264 |
width: 67px !important;
|
265 |
height: 90px !important;
|
266 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/67x90px_2zu3.png");
|
|
|
|
|
267 |
}
|
268 |
[data-aspect-ratio="1-1"] {
|
269 |
width: 70px !important;
|
270 |
height: 70px !important;
|
271 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/70x70px_1zu1.png");
|
|
|
|
|
272 |
}
|
273 |
}
|
274 |
|