Skip to content

Commit 819c58b

Browse files
author
Andrew Brookins
committed
Fix styling on home page search bar
1 parent 55c8e1f commit 819c58b

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

src/css/components/_search.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.rds-search {
2+
position: relative;
3+
padding-top: 68px;
4+
5+
@include mobile {
6+
padding-top: 46px;
7+
}
8+
}

src/css/custom.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@import './components/hero';
1919
@import './components/languages';
2020
@import './components/demos';
21+
@import './components/search';
2122
@import './components/resources';
2223
@import './components/404';
2324

src/theme/DocSidebar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function DocSidebar({
190190
'menu--show': showResponsiveSidebar,
191191
[styles.menuWithAnnouncementBar]: !isAnnouncementBarClosed && scrollY === 0
192192
})}>
193-
<Search inline="true"/>
193+
<Search inline="true"/>
194194
<button aria-label={showResponsiveSidebar ? 'Close Menu' : 'Open Menu'} aria-haspopup="true" className="button button--secondary button--sm menu__button" type="button" onClick={() => {
195195
setShowResponsiveSidebar(!showResponsiveSidebar);
196196
}}>

static/css/redis-sitesearch-overrides.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
width: 65%;
1919
}
2020

21+
.redis-sitesearch-inline .search-root-item {
22+
padding: 12px 16px 0px;
23+
}
24+
2125
.redis-sitesearch-inline .redis-sitesearch-result {
2226
padding: 11px 1em 11px 11px;
2327
}

0 commit comments

Comments
 (0)