maputnik/src/styles/_input.scss

99 lines
1.5 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;
color: $color-lowgray;
}
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-11 11:35:33 +01:00
height: 26px;
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
.maputnik-color-picker-offset {
2017-01-11 11:35:33 +01:00
}
2017-01-11 13:34:38 +01:00
.maputnik-color-picker-overlay {
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;
height: 24px;
2017-01-11 11:35:33 +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;
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 11:35:33 +01:00
}
2017-01-11 13:34:38 +01:00