mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-03 23:01:46 +01:00
137 lines
2.2 KiB
SCSS
137 lines
2.2 KiB
SCSS
// MAP
|
|
.maputnik-map {
|
|
position: fixed !important;
|
|
top: $toolbar-height + $toolbar-offset;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: calc(100% - #{$toolbar-height + $toolbar-offset});
|
|
width: 75%;
|
|
}
|
|
|
|
// DOC LABEL
|
|
.maputnik-doc {
|
|
&-target {
|
|
cursor: help;
|
|
}
|
|
|
|
&-wrapper {
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
font-size: $font-size-6;
|
|
line-height: 2;
|
|
user-select: none;
|
|
position: relative;
|
|
vertical-align: top;
|
|
}
|
|
|
|
&-popup {
|
|
display: none;
|
|
color: $color-lowgray;
|
|
background-color: $color-gray;
|
|
padding: $margin-2;
|
|
font-size: 10px;
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 0;
|
|
width: 120px;
|
|
z-index: 10;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.maputnik-doc-target:hover .maputnik-doc-popup {
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
|
|
// BUTTON
|
|
.maputnik-button {
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
background-color: $color-midgray;
|
|
color: $color-lowgray;
|
|
font-size: $font-size-6;
|
|
padding: $margin-2;
|
|
user-select: none;
|
|
border-width: 0;
|
|
border-radius: 2px;
|
|
box-sizing: border-box;
|
|
|
|
&:hover {
|
|
background-color: lighten($color-midgray, 12);
|
|
color: $color-white;
|
|
}
|
|
}
|
|
|
|
.maputnik-big-button {
|
|
margin-top: $margin-3;
|
|
display: inline-block;
|
|
padding: $margin-3;
|
|
font-size: $font-size-5;
|
|
}
|
|
|
|
.maputnik-icon-button {
|
|
background-color: transparent;
|
|
|
|
&:hover {
|
|
background-color: transparent;
|
|
|
|
label,
|
|
svg {
|
|
cursor: pointer;
|
|
}
|
|
|
|
svg {
|
|
fill: $color-white;
|
|
}
|
|
}
|
|
}
|
|
|
|
// INPUT BLOCK
|
|
.maputnik-input-block {
|
|
margin: $margin-3;
|
|
|
|
&-label {
|
|
color: $color-lowgray;
|
|
display: inline-block;
|
|
user-select: none;
|
|
width: 50%;
|
|
vertical-align: top;
|
|
}
|
|
|
|
&-content {
|
|
display: inline-block;
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
.maputnik-action-block {
|
|
.maputnik-input-block-label {
|
|
display: inline-block;
|
|
width: 35%;
|
|
}
|
|
|
|
.maputnik-input-block-action {
|
|
vertical-align: top;
|
|
display: inline-block;
|
|
width: 15%;
|
|
}
|
|
|
|
.maputnik-input-block-action > div {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
// SPACE HELPER
|
|
.maputnik-space {
|
|
@include vendor-prefix(flex-grow, 1);
|
|
}
|
|
|
|
// MESSAGE PANEL
|
|
.maputnik-message-panel {
|
|
padding: $margin-2;
|
|
|
|
&-error {
|
|
color: $color-red;
|
|
}
|
|
}
|