Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Added top margin to the index header logo #643

Merged
merged 3 commits into from
Feb 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/components/IndexHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import SearchInput from 'components/SearchInput';
import debug from 'helpers/debug';

const logo = require('../../../static/images/logo-lg-w.png');
const styles = require('./style.scss');

export default class IndexHeader extends Component {
static propTypes = {
Expand All @@ -29,10 +30,10 @@ export default class IndexHeader extends Component {
<div className="container">
<div className="row">
<div className="col-md-10 col-md-offset-1 text-center">
<Link to="/" data-metrics-event-name="IndexHeader:Link:Index">
<img src={logo} className="logo" alt="logo" />
<Link to="/" className={styles.link} data-metrics-event-name="IndexHeader:Link:Index">
<img src={logo} className={styles.logo} alt="logo" />
</Link>
<h4 className="title">THE NOBLE QUR&#x27;AN</h4>
<h4 className={styles.title}>THE NOBLE QUR&#x27;AN</h4>
{this.renderSearch()}
</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions src/components/IndexHeader/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@import '../../styles/variables.scss';

.link{
display: inline-block;
width: 30%;
margin-top: 35px;
}
.logo{
padding-top: 10px;
padding-bottom: 10px;
height: auto;
width: 100%;
}
.title{
color: lighten($brand-primary, 30%);
font-size: 160%;
padding-bottom: 3.5%;
}
10 changes: 0 additions & 10 deletions src/styles/partials/_index-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,4 @@
}

}
.logo{
padding-top: 10px;
padding-bottom: 10px;
width: 30%;
}
.title{
color: lighten($brand-primary, 30%);
font-size: 160%;
padding-bottom: 3.5%;
}
}