Spaces:
Running
Running
Sebastiankay
commited on
Commit
•
e184e7f
1
Parent(s):
6adf53c
Update _res/_custom.css
Browse files- _res/_custom.css +31 -9
_res/_custom.css
CHANGED
@@ -228,47 +228,69 @@ 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 |
/*background: transparent;*/
|
235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
}
|
237 |
|
238 |
[data-aspect-ratio="16-9"] {
|
239 |
width: 90px !important;
|
240 |
height: 51px !important;
|
241 |
-
|
|
|
|
|
242 |
}
|
243 |
[data-aspect-ratio="9-16"] {
|
244 |
width: 51px !important;
|
245 |
height: 90px !important;
|
246 |
-
|
|
|
|
|
247 |
}
|
248 |
[data-aspect-ratio="4-3"] {
|
249 |
width: 90px !important;
|
250 |
height: 60px !important;
|
251 |
-
|
|
|
|
|
252 |
}
|
253 |
[data-aspect-ratio="3-4"] {
|
254 |
width: 60px !important;
|
255 |
height: 90px !important;
|
256 |
-
|
|
|
|
|
257 |
}
|
258 |
[data-aspect-ratio="3-2"] {
|
259 |
width: 90px !important;
|
260 |
height: 67px !important;
|
261 |
-
|
|
|
|
|
262 |
}
|
263 |
[data-aspect-ratio="2-3"] {
|
264 |
width: 67px !important;
|
265 |
height: 90px !important;
|
266 |
-
|
|
|
|
|
267 |
}
|
268 |
[data-aspect-ratio="1-1"] {
|
269 |
width: 70px !important;
|
270 |
height: 70px !important;
|
271 |
-
|
|
|
|
|
272 |
}
|
273 |
}
|
274 |
|
|
|
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 |
/*background: transparent;*/
|
235 |
+
|
236 |
+
& div {
|
237 |
+
width: calc(100% + 20px);
|
238 |
+
height: calc(100% + 20px);
|
239 |
+
margin-top: -10px;
|
240 |
+
margin-left: -10px;
|
241 |
+
transition: background-image 0.3s ease-in-out;
|
242 |
+
background-position: center;
|
243 |
+
}
|
244 |
}
|
245 |
|
246 |
[data-aspect-ratio="16-9"] {
|
247 |
width: 90px !important;
|
248 |
height: 51px !important;
|
249 |
+
& div {
|
250 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/90x51px_16zu9.png");
|
251 |
+
}
|
252 |
}
|
253 |
[data-aspect-ratio="9-16"] {
|
254 |
width: 51px !important;
|
255 |
height: 90px !important;
|
256 |
+
& div {
|
257 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/51x90px_9zu16.png");
|
258 |
+
}
|
259 |
}
|
260 |
[data-aspect-ratio="4-3"] {
|
261 |
width: 90px !important;
|
262 |
height: 60px !important;
|
263 |
+
& div {
|
264 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/90x60px_4zu3.png");
|
265 |
+
}
|
266 |
}
|
267 |
[data-aspect-ratio="3-4"] {
|
268 |
width: 60px !important;
|
269 |
height: 90px !important;
|
270 |
+
& div {
|
271 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/90x60px_3zu4.png");
|
272 |
+
}
|
273 |
}
|
274 |
[data-aspect-ratio="3-2"] {
|
275 |
width: 90px !important;
|
276 |
height: 67px !important;
|
277 |
+
& div {
|
278 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/90x67px_3zu2.png");
|
279 |
+
}
|
280 |
}
|
281 |
[data-aspect-ratio="2-3"] {
|
282 |
width: 67px !important;
|
283 |
height: 90px !important;
|
284 |
+
& div {
|
285 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/67x90px_2zu3.png");
|
286 |
+
}
|
287 |
}
|
288 |
[data-aspect-ratio="1-1"] {
|
289 |
width: 70px !important;
|
290 |
height: 70px !important;
|
291 |
+
& div {
|
292 |
+
background-image: url("file=_res/assets/ratio_preview_bgs/70x70px_1zu1.png");
|
293 |
+
}
|
294 |
}
|
295 |
}
|
296 |
|