Skip to content

Commit

Permalink
Updated hero spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Heilemann committed Feb 4, 2020
1 parent afecf44 commit 037f3f8
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
5 changes: 1 addition & 4 deletions src/pages/404.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ class Page extends React.Component {
render() {
return (
<>
<Head
pageName={this.state.pageName}
bodyClasses="header-fixed header-click-through"
/>
<Head pageName={this.state.pageName} bodyClasses="header-float" />

<div id="hero" className="content-center size-medium">
<div className="container">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/changelog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Page extends React.Component {

return (
<>
<Head pageName={this.state.pageName} bodyClasses="page header-fixed hero-small" />
<Head pageName={this.state.pageName} bodyClasses="page header-float" />

<HeroPage title={this.state.pageName} />

Expand Down
2 changes: 1 addition & 1 deletion src/pages/todo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Page extends React.Component {

return (
<>
<Head pageName={this.state.pageName} bodyClasses="page header-fixed" />
<Head pageName={this.state.pageName} bodyClasses="page header-float" />

<HeroPage title={this.state.pageName} />

Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/_overlay.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#overlay {
display: none;
position: fixed;
z-index: 20;
z-index: 10;
top: 0;
left: 0;
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/layouts/_article.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#article {
padding-top: var(--spacing-xl);
padding-bottom: var(--spacing-xl);
padding-top: var(--spacing-md);
padding-bottom: var(--spacing-md);

@include breakpoint-up(lg) {
padding-top: var(--spacing-xxl);
Expand Down
7 changes: 4 additions & 3 deletions src/styles/layouts/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
padding-top: 100px;
padding-bottom: var(--spacing-md);

@include breakpoint-up(sm) {
padding-top: 150px;
@include breakpoint-up(md) {
padding-top: 120px;
}

@include breakpoint-up(xl) {
@include breakpoint-up(lg) {
padding-top: 150px;
padding-bottom: var(--spacing-md);
}
}
Expand Down
10 changes: 9 additions & 1 deletion src/styles/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
}

main {
padding-top: 120px;
padding-top: 40px;

@include breakpoint-up(md) {
padding-top: 60px;
}

@include breakpoint-up(lg) {
padding-top: 120px;
}
}
}

0 comments on commit 037f3f8

Please sign in to comment.