This is mostly a duplicate of SelectTrigger but CSS modules are deeply stupid, so we have to duplicate the code.
125 lines
2.1 KiB
SCSS
125 lines
2.1 KiB
SCSS
.Popover {
|
|
animation: scaleIn $duration-zoom ease-out;
|
|
background: var(--dialog-bg);
|
|
border-radius: $card-corner;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.18);
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
|
|
outline: none;
|
|
padding: $unit;
|
|
transform-origin: var(--radix-popover-content-transform-origin);
|
|
width: var(--radix-popover-trigger-width);
|
|
z-index: 5;
|
|
|
|
@include breakpoint(phone) {
|
|
min-width: auto;
|
|
}
|
|
|
|
&.Flush {
|
|
padding: 0;
|
|
}
|
|
|
|
.Arrow {
|
|
fill: var(--dialog-bg);
|
|
filter: drop-shadow(0px 1px 1px rgb(0 0 0 / 0.18));
|
|
margin-top: -1px;
|
|
}
|
|
}
|
|
|
|
.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 > .value {
|
|
font-size: $font-small;
|
|
margin: 0;
|
|
max-width: 200px;
|
|
|
|
@include breakpoint(tablet) {
|
|
width: 100%;
|
|
max-width: inherit;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.value {
|
|
display: flex;
|
|
gap: $unit-half;
|
|
width: 100%;
|
|
}
|
|
|
|
&.modal {
|
|
background-color: var(--select-modal-bg);
|
|
|
|
&:hover {
|
|
background-color: var(--select-modal-bg-hover);
|
|
}
|
|
}
|
|
|
|
&.hidden {
|
|
display: none;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--input-bg-hover);
|
|
cursor: pointer;
|
|
|
|
span:not(.icon),
|
|
&[data-placeholder] > span:not(.icon) {
|
|
color: 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;
|
|
}
|
|
|
|
&.bound {
|
|
background-color: var(--select-contained-bg);
|
|
|
|
&:hover {
|
|
background-color: var(--select-contained-bg-hover);
|
|
}
|
|
}
|
|
|
|
&.Table {
|
|
min-width: $unit * 30;
|
|
}
|
|
|
|
img {
|
|
width: $unit-4x;
|
|
height: auto;
|
|
}
|
|
|
|
.icon {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
svg {
|
|
fill: var(--icon-secondary);
|
|
}
|
|
}
|
|
|
|
span:not(.icon) {
|
|
color: var(--text-secondary);
|
|
}
|
|
}
|
|
|
|
[data-radix-popper-content-wrapper] {
|
|
}
|