Files
leaflet-geosearch/assets/css/leaflet.css
2016-12-19 14:44:21 +01:00

144 lines
2.7 KiB
CSS

.geosearch.leaflet-bar form,
.geosearch.leaflet-bar .message {
display: none;
}
.geosearch.leaflet-bar.active form {
display: block;
box-shadow: none;
}
.geosearch a.leaflet-bar-part {
border-radius: 4px;
border-bottom: none;
}
.leaflet-control-geosearch a.leaflet-bar-part:before,
.leaflet-control-geosearch a.leaflet-bar-part:after {
position: absolute;
display: block;
content: '';
}
.leaflet-control-geosearch a.leaflet-bar-part:before {
top: 19px;
left: 16px;
width: 8px;
border-top: 2px solid #555;
transform: rotateZ(45deg);
}
.leaflet-control-geosearch a.leaflet-bar-part:after {
top: 6px;
left: 6px;
height: 14px;
width: 14px;
border-radius: 50%;
border: 2px solid #555;
}
.leaflet-control-geosearch.error a.leaflet-bar-part:before,
.leaflet-control-geosearch.pending a.leaflet-bar-part:before{
display: none;
}
.leaflet-control-geosearch.pending a.leaflet-bar-part:after,
.leaflet-control-geosearch.error a.leaflet-bar-part:after {
left: 50%;
top: 50%;
width: 18px;
height: 18px;
margin: -9px 0 0 -9px;
border-radius: 50%;
}
.leaflet-control-geosearch.pending a.leaflet-bar-part:after {
border: 2px solid #555;
border-top: 2px solid #f3f3f3;
animation: spin 1s linear infinite;
}
.leaflet-control-geosearch.error a.leaflet-bar-part:after {
content: '!';
line-height: initial;
font-weight: 600;
font-size: 18px;
border: none;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.geosearch.active a.leaflet-bar-part {
border-radius: 4px 0 0 4px
}
.leaflet-control-geosearch {
position: relative;
}
.leaflet-control-geosearch form {
position: absolute;
top: -2px;
left: 30px;
border-radius: 0 4px 4px 0;
border: 2px solid rgba(0,0,0,0.2);
border-left: none;
background-clip: padding-box;
z-index: -1;
height: auto;
margin: 0;
padding: 0 8px;
}
.leaflet-control-geosearch form input {
min-width: 200px;
width: 100%;
border: none;
outline: none;
margin: 0;
padding: 0;
font-size: 12px;
height: 30px;
border-radius: 0 4px 4px 0;
text-indent: 8px;
}
.leaflet-control-geosearch {
border-left: 2px solid rgba(0, 0, 0, 0.2);
}
.leaflet-control-geosearch .message {
position: absolute;
top: 26px;
left: 0;
width: 226px;
color: #FFF;
background: rgb(40, 40, 40);
padding: 4px 0 4px 8px;
}
.leaflet-touch .leaflet-control-geosearch .message {
top: 30px;
left: -2px;
}
.leaflet-control-geosearch .results > * {
white-space: nowrap;
line-height: 24px;
padding: 0 8px;
}
.leaflet-control-geosearch .results.active {
padding: 8px 0;
border-top: 1px solid #c6c6c6;
}
.leaflet-control-geosearch .results > div.active,
.leaflet-control-geosearch .results > div:hover {
background-color: #f8f8f8;
border-color: #c6c6c6;
cursor: pointer;
}