mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-18 16:21:37 +03:00
Experiment with this hide-controls UI on carousel
This commit is contained in:
parent
46d5e20008
commit
b06fc385ad
1 changed files with 11 additions and 0 deletions
11
src/app.css
11
src/app.css
|
@ -360,6 +360,17 @@ button.carousel-dot.active {
|
||||||
button.carousel-dot.active {
|
button.carousel-dot.active {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
@media (hover: hover) {
|
||||||
|
.carousel-controls {
|
||||||
|
transform: translateY(100%);
|
||||||
|
transition: transform 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
.carousel:hover + .carousel-controls,
|
||||||
|
.carousel-controls:hover,
|
||||||
|
.carousel-controls:focus-within {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* COMPOSE BUTTON */
|
/* COMPOSE BUTTON */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue