2020-03-27 18:02:11 +08:00
|
|
|
.#{$ns}LocationPicker {
|
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
flex-wrap: nowrap;
|
2020-12-21 10:08:40 +08:00
|
|
|
border: var(--DatePicker-borderWidth) solid var(--DatePicker-borderColor);
|
|
|
|
font-size: var(--DatePicker-fontSize);
|
|
|
|
padding: var(--DatePicker-paddingY) var(--DatePicker-paddingX);
|
|
|
|
height: var(--DatePicker-height);
|
2020-03-27 18:02:11 +08:00
|
|
|
outline: none;
|
|
|
|
white-space: nowrap;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-color);
|
|
|
|
background: var(--DatePicker-bg);
|
2021-11-03 16:31:49 +08:00
|
|
|
border-radius: var(--LocationPicker-borderRadius);
|
2020-03-27 18:02:11 +08:00
|
|
|
|
|
|
|
&:not(.is-disabled) {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--DatePicker-onHover-bg);
|
|
|
|
border-color: var(--DatePicker-onHover-borderColor);
|
2020-03-27 18:02:11 +08:00
|
|
|
|
|
|
|
.#{$ns}DatePicker-toggler:before {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-onHover-iconColor);
|
2020-03-27 18:02:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-29 22:13:43 +08:00
|
|
|
&.is-focused,
|
|
|
|
&.is-active {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--DatePicker-onFocused-borderColor);
|
|
|
|
box-shadow: var(--Form-input-boxShadow);
|
2020-03-27 18:02:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
background: $gray200;
|
|
|
|
|
2020-11-03 12:05:42 +08:00
|
|
|
> #{$ns}LocationPicker-input {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2020-03-27 18:02:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-placeholder {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-placeholderColor);
|
2020-03-27 18:02:11 +08:00
|
|
|
user-select: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-base);
|
2020-03-27 18:02:11 +08:00
|
|
|
flex-basis: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-value {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-base);
|
2020-03-27 18:02:11 +08:00
|
|
|
flex-basis: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-toggler {
|
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-iconColor);
|
2020-03-27 18:02:11 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--DatePicker-onHover-iconColor);
|
2020-03-27 18:02:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-clear {
|
|
|
|
@include input-clear();
|
|
|
|
line-height: 1;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-xs);
|
2020-03-27 18:02:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}LocationControl {
|
|
|
|
position: relative;
|
2020-04-01 10:54:21 +08:00
|
|
|
width: 100%;
|
2020-03-27 18:02:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}LocationControl:not(.is-inline) > .#{$ns}LocationPicker {
|
|
|
|
display: flex;
|
|
|
|
}
|
2020-03-29 22:13:43 +08:00
|
|
|
|
|
|
|
.#{$ns}LocationPicker-popover {
|
|
|
|
min-width: 320px;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
margin-top: -1px;
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Form-input-onFocused-borderColor);
|
2020-03-29 22:13:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}MapPicker {
|
|
|
|
&-search {
|
|
|
|
padding: 5px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-map {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item {
|
|
|
|
padding: 10px 10px;
|
|
|
|
position: relative;
|
2020-12-21 10:08:40 +08:00
|
|
|
border-top: 1px solid var(--borderColor);
|
2020-03-29 22:13:43 +08:00
|
|
|
|
|
|
|
> svg {
|
|
|
|
position: absolute;
|
|
|
|
right: 20px;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-itemTitle {
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--fontSizeBase);
|
2020-03-29 22:13:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-itemDesc {
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--fontSizeSm);
|
2020-03-29 22:13:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-sugItem {
|
|
|
|
cursor: pointer;
|
2020-12-21 10:08:40 +08:00
|
|
|
padding: calc(
|
|
|
|
(
|
|
|
|
var(--Form-select-menu-height) - var(--Form-input-lineHeight) *
|
|
|
|
var(--Form-input-fontSize)
|
|
|
|
) / 2
|
|
|
|
)
|
|
|
|
var(--Form-select-paddingX);
|
2020-03-29 22:13:43 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Form-select-menu-onActive-color);
|
|
|
|
background: var(--Form-select-menu-onActive-bg);
|
2020-03-29 22:13:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tangram-suggestion-main {
|
|
|
|
display: none !important;
|
|
|
|
}
|