Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit e19cbf3

Browse files
authored
Merge pull request #461 from openforge/fix/tablet-searchbar-blog
fix(app-blog): update searchbar for md breakpoint
2 parents 7764747 + 13a59c7 commit e19cbf3

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

src/pages/app-blog/app-blog.scss

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,22 +136,24 @@
136136
}
137137

138138
.blog-search-group {
139+
width: 100%;
140+
139141
@include media-breakpoint-up(xl) {
140142
padding-left: 66.6px; // The number of the beast
141143
}
144+
142145
@include media-breakpoint-down(md) {
143-
width: calc(100% - 16px);
144146
margin: 8px;
147+
width: calc(100% - 16px);
145148
}
146-
width: 100%;
147149
}
148150

149151
.blog-search-input {
150-
background-color: #f4f5f9;
152+
background-color: $gray-100;
151153
border: none;
152154
border-radius: 3px;
153155
box-shadow: inset -1px -1px 1px 0 rgba(0, 0, 0, 0.15);
154-
color: #5d534e;
156+
color: $gray-brown;
155157
font-family: Muli;
156158
font-size: 13px;
157159
font-weight: 300;
@@ -160,10 +162,11 @@
160162
padding: 4px 4px 4px calc(2.4rem + 2px);
161163
width: 100%;
162164

163-
@include media-breakpoint-down(sm) {
164-
box-shadow: none;
165-
border: 1px solid #ebecef;
166-
border-radius: 6px;
165+
@include media-breakpoint-down(md) {
166+
background-color: $white;
167+
border: 1px solid $gray-100;
168+
border-radius: 8px;
169+
min-height: 45px;
167170
}
168171
}
169172

@@ -186,6 +189,7 @@
186189
margin-top: 10px;
187190
margin-left: 10px;
188191
color: $gray-brown;
192+
189193
@include media-breakpoint-down(md) {
190194
position: initial;
191195
margin-top: 0;
@@ -198,15 +202,20 @@
198202
margin-top: 10px;
199203
margin-left: 10px;
200204
color: $gray-brown;
205+
206+
@include media-breakpoint-down(md) {
207+
margin-top: 15px;
208+
}
201209
}
202210

203211
.searchbar-top {
204212
display: flex;
205213

206214
button {
207-
padding: 0;
208-
border: 0;
209215
background: transparent;
216+
border: 0;
217+
color: $gray-dark;
218+
padding: 0;
210219
}
211220
}
212221

src/pages/app-blog/app-blog.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,7 @@ export class AppBlog {
353353
{this.displaySearchBar ? (
354354
<div class="searchbar-top">
355355
<div class="blog-search-group">
356-
<span class="blog-search-icon">
357-
<span class="fa fa-search" />
358-
</span>
356+
<span class="blog-search-icon-top fa fa-search" />
359357
<input id="blog-search" type="search" class="blog-search-input" placeholder="Search the blog" aria-label="search" onKeyUp={e => this.handleSearch(e.target['value'])} />
360358
</div>
361359
<button onClick={() => this.hideSearchBar()}>

0 commit comments

Comments
 (0)