Skip to content

Commit 90e6322

Browse files
committed
search result fixes on mobile and tablet layout
1 parent 703c199 commit 90e6322

File tree

2 files changed

+56
-29
lines changed

2 files changed

+56
-29
lines changed

src/css/search.css

Lines changed: 52 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
/* New sections layout of landing page */
8989

9090
.sections-page #search-input {
91-
border: 3px solid #496583;
91+
border: 2px solid #496583;
9292
padding: 0.5rem 0.25rem;
9393
color: #496583;
9494
font-family: inherit;
@@ -97,26 +97,62 @@
9797
width: 18rem;
9898
}
9999

100+
.sections-page #search-input:active {
101+
border: 2px solid var(--eclipse-orange) !important;
102+
}
103+
100104
.search-input-landing {
101105
margin-top: 1.25rem;
102106
padding-right: 4rem;
103107
background-color: white;
104108
}
105109

110+
.search-input-landing:focus {
111+
border: 2px solid var(--eclipse-orange) !important;
112+
}
113+
114+
.sections-page .search-result-dropdown-menu {
115+
position: absolute;
116+
z-index: 100;
117+
display: block;
118+
left: 0;
119+
top: 100%;
120+
border-radius: 4px;
121+
padding: 0;
122+
text-align: left;
123+
height: auto;
124+
background: transparent;
125+
border: none;
126+
max-width: 600px;
127+
min-width: 500px;
128+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
129+
}
130+
131+
.sections-page #search-input:hover {
132+
border: 2px solid var(--eclipse-orange);
133+
}
134+
106135
.search-input-landing:hover {
107136
border: 2px solid var(--eclipse-orange);
108137
}
109138

110139
/* Mobile */
111140

112141
@media screen and (min-width: 1441px) {
142+
.sections-page .search-result-dropdown-menu {
143+
margin-left: 1.5rem !important;
144+
margin-top: -4rem !important;
145+
}
146+
}
147+
148+
@media screen and (max-width: 1440px) {
113149
.search-result-dropdown-menu {
114-
margin-left: 2.5rem !important;
150+
margin-left: 1.5rem !important;
115151
margin-top: -5.5rem !important;
116152
}
117153
}
118154

119-
@media screen and (min-width: 1024px) {
155+
@media screen and (max-width: 1024px) {
120156
.navbar-brand {
121157
flex-grow: 1;
122158
}
@@ -131,39 +167,18 @@
131167
padding-right: 2rem;
132168
}
133169

134-
.sections-page .search-result-dropdown-menu {
135-
position: absolute;
136-
z-index: 100;
137-
display: block;
138-
left: 0;
139-
top: 100%;
140-
border-radius: 4px;
141-
margin-left: 1.5rem !important;
142-
margin-top: -4rem !important;
143-
padding: 0;
144-
text-align: left;
145-
height: auto;
146-
background: transparent;
147-
border: none;
148-
max-width: 600px;
149-
min-width: 500px;
150-
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
170+
.search-result-dropdown-menu {
171+
margin-left: 2.5rem !important;
172+
margin-top: -1.5rem !important;
151173
}
152174
}
153175

154-
@media screen and (min-width: 769px) {
155-
.sections-page #search-input:hover {
156-
border: 2px solid var(--eclipse-orange);
157-
}
158-
176+
/* @media screen and (min-width: 769px) {
159177
#search-input {
160178
width: 200px;
161179
}
162180
163-
.search-input-landing:hover {
164-
border: 2px solid var(--eclipse-orange);
165-
}
166-
}
181+
} */
167182

168183
@media screen and (max-width: 768px) {
169184
.navbar-brand .navbar-item + .navbar-item {
@@ -181,9 +196,17 @@
181196
.sections-page .search-result-dropdown-menu {
182197
min-width: calc(100vw - 3.75rem);
183198
margin-top: -23rem !important;
199+
margin-left: 1.5rem !important;
184200
}
185201

186202
.search-input-landing:hover {
187203
border: 2px solid var(--eclipse-orange);
188204
}
189205
}
206+
207+
@media screen and (max-width: 375px) {
208+
.sections-page .search-result-dropdown-menu {
209+
margin-top: -14.5rem !important;
210+
margin-left: -0.5rem !important;
211+
}
212+
}

src/css/sections.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@
386386
padding: 0.5rem 0.25rem;
387387
}
388388

389+
.sectionWhite-left {
390+
padding-left: unset !important;
391+
}
392+
389393
.sectionWhite .get-started-button {
390394
padding: 0.75rem 3.5rem;
391395
}

0 commit comments

Comments
 (0)