maputnik/src/styles/_components.scss

127 lines
1.9 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: 40px;
right: 0px;
bottom: 0px;
height: 100%;
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;
}
&-wrapper{
display: inline-block;
box-sizing: border-box;
font-size: $font-size-6;
line-height: 2;
color: $color-lowgray;
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: 0px;
width: 120px;
z-index: 3;
}
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;
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 {
cursor: pointer;
background-color: $color-midgray;
color: $color-lowgray;
font-size: $font-size-6;
padding: $margin-2;
user-select: none;
border-radius: 2px;
box-sizing: border-box;
&:hover {
background-color: lighten($color-midgray, 6);
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;
&:hover {
background-color: transparent;
2017-01-11 14:03:48 +01:00
label, svg {
cursor: pointer;
}
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 {
display: inline-block;
color: $color-lowgray;
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: 43%;
}
.maputnik-input-block-action {
vertical-align: top;
display: inline-block;
width: 7%;
}
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 {
flex-grow: 1;
}
2017-01-11 14:11:45 +01:00
// MESSAGE PANEL
.maputnik-message-panel {
padding: $margin-2;
&-error {
color: $color-red;
}
}