Skip to content

A platform for community discussion. Free, open, simple.

FIX: Adjust breakpoints for flex use. (#37648)

Jordan Vidrinef705374d39ce
diff --git a/app/assets/stylesheets/common/base/search.scss b/app/assets/stylesheets/common/base/search.scss
index e520c203f37..8fa36b35bb2 100644
--- a/app/assets/stylesheets/common/base/search.scss
+++ b/app/assets/stylesheets/common/base/search.scss
@@ -19,8 +19,10 @@
.search-container {
background: var(--d-content-background);
- .search-cta {
- flex: 1 1 0;
+ @include viewport.from(sm) {
+ .search-cta {
+ flex: 1 1 0;
+ }
}
.search-header {
@@ -57,17 +59,19 @@
background: var(--primary-very-low);
gap: 0.5em 1em;
- input.search-query {
- width: auto;
- flex: 1 1 60%;
- margin: 0;
- }
+ @include viewport.from(sm) {
+ input.search-query {
+ width: auto;
+ flex: 1 1 60%;
+ margin: 0;
+ }
- .select-kit {
- flex: 1 1 20%;
+ .select-kit {
+ flex: 1 1 20%;
- .name {
- white-space: nowrap;
+ .name {
+ white-space: nowrap;
+ }
}
}
@@ -76,8 +80,7 @@
input.search-query,
.select-kit {
- margin-right: 0;
- margin-bottom: 0.5em;
+ margin: 0;
}
}
}