mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
Only do transition for large screens
This commit is contained in:
parent
7d409bde5b
commit
a495e1fa68
1 changed files with 7 additions and 8 deletions
15
src/app.css
15
src/app.css
|
@ -62,14 +62,6 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
|
||||||
scroll-padding-top: 3em;
|
scroll-padding-top: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deck-container {
|
|
||||||
transition: transform 0.4s var(--timing-function);
|
|
||||||
}
|
|
||||||
.deck-container:has(~ .deck-backdrop) {
|
|
||||||
transition: transform 0.4s ease-out;
|
|
||||||
transform: translate3d(-5vw, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.deck {
|
.deck {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
|
@ -1002,6 +994,13 @@ meter.donut:is(.danger, .explode):after {
|
||||||
#app {
|
#app {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
.deck-container {
|
||||||
|
transition: transform 0.4s var(--timing-function);
|
||||||
|
}
|
||||||
|
.deck-container:has(~ .deck-backdrop) {
|
||||||
|
transition: transform 0.4s ease-out;
|
||||||
|
transform: translate3d(-5vw, 0, 0);
|
||||||
|
}
|
||||||
.deck-backdrop .deck {
|
.deck-backdrop .deck {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
min-width: 40em;
|
min-width: 40em;
|
||||||
|
|
Loading…
Reference in a new issue