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

Commit

Permalink
feat(header): responsive and adaptive header
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed May 17, 2018
1 parent 364a6c6 commit 21701b4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/components/hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
background: #000;
color: #fff;
text-align: center;
height: 30em;
}

.heroImage {
height: 100%;
width: auto;
margin: 0 auto;
height: 61.8vh;
max-height: 80vw;
}

.heroDetails {
position: absolute;
background: rgba(0, 0, 0, .7);
top: 60%;
left: 50%;
bottom: 0;
transform: translate(-50%, 0);
font-size: calc(0.4em + 1vw);
padding: 0 0.5em;
}

.heroHeadline {
Expand All @@ -28,4 +28,4 @@
margin: 0;
font-size: 1.125em;
font-weight: bold;
}
}
14 changes: 10 additions & 4 deletions src/components/navigation.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@
display: flex;
justify-content: center;
list-style: none;
padding: 1em;
padding: 0;
margin: 0;
height: 20vh;
max-height: 100px;
font-size: 1.25em;
}

.navigationItem {
display: inline-flex;
align-items: center;
margin: 0 1em;
}
.navigationItem a {
color: currentColor;
}

.navigationItem a {
color: currentColor;
}
3 changes: 2 additions & 1 deletion src/layouts/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ body {
line-height: 1.65;
color: #373F49;
background: #eee;
margin: 0;
}

img {
Expand Down Expand Up @@ -72,4 +73,4 @@ a {

.list-inline li {
display: inline-block;
}
}

0 comments on commit 21701b4

Please sign in to comment.