2020-02-14 12:30:33 +00:00
|
|
|
.wc-block-select {
|
2020-03-16 13:13:04 +00:00
|
|
|
height: 48px;
|
2020-01-17 16:58:08 +00:00
|
|
|
position: relative;
|
2020-03-17 11:45:33 +00:00
|
|
|
margin-bottom: $gap-large;
|
2020-01-17 16:58:08 +00:00
|
|
|
|
|
|
|
label {
|
|
|
|
position: absolute;
|
2020-02-17 11:12:15 +00:00
|
|
|
transform: translateY(#{$gap-small});
|
2020-01-17 16:58:08 +00:00
|
|
|
transform-origin: top left;
|
|
|
|
transition: all 200ms ease;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 22px;
|
|
|
|
color: $gray-50;
|
|
|
|
z-index: 1;
|
2020-02-17 11:12:15 +00:00
|
|
|
margin: 0 $gap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: calc(100% - #{ 2 * $gap });
|
2020-01-17 16:58:08 +00:00
|
|
|
|
|
|
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active label {
|
2020-02-17 11:12:15 +00:00
|
|
|
transform: translateY(#{$gap-smallest}) scale(0.75);
|
2020-01-17 16:58:08 +00:00
|
|
|
}
|
|
|
|
|
2020-03-17 11:45:33 +00:00
|
|
|
&.has-error {
|
|
|
|
.components-custom-select-control__button {
|
|
|
|
border-color: $error-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-error label {
|
|
|
|
color: $error-red;
|
|
|
|
}
|
|
|
|
|
2020-01-17 16:58:08 +00:00
|
|
|
.components-custom-select-control__button {
|
|
|
|
background-color: #fff;
|
2020-02-14 12:30:33 +00:00
|
|
|
box-shadow: none;
|
|
|
|
color: $input-text-active;
|
|
|
|
font-family: inherit;
|
2020-01-17 16:58:08 +00:00
|
|
|
font-size: 16px;
|
|
|
|
font-weight: normal;
|
2020-02-17 11:12:15 +00:00
|
|
|
height: 48px;
|
2020-02-14 12:30:33 +00:00
|
|
|
letter-spacing: inherit;
|
2020-01-17 16:58:08 +00:00
|
|
|
line-height: 1;
|
2020-02-17 11:12:15 +00:00
|
|
|
overflow: hidden;
|
2020-01-17 16:58:08 +00:00
|
|
|
padding: $gap-large $gap $gap-smallest;
|
2020-02-17 11:12:15 +00:00
|
|
|
text-overflow: ellipsis;
|
2020-02-14 12:30:33 +00:00
|
|
|
text-transform: none;
|
2020-01-17 16:58:08 +00:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background-color: #fff;
|
2020-02-14 12:30:33 +00:00
|
|
|
text-decoration: none;
|
2020-01-17 16:58:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.components-custom-select-control__menu {
|
|
|
|
background-color: #fff;
|
|
|
|
margin: 0;
|
|
|
|
max-height: 300px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.components-custom-select-control__item {
|
|
|
|
font-size: 16px;
|
|
|
|
margin-left: 0;
|
|
|
|
padding-left: $gap;
|
|
|
|
}
|
2020-02-14 12:30:33 +00:00
|
|
|
|
|
|
|
.components-custom-select-control__item-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-01-17 16:58:08 +00:00
|
|
|
}
|