maputnik/src/styles/_components.scss

138 lines
2.2 KiB
SCSS
Raw Normal View History

2017-01-11 14:03:48 +01:00
// MAP
2017-01-11 09:35:48 +01:00
.maputnik-map {
position: fixed !important;
top: $toolbar-height + $toolbar-offset;
2017-01-12 11:23:06 +01:00
right: 0;
bottom: 0;
height: calc(100% - #{$toolbar-height + $toolbar-offset});
2017-01-11 09:35:48 +01:00
width: 75%;
}
2017-01-11 11:35:33 +01:00
2017-01-11 14:03:48 +01:00
// DOC LABEL
.maputnik-doc {
&-target {
cursor: help;
}
2017-01-12 11:23:06 +01:00
&-wrapper {
2017-01-11 14:03:48 +01:00
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;
2017-01-12 11:23:06 +01:00
left: 0;
2017-01-11 14:03:48 +01:00
width: 120px;
z-index: 10;
pointer-events: none;
2017-01-11 14:03:48 +01:00
}
2017-01-11 11:35:33 +01:00
}
2017-01-11 13:34:38 +01:00
2017-01-11 14:03:48 +01:00
.maputnik-doc-target:hover .maputnik-doc-popup {
display: block;
text-align: left;
2017-01-11 09:35:48 +01:00
}
2017-01-11 13:34:38 +01:00
2017-01-11 14:03:48 +01:00
// BUTTON
2017-01-11 09:35:48 +01:00
.maputnik-button {
display: inline-block;
2017-01-11 09:35:48 +01:00
cursor: pointer;
background-color: $color-midgray;
2017-01-11 09:35:48 +01:00
color: $color-lowgray;
font-size: $font-size-6;
padding: $margin-2;
user-select: none;
2018-05-10 17:50:37 +02:00
border-width: 0;
2017-01-11 09:35:48 +01:00
border-radius: 2px;
box-sizing: border-box;
&:hover {
2017-01-11 20:43:40 +01:00
background-color: lighten($color-midgray, 12);
2017-01-11 09:35:48 +01:00
color: $color-white;
}
}
.maputnik-big-button {
margin-top: $margin-3;
display: inline-block;
padding: $margin-3;
font-size: $font-size-5;
}
2017-01-11 13:34:38 +01:00
.maputnik-icon-button {
background-color: transparent;
2017-01-12 11:23:06 +01:00
2017-01-11 13:34:38 +01:00
&:hover {
background-color: transparent;
2017-01-12 11:23:06 +01:00
label,
svg {
2017-01-11 14:03:48 +01:00
cursor: pointer;
}
2017-01-12 11:23:06 +01:00
2017-01-11 13:34:38 +01:00
svg {
fill: $color-white;
}
}
}
2017-01-11 14:03:48 +01:00
// INPUT BLOCK
2017-01-11 09:35:48 +01:00
.maputnik-input-block {
margin: $margin-3;
2017-01-11 13:34:38 +01:00
&-label {
color: $color-lowgray;
2017-01-11 15:48:15 +01:00
display: inline-block;
2017-01-11 13:34:38 +01:00
user-select: none;
width: 50%;
vertical-align: top;
}
&-content {
display: inline-block;
width: 50%;
}
2017-01-11 09:35:48 +01:00
}
2017-01-11 13:34:38 +01:00
.maputnik-action-block {
.maputnik-input-block-label {
display: inline-block;
width: 35%;
2017-01-11 13:34:38 +01:00
}
2017-01-12 11:23:06 +01:00
2017-01-11 13:34:38 +01:00
.maputnik-input-block-action {
vertical-align: top;
display: inline-block;
width: 15%;
2017-01-11 13:34:38 +01:00
}
.maputnik-input-block-action > div {
text-align: right;
}
2017-01-11 11:35:33 +01:00
}
2017-01-11 14:03:48 +01:00
// SPACE HELPER
2017-01-11 09:35:48 +01:00
.maputnik-space {
2017-01-12 11:23:06 +01:00
@include vendor-prefix(flex-grow, 1);
2017-01-11 09:35:48 +01:00
}
2017-01-11 14:11:45 +01:00
// MESSAGE PANEL
.maputnik-message-panel {
padding: $margin-2;
2017-01-12 11:23:06 +01:00
&-error {
2017-01-11 14:11:45 +01:00
color: $color-red;
}
}