236 lines
3.6 KiB
CSS
236 lines
3.6 KiB
CSS
.root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.picker {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field > span {
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--color-soft);
|
|
}
|
|
|
|
.control {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.control input {
|
|
width: 100%;
|
|
min-height: 42px;
|
|
border: 1px solid #f0f0f0;
|
|
border-radius: 5px;
|
|
background: #fff;
|
|
padding: 10px 36px 10px 12px;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
color: var(--color-black);
|
|
outline: none;
|
|
}
|
|
|
|
.control input:focus {
|
|
border-color: var(--color-black);
|
|
}
|
|
|
|
.caret {
|
|
position: absolute;
|
|
inset-inline-end: 10px;
|
|
width: 18px;
|
|
height: 18px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.caret::before {
|
|
content: "";
|
|
display: block;
|
|
width: 7px;
|
|
height: 7px;
|
|
margin: 4px auto 0;
|
|
border-inline-end: 1.5px solid var(--color-soft);
|
|
border-bottom: 1.5px solid var(--color-soft);
|
|
transform: rotate(45deg);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.caretOpen::before {
|
|
margin-top: 8px;
|
|
transform: rotate(225deg);
|
|
}
|
|
|
|
.dropdown {
|
|
position: absolute;
|
|
z-index: 20;
|
|
top: calc(100% - 2px);
|
|
inset-inline: 0;
|
|
max-height: 280px;
|
|
overflow: auto;
|
|
border: 1px solid #ececec;
|
|
border-radius: 5px;
|
|
background: #fff;
|
|
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.dropdownInFlow {
|
|
position: relative;
|
|
top: 0;
|
|
z-index: 1;
|
|
max-height: 320px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.node {
|
|
margin: 0;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
min-height: 34px;
|
|
}
|
|
|
|
.expand,
|
|
.expandSpacer {
|
|
flex: 0 0 22px;
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.expand {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
border: 1px solid #e4e4e4;
|
|
border-radius: 3px;
|
|
background: #fff;
|
|
color: var(--color-soft);
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s ease, color 0.15s ease;
|
|
}
|
|
|
|
.expand:hover,
|
|
.expand:focus-visible {
|
|
border-color: var(--color-black);
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.expandOpen {
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.option {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px 6px 4px;
|
|
border: none;
|
|
background: transparent;
|
|
text-align: start;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
color: var(--color-muted);
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.option:hover,
|
|
.option:focus-visible {
|
|
background: #f7f7f7;
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.optionActive {
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.check {
|
|
flex: 0 0 14px;
|
|
width: 14px;
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.optionLabel {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.optionSlug {
|
|
margin-inline-start: auto;
|
|
flex: 0 0 auto;
|
|
font-size: 11px;
|
|
letter-spacing: 0.04em;
|
|
color: var(--color-soft);
|
|
}
|
|
|
|
.empty {
|
|
margin: 0;
|
|
padding: 16px 14px;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
color: var(--color-body);
|
|
}
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 4px;
|
|
padding: 5px 10px;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
color: var(--color-white);
|
|
background: var(--color-black);
|
|
border-color: var(--color-black);
|
|
}
|
|
|
|
.chip:hover,
|
|
.chip:focus-visible {
|
|
opacity: 0.88;
|
|
}
|
|
|
|
.chip:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|