Part of this was combining PictureSelectItem and SelectItem, so the former has been removed.
122 lines
2 KiB
SCSS
122 lines
2 KiB
SCSS
.trigger {
|
|
align-items: center;
|
|
background-color: var(--input-bg);
|
|
border-radius: $input-corner;
|
|
border: 2px solid transparent;
|
|
display: flex;
|
|
gap: $unit;
|
|
padding: ($unit * 1.5) $unit-2x;
|
|
|
|
&.small > span:not(.icon) {
|
|
font-size: $font-small;
|
|
margin: 0;
|
|
max-width: 200px;
|
|
|
|
@include breakpoint(tablet) {
|
|
width: 100%;
|
|
max-width: inherit;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
&.modal {
|
|
background-color: var(--select-modal-bg);
|
|
|
|
&:hover {
|
|
background-color: var(--select-modal-bg-hover);
|
|
}
|
|
}
|
|
|
|
&.bound {
|
|
background-color: var(--select-contained-bg);
|
|
|
|
&:hover {
|
|
background-color: var(--select-contained-bg-hover);
|
|
}
|
|
}
|
|
|
|
&.table {
|
|
min-width: $unit * 30;
|
|
}
|
|
|
|
&.hidden {
|
|
display: none;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--input-bg-hover);
|
|
cursor: pointer;
|
|
|
|
span:not(.icon),
|
|
&[data-placeholder] > span:not(.icon) {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.icon svg {
|
|
fill: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
&.disabled:hover {
|
|
background-color: var(--input-bg);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&[data-placeholder='true'] > span:not(.icon) {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
& > span:not(.icon) {
|
|
color: var(--text-primary);
|
|
flex-grow: 1;
|
|
font-size: $font-regular;
|
|
text-align: left;
|
|
}
|
|
|
|
img {
|
|
width: $unit-4x;
|
|
height: auto;
|
|
}
|
|
|
|
.icon {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
svg {
|
|
fill: var(--icon-secondary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.select {
|
|
background: var(--dialog-bg);
|
|
border-radius: $card-corner;
|
|
border: 1px solid rgba(0, 0, 0, 0.24);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
|
|
padding: 0 $unit;
|
|
min-width: var(--radix-select-trigger-width);
|
|
max-height: 40vh;
|
|
z-index: 40;
|
|
|
|
&.bound {
|
|
background-color: var(--select-content-contained-bg);
|
|
}
|
|
|
|
.scroll.up,
|
|
.scroll.down {
|
|
padding: $unit 0;
|
|
text-align: center;
|
|
|
|
&:hover svg {
|
|
fill: var(--icon-secondary-hover);
|
|
}
|
|
|
|
svg {
|
|
fill: var(--icon-secondary);
|
|
}
|
|
}
|
|
|
|
.scroll.up {
|
|
transform: scale(1, -1);
|
|
}
|
|
}
|