forked from extern/the-glorious-startpage
adjust duck responsiveness
This commit is contained in:
parent
316cd14586
commit
a97bb6eb96
27
css/dock.css
27
css/dock.css
@ -30,8 +30,8 @@
|
||||
z-index: 1 !important;
|
||||
}
|
||||
|
||||
/*Translate dock to left side if width <= 580 and height >= 540*/
|
||||
@media screen and (max-width: 580px) and (min-height: 540px) {
|
||||
/*Translate dock to left side if width <= 470 and height >= 540*/
|
||||
@media screen and (max-width: 470px) and (min-height: 540px) {
|
||||
|
||||
.dockContainer {
|
||||
display: inline-block !important;
|
||||
@ -54,15 +54,13 @@
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
margin: 5px !important;
|
||||
transform: scale(0.85) !important;
|
||||
transform: scale(0.90) !important;
|
||||
transition: transform var(--transition-speed) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/*If there's no enough height, move dock to bottom then scale up to 320px*/
|
||||
|
||||
/*Decrease scale to 0.85 if width is less than 580px*/
|
||||
@media screen and (max-width: 579px) and (max-height: 539px) {
|
||||
@media screen and (max-width: 469px) and (max-height: 539px) {
|
||||
|
||||
.dockContainer {
|
||||
position: absolute !important;
|
||||
@ -91,8 +89,9 @@
|
||||
|
||||
}
|
||||
|
||||
/*Decrease scale to 0.65 if width is less than 490px*/
|
||||
@media screen and (max-width: 490px) and (max-height: 539px) {
|
||||
|
||||
/*Decrease scale to 0.75 if width is less than 380px*/
|
||||
@media screen and (max-width: 380px) and (max-height: 539px) {
|
||||
|
||||
.dockContainer {
|
||||
position: absolute !important;
|
||||
@ -115,14 +114,14 @@
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
margin: 5px !important;
|
||||
transform: scale(0.65) !important;
|
||||
transform: scale(0.75) !important;
|
||||
transition: transform var(--transition-speed) !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*Decrease scale to 0.55 if width is less than or equal to 374px and greater than or equal to 320px*/
|
||||
@media screen and (max-width: 375px) and (min-width: 320px) and (max-height: 539px) {
|
||||
/*Decrease scale to 0.70 if width is less than or equal to 374px and greater than or equal to 320px*/
|
||||
@media screen and (max-width: 350px) and (min-width: 320px) and (max-height: 539px) {
|
||||
|
||||
.dockContainer {
|
||||
position: absolute !important;
|
||||
@ -145,12 +144,12 @@
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
margin: 5px !important;
|
||||
transform: scale(0.55) !important;
|
||||
transform: scale(0.70) !important;
|
||||
transition: transform var(--transition-speed) !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*Scale to 0 if less than 320px*/
|
||||
@media screen and (max-width: 319px) and (max-height: 539px) {
|
||||
|
||||
@ -181,4 +180,4 @@
|
||||
opacity var(--transition-speed) !important;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user