Make side panel responsive
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
.side-panel {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
top: 50%;
|
||||
bottom: 0px;
|
||||
width: 22rem;
|
||||
width: 100%;
|
||||
left: 0px;
|
||||
transition: left 0.3s;
|
||||
height:100%;
|
||||
transition: left 0.3s, top 0.3s;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
@@ -31,7 +32,7 @@
|
||||
}
|
||||
|
||||
.side-panel.hidden {
|
||||
left: -24rem;
|
||||
top:100%;
|
||||
}
|
||||
|
||||
.content {
|
||||
@@ -40,3 +41,18 @@
|
||||
overflow:hidden;
|
||||
overflow-y:auto;
|
||||
}
|
||||
|
||||
@media screen and (min-width:44rem) {
|
||||
.side-panel {
|
||||
top:0px;
|
||||
width: 22rem;
|
||||
left:0px;
|
||||
}
|
||||
|
||||
.side-panel.hidden {
|
||||
top:0px;
|
||||
width: 22rem;
|
||||
left:-24rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user