com.mware.web.product.map.layers.mapLayers.less Maven / Gradle / Ivy
The newest version!
.org-bigconnect-map {
.map-layers {
height: 80vh;
max-height: 300px;
width: 300px;
@blue-color: #0088cc;
.layer-list {
display: flex;
flex-direction: column;
height: 100%;
widht: 100%;
.layers {
display: flex;
flex: 1 1 100%;
flex-direction: column;
.buttons {
display: flex;
justify-content: space-between;
.toggle-all input {
margin: 0.5em;
}
.show-all {
color: @blue-color;
cursor: pointer;
transition: color 0.2s linear;
&:hover {
color: darken(@blue-color, 20%);
}
}
.create-layer {
padding: 0 0.5em;
cursor: pointer;
color: #999;
font-size: 14px;
font-weight: bold;
font-variant: small-caps;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
transition: color 0.2s linear;
&:hover {
color: @blue-color;
}
}
}
.flex-fix {
flex: 1 1 auto;
}
.ReactVirtualized__List {
&.sorting * {
cursor: grabbing;
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
}
&:focus {
outline: none;
}
}
.empty {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
p {
font-size: 16px;
color: #999;
}
}
}
}
}
}
.unsortable .layer-item {
background: #f5f5f5;
border-top: 1px solid #e9e9e9;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
cursor: default;
.layer-icon.drag-handle {
display: none;
}
&:hover {
background: #f5f5f5;
}
}
.layer-item {
display: flex;
align-items: center;
height: 27px;
border-bottom: 1px solid #eee;
cursor: grab;
cursor: -webkit-grab;
cursor: -moz-grab;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
input {
flex: 0 0 auto;
margin: 0.5em;
}
.layer-title {
display: flex;
flex-direction: column;
flex: 1 1 auto;
overflow: hidden;
margin: 0.5em;
span {
line-height: initial;
}
.title {
font-size: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.subtitle {
font-size: x-small;
color: #aaa;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.layer-icon {
display: inline-block;
background-size: cover;
flex: 0 0 auto;
opacity: 0.1;
margin: 0.5em;
&.drag-handle {
display: inline-block;
margin-right: 1em;
background-image: url(../../../../../../../img/glyphicons/[email protected]);
height: 10px;
width: 15px;
cursor: grab;
cursor: -webkit-grab;
cursor: -moz-grab;
}
}
&:hover {
background: #fcfcfc;
}
&.sorting {
background: rgba(255,255,255,0.8);
box-shadow: 2px 2px 2px 1px rgba(0,0,0,.2);
}
&.error .layer-title .subtitle {
color: red;
}
}