maputnik/src/styles/_input.scss

140 lines
2.2 KiB
SCSS
Raw Normal View History

2017-01-11 13:34:38 +01:00
//INPUT
.maputnik-input {
height: 24px;
width: 100%;
display: block;
2017-01-11 09:35:48 +01:00
box-sizing: border-box;
font-size: $font-size-6;
line-height: 2;
padding-left: $margin-2;
padding-right: $margin-2;
border: none;
background-color: $color-gray;
2017-01-11 15:48:15 +01:00
color: lighten($color-lowgray, 12);
2017-01-11 09:35:48 +01:00
}
2017-01-11 13:34:38 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-string {
@extend .maputnik-input;
}
2017-01-11 13:34:38 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-number {
@extend .maputnik-input;
}
//COLOR PICKER
.maputnik-color {
@extend .maputnik-input;
2017-01-12 11:23:06 +01:00
2017-01-11 11:35:33 +01:00
height: 26px;
2017-01-11 09:35:48 +01:00
}
2017-01-12 11:23:06 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-color-wrapper {
position: relative;
display: inline;
}
2017-01-11 11:35:33 +01:00
2017-01-11 13:34:38 +01:00
// ARRAY
2017-01-11 11:35:33 +01:00
2017-01-11 13:34:38 +01:00
.maputnik-array {
2017-01-11 11:35:33 +01:00
> * {
2017-01-11 13:34:38 +01:00
margin-bottom: $margin-3;
2017-01-11 11:35:33 +01:00
}
}
2017-01-11 13:34:38 +01:00
// SELECT
.maputnik-select {
@extend .maputnik-input;
2017-01-12 11:23:06 +01:00
2017-01-11 13:34:38 +01:00
height: 24px;
2017-01-11 11:35:33 +01:00
}
2017-01-11 14:03:48 +01:00
// MULTIBUTTON
.maputnik-multibutton {
2017-01-11 14:13:23 +01:00
padding: 0;
.maputnik-button {
margin-right: $margin-1;
}
2017-01-11 14:03:48 +01:00
}
.maputnik-button-selected {
2017-01-11 20:43:40 +01:00
background-color: lighten($color-midgray, 12);
outline: 1px $color-white;
color: white;
2017-01-11 14:03:48 +01:00
}
2017-01-11 13:34:38 +01:00
// CHECKBOX
.maputnik-checkbox {
position: absolute;
z-index: -1;
opacity: 0;
width: 50%;
2017-01-11 11:35:33 +01:00
2017-01-11 13:34:38 +01:00
&-wrapper {
@extend .maputnik-input;
2017-01-12 11:23:06 +01:00
2017-01-11 13:34:38 +01:00
padding-left: 0;
padding-right: 0;
position: relative;
text-align: center;
vertical-align: middle;
2017-01-11 11:35:33 +01:00
cursor: pointer;
2017-01-11 13:34:38 +01:00
max-width: 24px;
2017-01-11 11:35:33 +01:00
}
2017-01-11 13:34:38 +01:00
&-box {
display: inline-block;
text-align: center;
height: 24px;
width: 24px;
margin-right: $margin-2;
background-color: $color-gray;
border-radius: 2px;
border-style: solid;
border-width: 2px;
border-color: $color-gray;
transition: background-color 0.1s ease-out;
2017-01-11 11:35:33 +01:00
}
2017-01-11 13:34:38 +01:00
&-icon {
width: 50%;
height: 50%;
margin-top: 1px;
fill: $color-lowgray;
}
2017-01-11 11:35:33 +01:00
}
2017-01-11 13:34:38 +01:00
// AUTOCOMPLETE
.maputnik-autocomplete {
2017-01-11 14:03:48 +01:00
&-menu {
border: none;
padding: 2px 0;
position: fixed;
overflow: auto;
max-height: 50%;
background: $color-gray;
2017-01-12 11:23:06 +01:00
z-index: 3;
2017-01-11 14:03:48 +01:00
}
&-menu-item {
user-select: none;
color: $color-lowgray;
cursor: default;
padding: $margin-1;
font-size: $font-size-6;
z-index: 3;
background: $color-gray;
}
&-menu-item-selected {
background: $color-midgray;
}
2017-01-11 11:35:33 +01:00
}
2017-01-11 13:34:38 +01:00
2017-01-11 14:03:48 +01:00
// FONT
.maputnik-font {
.maputnik-autocomplete:not(:last-child) {
margin-bottom: $margin-3;
}
}