|
@@ -2,12 +2,21 @@
|
|
|
|
|
|
$spacing: theme('spacing.[2.5]');
|
|
|
$spacing-sm: theme('spacing.5');
|
|
|
+$width: min(1000px, 75vw);
|
|
|
|
|
|
.w-combobox-container {
|
|
|
@include dark-theme() {
|
|
|
background-color: theme('colors.surface-tooltip');
|
|
|
}
|
|
|
|
|
|
+ background: theme('colors.surface-page');
|
|
|
+ color: theme('colors.text-context');
|
|
|
+ border-radius: theme('borderRadius.DEFAULT');
|
|
|
+ box-shadow: theme('boxShadow.md');
|
|
|
+ outline: 10px solid transparent;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
display: grid;
|
|
|
grid-template-columns: 1fr;
|
|
|
@include media-breakpoint-up(md) {
|
|
@@ -17,20 +26,36 @@ $spacing-sm: theme('spacing.5');
|
|
|
grid-template-columns: min(512px, 80vw) 1fr;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
width: max-content;
|
|
|
- max-width: min(1024px, 75vw);
|
|
|
- max-height: min(768px, 75vh);
|
|
|
- background: theme('colors.surface-page');
|
|
|
- color: theme('colors.text-context');
|
|
|
- border-radius: theme('borderRadius.DEFAULT');
|
|
|
- box-shadow: theme('boxShadow.md');
|
|
|
- outline: 10px solid transparent;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ max-width: 75vw;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
&:has(.w-combobox__option-preview) {
|
|
|
- min-height: min(320px, 70vh);
|
|
|
+ width: $width;
|
|
|
+
|
|
|
+ @include media-breakpoint-up(md) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ width: max-content;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ &:has(.w-combobox-preview) {
|
|
|
+ @include media-breakpoint-up(md) {
|
|
|
+
|
|
|
+
|
|
|
+ width: $width;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|