Files
farmOS-dev/web/libraries/farmOS-map/farmOS-map.css
2024-12-10 15:08:16 +01:00

926 lines
19 KiB
CSS

/*! farmOS-map 2.3.0 */
.ol-box {
box-sizing: border-box;
border-radius: 2px;
border: 1.5px solid rgb(179,197,219);
background-color: rgba(255,255,255,0.4);
}
.ol-mouse-position {
top: 8px;
right: 8px;
position: absolute;
}
.ol-scale-line {
background: rgba(0,60,136,0.3);
border-radius: 4px;
bottom: 8px;
left: 8px;
padding: 2px;
position: absolute;
}
.ol-scale-line-inner {
border: 1px solid #eee;
border-top: none;
color: #eee;
font-size: 10px;
text-align: center;
margin: 1px;
will-change: contents, width;
transition: all 0.25s;
}
.ol-scale-bar {
position: absolute;
bottom: 8px;
left: 8px;
}
.ol-scale-step-marker {
width: 1px;
height: 15px;
background-color: #000000;
float: right;
z-index: 10;
}
.ol-scale-step-text {
position: absolute;
bottom: -5px;
font-size: 12px;
z-index: 11;
color: #000000;
text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;
}
.ol-scale-text {
position: absolute;
font-size: 14px;
text-align: center;
bottom: 25px;
color: #000000;
text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;
}
.ol-scale-singlebar {
position: relative;
height: 10px;
z-index: 9;
box-sizing: border-box;
border: 1px solid black;
}
.ol-unsupported {
display: none;
}
.ol-viewport, .ol-unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ol-viewport canvas {
all: unset;
}
.ol-selectable {
-webkit-touch-callout: default;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.ol-grabbing {
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
}
.ol-grab {
cursor: move;
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.ol-control {
position: absolute;
background-color: rgba(255,255,255,0.4);
border-radius: 4px;
padding: 2px;
}
.ol-control:hover {
background-color: rgba(255,255,255,0.6);
}
.ol-zoom {
top: .5em;
left: .5em;
}
.ol-rotate {
top: .5em;
right: .5em;
transition: opacity .25s linear, visibility 0s linear;
}
.ol-rotate.ol-hidden {
opacity: 0;
visibility: hidden;
transition: opacity .25s linear, visibility 0s linear .25s;
}
.ol-zoom-extent {
top: 4.643em;
left: .5em;
}
.ol-full-screen {
right: .5em;
top: .5em;
}
.ol-control button {
display: block;
margin: 1px;
padding: 0;
color: white;
font-weight: bold;
text-decoration: none;
font-size: inherit;
text-align: center;
height: 1.375em;
width: 1.375em;
line-height: .4em;
background-color: rgba(0,60,136,0.5);
border: none;
border-radius: 2px;
}
.ol-control button::-moz-focus-inner {
border: none;
padding: 0;
}
.ol-zoom-extent button {
line-height: 1.4em;
}
.ol-compass {
display: block;
font-weight: normal;
font-size: 1.2em;
will-change: transform;
}
.ol-touch .ol-control button {
font-size: 1.5em;
}
.ol-touch .ol-zoom-extent {
top: 5.5em;
}
.ol-control button:hover,
.ol-control button:focus {
text-decoration: none;
background-color: rgba(0,60,136,0.7);
}
.ol-zoom .ol-zoom-in {
border-radius: 2px 2px 0 0;
}
.ol-zoom .ol-zoom-out {
border-radius: 0 0 2px 2px;
}
.ol-attribution {
text-align: right;
bottom: .5em;
right: .5em;
max-width: calc(100% - 1.3em);
display: flex;
flex-flow: row-reverse;
align-items: center;
}
.ol-attribution a {
color: rgba(0,60,136,0.7);
text-decoration: none;
}
.ol-attribution ul {
margin: 0;
padding: 1px .5em;
color: #000;
text-shadow: 0 0 2px #fff;
font-size: 12px;
}
.ol-attribution li {
display: inline;
list-style: none;
}
.ol-attribution li:not(:last-child):after {
content: " ";
}
.ol-attribution img {
max-height: 2em;
max-width: inherit;
vertical-align: middle;
}
.ol-attribution button {
flex-shrink: 0;
}
.ol-attribution.ol-collapsed ul {
display: none;
}
.ol-attribution:not(.ol-collapsed) {
background: rgba(255,255,255,0.8);
}
.ol-attribution.ol-uncollapsible {
bottom: 0;
right: 0;
border-radius: 4px 0 0;
}
.ol-attribution.ol-uncollapsible img {
margin-top: -.2em;
max-height: 1.6em;
}
.ol-attribution.ol-uncollapsible button {
display: none;
}
.ol-zoomslider {
top: 4.5em;
left: .5em;
height: 200px;
}
.ol-zoomslider button {
position: relative;
height: 10px;
}
.ol-touch .ol-zoomslider {
top: 5.5em;
}
.ol-overviewmap {
left: 0.5em;
bottom: 0.5em;
}
.ol-overviewmap.ol-uncollapsible {
bottom: 0;
left: 0;
border-radius: 0 4px 0 0;
}
.ol-overviewmap .ol-overviewmap-map,
.ol-overviewmap button {
display: block;
}
.ol-overviewmap .ol-overviewmap-map {
border: 1px solid #7b98bc;
height: 150px;
margin: 2px;
width: 150px;
}
.ol-overviewmap:not(.ol-collapsed) button {
bottom: 2px;
left: 2px;
position: absolute;
}
.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
.ol-overviewmap.ol-uncollapsible button {
display: none;
}
.ol-overviewmap:not(.ol-collapsed) {
background: rgba(255,255,255,0.8);
}
.ol-overviewmap-box {
border: 2px dotted rgba(0,60,136,0.7);
}
.ol-overviewmap .ol-overviewmap-box:hover {
cursor: move;
}
.layer-switcher {
position: absolute;
top: 3.5em;
right: 0.5em;
text-align: left;
}
.layer-switcher .panel {
margin: 0;
border: 4px solid #eee;
border-radius: 4px;
background-color: white;
display: none;
max-height: inherit;
height: 100%;
box-sizing: border-box;
overflow-y: auto;
}
.layer-switcher button {
float: right;
z-index: 1;
width: 38px;
height: 38px;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVm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hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==')
/*logo.png*/;
background-repeat: no-repeat;
background-position: 2px;
background-color: white;
color: black;
border: none;
}
.layer-switcher button:focus,
.layer-switcher button:hover {
background-color: white;
}
.layer-switcher.shown {
overflow-y: hidden;
}
.layer-switcher.shown.ol-control {
background-color: transparent;
}
.layer-switcher.shown.ol-control:hover {
background-color: transparent;
}
.layer-switcher.shown .panel {
display: block;
}
.layer-switcher.shown button {
display: none;
}
.layer-switcher.shown.layer-switcher-activation-mode-click > button {
display: block;
background-image: unset;
right: 2px;
position: absolute;
background-color: #eee;
margin: 0 1px;
}
.layer-switcher.shown button:focus,
.layer-switcher.shown button:hover {
background-color: #fafafa;
}
.layer-switcher ul {
list-style: none;
margin: 1.6em 0.4em;
padding-left: 0;
}
.layer-switcher ul ul {
padding-left: 1.2em;
margin: 0.1em 0 0 0;
}
.layer-switcher li.group + li.group {
margin-top: 0.4em;
}
.layer-switcher li.group + li.layer-switcher-base-group {
}
.layer-switcher li.group > label {
font-weight: bold;
}
.layer-switcher.layer-switcher-group-select-style-none li.group > label {
padding-left: 1.2em;
}
.layer-switcher li {
position: relative;
margin-top: 0.3em;
}
.layer-switcher li input {
position: absolute;
left: 1.2em;
height: 1em;
width: 1em;
font-size: 1em;
}
.layer-switcher li label {
padding-left: 2.7em;
padding-right: 1.2em;
display: inline-block;
margin-top: 1px;
}
.layer-switcher label.disabled {
opacity: 0.4;
}
.layer-switcher input {
margin: 0px;
}
.layer-switcher.touch ::-webkit-scrollbar {
width: 4px;
}
.layer-switcher.touch ::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
}
.layer-switcher.touch ::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}
li.layer-switcher-base-group > label {
padding-left: 1.2em;
}
.layer-switcher .group button {
position: absolute;
left: 0;
display: inline-block;
vertical-align: top;
float: none;
font-size: 1em;
width: 1em;
height: 1em;
margin: 0;
background-position: center 2px;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAW0lEQVR4nGNgGAWMyBwXFxcGBgaGeii3EU0tXHzPnj1wQRYsihqQ+I0ExDEMQAYNONgoAN0AmMkNaDSyQSheY8JiaCMOGzE04zIAmyFYNTMw4A+DRhzsUUBtAADw4BCeIZkGdwAAAABJRU5ErkJggg==');
-webkit-transition: -webkit-transform 0.2s ease-in-out;
-ms-transition: -ms-transform 0.2s ease-in-out;
transition: transform 0.2s ease-in-out;
}
.layer-switcher .group.layer-switcher-close button {
transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
}
.layer-switcher .group.layer-switcher-fold.layer-switcher-close > ul {
overflow: hidden;
height: 0;
}
/*layerswitcher on the right*/
.layer-switcher.shown.layer-switcher-activation-mode-click {
padding-left: 34px;
}
.layer-switcher.shown.layer-switcher-activation-mode-click > button {
left: 0;
border-right: 0;
}
/*layerswitcher on the left*/
/*
.layer-switcher.shown.layer-switcher-activation-mode-click {
padding-right: 34px;
}
.layer-switcher.shown.layer-switcher-activation-mode-click > button {
right: 0;
border-left: 0;
}
*/
/*!
* ol-geocoder - v4.3.1
* A geocoder extension compatible with OpenLayers v6.x, v7.x & v8.x
* https://github.com/Dominique92/ol-geocoder
* Built: 15/09/2023 16:57:43
*/
.ol-touch .ol-control.gcd-gl-control button {
font-size: 1.14em; }
.ol-touch .ol-geocoder.gcd-gl-container {
font-size: 1.1em; }
.ol-geocoder.gcd-gl-container {
position: absolute;
top: 4.875em;
left: .5em;
box-sizing: border-box;
font-size: 0.9em; }
.ol-geocoder.gcd-gl-container *,
.ol-geocoder.gcd-gl-container *::before,
.ol-geocoder.gcd-gl-container *::after {
box-sizing: inherit; }
.ol-geocoder .gcd-gl-control {
width: 2.1875em;
height: 2.1875em;
overflow: hidden;
transition: width 200ms, height 200ms; }
.ol-geocoder .gcd-gl-expanded {
width: 15.625em;
height: 2.1875em; }
.ol-geocoder .gcd-gl-input {
position: absolute;
z-index: 99;
top: 0.25em;
left: 2.5em;
width: 14.84375em;
padding: 5px;
border: 1px solid #ccc;
font-family: inherit;
font-size: 0.875em;
background-color: #fff;
color: #222; }
.ol-geocoder .gcd-gl-input:focus {
border: none;
outline: none;
box-shadow: inset 0 0 0 1px #4d90fe, inset 0 0 5px #4d90fe; }
.ol-geocoder .gcd-gl-search {
position: absolute;
z-index: 100;
top: 0;
right: 0;
width: 1.5625em;
height: 100%;
line-height: 1.4;
border: none;
background-color: transparent;
display: inline-block;
outline: 0;
cursor: pointer; }
.ol-geocoder .gcd-gl-search::after {
content: "\2386";
display: inline-block;
color: #333;
font-size: 1.5em;
cursor: pointer; }
.ol-geocoder .gcd-gl-btn {
position: absolute;
width: 1.5625em;
height: 1.5625em;
top: 0.125em;
left: 0.125em;
cursor: pointer; }
.ol-geocoder .gcd-gl-btn:after {
content: "\1F50D"; }
.ol-geocoder ul.gcd-gl-result {
position: absolute;
top: 2.1875em;
left: 2em;
width: 16.25em;
max-height: 18.75em;
white-space: normal;
list-style: none;
padding: 0;
margin: 0;
background-color: white;
border-radius: 4px;
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
overflow-x: hidden;
overflow-y: auto;
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
transition: max-height 300ms ease-in; }
.ol-geocoder ul.gcd-gl-result > li {
width: 100%;
overflow: hidden;
border-bottom: 1px solid #eee;
padding: 0;
line-height: 0.875rem; }
.ol-geocoder ul.gcd-gl-result > li > a {
display: block;
text-decoration: none;
padding: 3px 5px; }
.ol-geocoder ul.gcd-gl-result > li > a:hover {
background-color: #d4d4d4; }
.ol-geocoder ul.gcd-gl-result > li:nth-child(odd) {
background-color: #e0ffe0; }
.ol-geocoder ul.gcd-gl-result:empty {
display: none; }
.ol-geocoder.gcd-txt-container {
position: absolute;
width: 25em;
height: 4.375em;
top: .5em;
left: calc(50% - 12.5em);
box-sizing: border-box; }
.ol-geocoder.gcd-txt-container *,
.ol-geocoder.gcd-txt-container *::before,
.ol-geocoder.gcd-txt-container *::after {
box-sizing: inherit; }
.ol-geocoder .gcd-txt-control {
position: relative;
width: 100%;
height: 4.375em;
border: 1px solid #ccc;
background-color: #fff;
overflow: hidden; }
.ol-geocoder .gcd-txt-label {
display: inline-block;
width: 100%;
text-align: center; }
.ol-geocoder .gcd-txt-input {
position: absolute;
z-index: 99;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 5px 30px 5px 40px;
border: none;
text-indent: 6px;
background-color: transparent;
font-family: inherit;
font-size: 0.875em; }
.ol-geocoder .gcd-txt-input:focus {
outline: none;
box-shadow: inset 0 0 0 1px #4d90fe, inset 0 0 6px #4d90fe; }
.ol-geocoder .gcd-txt-search {
position: absolute;
z-index: 100;
top: 0;
right: 0;
width: 2.5em;
height: 100%;
line-height: 100%;
border: none;
background-color: transparent;
display: inline-block;
vertical-align: middle;
outline: 0;
cursor: pointer; }
.ol-geocoder .gcd-txt-search::after {
content: "\2386";
display: inline-block;
color: #333;
font-size: 2em;
cursor: pointer; }
.ol-geocoder .gcd-txt-glass {
position: absolute;
top: 26px;
left: 9px;
z-index: 100;
display: inline-block;
width: 2.5em;
height: 100%; }
.ol-geocoder .gcd-txt-glass:after {
content: "\1F50D"; }
.ol-geocoder ul.gcd-txt-result {
position: absolute;
top: 4.575em;
left: 0;
width: 25em;
max-height: 18.75em;
white-space: normal;
list-style: none;
padding: 0;
margin: 0;
background-color: white;
border-radius: 4px;
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
overflow-x: hidden;
overflow-y: auto;
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
transition: max-height 300ms ease-in; }
.ol-geocoder ul.gcd-txt-result > li {
width: 100%;
overflow: hidden;
border-bottom: 1px solid #eee;
padding: 0;
line-height: 0.875rem; }
.ol-geocoder ul.gcd-txt-result > li > a {
display: block;
text-decoration: none;
padding: 3px 5px; }
.ol-geocoder ul.gcd-txt-result > li > a:hover {
background-color: #d4d4d4; }
.ol-geocoder ul.gcd-txt-result > li:nth-child(odd) {
background-color: #e0ffe0; }
.ol-geocoder ul.gcd-txt-result:empty {
display: none; }
.ol-geocoder .gcd-hidden {
opacity: 0;
visibility: hidden; }
.ol-geocoder .gcd-pseudo-rotate::after {
animation: spin .7s linear infinite; }
@keyframes spin {
from {
transform: rotate(0deg); }
to {
transform: rotate(360deg); } }
.gcd-address {
font-size: 0.875em;
font-weight: 500;
color: #333; }
.gcd-road {
font-size: 0.875em;
font-weight: 500;
color: #333; }
.gcd-city {
font-size: 0.75em;
font-weight: normal;
color: #333; }
.gcd-country {
font-size: 0.75em;
font-weight: lighter;
color: #333; }
.ol-geolocate.ol-control {
top: 0.5em;
left: 3em;
}
.ol-geolocate.ol-control button {
display: inline-block;
}
.ol-geolocate.ol-control button.enable {
text-decoration: none;
background-color: #4c6079;
background-color: rgba(0, 60, 136, 0.7);
}
.ol-geolocate.ol-control.active button {
background-color: #fc3;
background-color: rgba(255, 204, 51, 0.7);
}
.ol-geolocate.ol-control button svg {
pointer-events: none;
}
.ol-popup {
display: none;
position: absolute;
background-color: white;
padding: 15px 25px 15px 15px;
border: 1px solid #cccccc;
bottom: 12px;
left: -50px;
}
.ol-popup:after, .ol-popup:before {
top: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.ol-popup:after {
border-top-color: white;
border-width: 10px;
left: 48px;
margin-left: -10px;
}
.ol-popup:before {
border-top-color: #cccccc;
border-width: 11px;
left: 48px;
margin-left: -11px;
}
.ol-popup-content {
min-width: 170px;
max-height: 200px;
overflow-x: auto;
}
.ol-popup-closer {
position: absolute;
top: 2px;
right: 2px;
font-size: 150%;
padding: 0 4px;
color: gray;
text-decoration: none;
}
.ol-popup-closer:after {
content: "\2716";
}
.ol-popup div.infoResult {
min-width: 130px;
}
.ol-popup div.infoResult p {
padding: 0.1em;
margin: 0;
}
.ol-popup-content h3 {
margin: 0.25em 0;
}
.ol-popup.marker {
margin-bottom: 30px;
}
/* Control color. */
:root {
--farmos-map-accent-color: green;
}
.ol-control {
background-color: rgba(255, 255, 255, 0.25);
}
.ol-control svg {
fill: var(--farmos-map-accent-color);
}
.ol-control button {
color: var(--farmos-map-accent-color);
background-color: rgba(255, 255, 255, 0.8);
}
.ol-control button:hover,
.ol-control button:focus {
background-color: rgba(255, 255, 255, 1);
}
.ol-scale-line {
background: rgba(255, 255, 255, 0.25);
}
/* Control backgrounds. */
.ol-geocoder .gcd-gl-btn {
background-image: none;
}
.ol-geocoder .gcd-gl-btn::after {
content: '\1f50d';
}
.layer-switcher > button {
background-size: 1.5em 1.5em;
}
/* Control sizing. */
.ol-control button,
.ol-geocoder .gcd-gl-btn {
height: 1.75em;
width: 1.75em;
}
.ol-geocoder .gcd-gl-control {
width: 2.4em;
height: 2.4em;
font-size: 1.14em;
}
.ol-geocoder .gcd-gl-expanded {
width: 16em;
height: 2.4em;
}
.ol-geocoder .gcd-gl-input {
height: 2.4em;
top: 0.125em;
left: 3em;
}
/* Control positioning. */
.ol-geolocate.ol-control {
left: 3.5em;
}
.ol-geocoder.gcd-gl-container {
top: 0.5em;
left: 7em;
}
.ol-edit.ol-control {
top: 4.75em;
}
.ol-rotate.ol-control {
right: 3.5em;
}
.layer-switcher {
top: 3.5em;
}
.layer-switcher.shown {
max-height: 300px;
}
/* Popup styles. */
.ol-popup {
padding: 0.75em;
}