FarmMapsLib/projects/common-map/src/fm-map/components/layer-switcher/layer-switcher.component.scss

76 lines
1.3 KiB
SCSS
Raw Normal View History

2020-02-17 17:31:23 +00:00
@import "~bootstrap/scss/bootstrap.scss";
.layer-switcher {
display:block;
width:2.5em;
height:2.5em;
background-color: $body-bg;
2020-02-17 17:31:23 +00:00
background-size: contain;
margin-top:0.5em;
text-align: center;
2020-02-18 15:41:24 +00:00
line-height: 2.5em;
2020-02-24 22:26:28 +00:00
border-radius: 1.75em;
padding: 0;
color: $secondary;
2020-02-17 17:31:23 +00:00
}
2020-02-24 22:26:28 +00:00
.layer-switcher i {
font-weight: bold;
}
2022-09-27 17:58:08 +00:00
.slideButton {
margin-left: 1em;
}
2020-02-17 17:31:23 +00:00
.layers {
2020-02-24 22:26:28 +00:00
color:$secondary;
2020-02-17 17:31:23 +00:00
position: absolute;
overflow: hidden;
bottom: -1em;
right: -1em;
text-align: left;
min-width: 100vw;
2020-02-18 15:41:24 +00:00
z-index: 4;
2020-02-17 17:31:23 +00:00
// transition: max-height 0.3s ease-out,max-width 0.3s ease-out,min-height 0.3s ease-out,min-width 0.3s ease-out;
}
.hidden {
max-width:0;
max-height: 0;
min-height: 0;
min-width: 0;
}
.navbar-nav {
padding-left: 7px;
padding-right: 7px;
margin-bottom: 7px;
overflow-x: hidden;
overflow-y: auto;
bottom:-3rem;
height: 50vh;
}
@media screen and (min-width:44rem) {
.layer-switcher {
position: relative;
}
.layers {
max-width: 100%;
min-width: 22em;
bottom: 2.5em;
right: 2.5em;
min-height: 0;
max-height: calc(100vh - 9rem);
}
.hidden {
max-width:0;
max-height: 0;
min-height: 0;
min-width: 0;
}
}