Controls turn into tapbar
This commit is contained in:
@@ -5,13 +5,14 @@
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
padding: var(--gap-sm);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-md);
|
||||
width: 64px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.chapters {
|
||||
position: relative;
|
||||
height: calc(64px * 3);
|
||||
height: calc(70px * 3);
|
||||
width: 100%;
|
||||
margin-bottom: var(--gap-md);
|
||||
}
|
||||
@@ -53,18 +54,16 @@
|
||||
background: var(--clr-bg);
|
||||
border-radius: 20px;
|
||||
aspect-ratio: 1/1;
|
||||
transition: width .6s, height .6s;
|
||||
transition: width .6s, height .6s, transform .6s;
|
||||
width: 0;
|
||||
height: 0;
|
||||
transform: translate(-50%, 50%);
|
||||
}
|
||||
|
||||
.selected {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
}
|
||||
|
||||
.control:nth-child(1), .blob:nth-child(1) {
|
||||
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.control:nth-child(2), .blob:nth-child(2) {
|
||||
@@ -74,3 +73,42 @@
|
||||
.control:nth-child(3), .blob:nth-child(3) {
|
||||
top: calc(70px * 2);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1080px) {
|
||||
.Controls {
|
||||
top: unset;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: calc(100% - var(--gap-md));
|
||||
height: 64px;
|
||||
border-radius: 0;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.chapters {
|
||||
width: calc(70px * 3);
|
||||
height: 64px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.control, .blob {
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.control, .control > img {
|
||||
width: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.control:nth-child(2), .blob:nth-child(2) {
|
||||
top: unset;
|
||||
left: 70px;
|
||||
}
|
||||
|
||||
.control:nth-child(3), .blob:nth-child(3) {
|
||||
top: unset;
|
||||
left: calc(70px * 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user