search bar bottom spacing

This commit is contained in:
Sharyn 2018-07-20 09:17:00 +02:00
parent 122ef68de9
commit 14035aa6ff
3 changed files with 50 additions and 47 deletions

View File

@ -6,7 +6,10 @@ import './style.scss';
const { publicRuntimeConfig } = getConfig(); const { publicRuntimeConfig } = getConfig();
const SearchBar = props => ( const SearchBar = props => (
<div className="search-bar" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/header-bg.jpg)` }}> <div
className={`search-bar ${props.isSearchActive ? 'search-active': ''}`}
style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/header-bg.jpg)` }}
>
<div className="container"> <div className="container">
<h3 className="main-heading" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/heading-textured-bg.jpg)` }}> <h3 className="main-heading" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/heading-textured-bg.jpg)` }}>
Archives Archives

View File

@ -5,7 +5,7 @@
background-image: url('/static/img/header-bg.jpg'); background-image: url('/static/img/header-bg.jpg');
background-position: center; background-position: center;
background-size: cover; background-size: cover;
margin-bottom: calculateRem(56); margin-bottom: calculateRem(40);
height: calculateRem(164); height: calculateRem(164);
padding-top: calculateRem(52); padding-top: calculateRem(52);
@ -21,6 +21,10 @@
margin-bottom: calculateRem(32); margin-bottom: calculateRem(32);
} }
} }
&.search-active {
margin-bottom: calculateRem(92);
}
} }
.search-form { .search-form {

View File

@ -1,61 +1,57 @@
@import './assets/styles/global.scss'; @import './assets/styles/global.scss';
.search-results { .search-results li {
margin-top: calculateRem(32); margin-bottom: calculateRem(32);
li { button {
margin-bottom: calculateRem(32); text-align: left;
width: 100%;
padding: 0;
button { &:hover h3 {
text-align: left; text-decoration: underline;
width: 100%;
padding: 0;
&:hover h3 { &.matched-name::before {
text-decoration: underline; display: none;
&.matched-name::before {
display: none;
}
} }
}
h3 { h3 {
color: #fff; color: #fff;
font-size: calculateRem(24); font-size: calculateRem(24);
display: inline-block; display: inline-block;
margin-bottom: calculateRem(12); margin-bottom: calculateRem(12);
&.matched-name { &.matched-name {
@include hasRedUnderline; @include hasRedUnderline;
position: relative; position: relative;
}
} }
}
h5 { h5 {
color: #fff; color: #fff;
font-size: calculateRem(16); font-size: calculateRem(16);
margin-bottom: calculateRem(8); margin-bottom: calculateRem(8);
} }
p { p {
color: hsla(0, 0, 100, .6); color: hsla(0, 0, 100, .6);
font-size: calculateRem(14); font-size: calculateRem(14);
line-height: 1.6; line-height: 1.6;
span { span {
position: relative; position: relative;
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
top: -10%; top: -10%;
left: -2%; left: -2%;
height: 120%; height: 120%;
width: 104%; width: 104%;
background-color: $red; background-color: $red;
color: $navy; color: $navy;
z-index: -1; z-index: -1;
}
} }
} }
} }