Skip to content

Commit

Permalink
Fix intro to fit full height
Browse files Browse the repository at this point in the history
  • Loading branch information
truongmm committed Apr 4, 2016
1 parent 720cb0c commit 3b35ae4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
36 changes: 14 additions & 22 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
body {
body, html {
font-family: 'Roboto', sans-serif;
font-weight: 100;
height: 100%;
width: 100%;
}


Expand Down Expand Up @@ -34,35 +36,24 @@ body {

/* LOGO */

.jumbotron {
.intro {
display: table;
background: url('../images/spectra-background.jpg');
height: 400px;
}

.jumbotron img {
margin-top: 100px;
background-size: cover;
height: 75%;
width: 100%;
}

/* Small */
@media screen and (min-width: 768px) {
.jumbotron {
height: 500px;
}

.jumbotron img {
margin-top: 125px;
.intro {
height: 100%;
}
}

/* Medium */
@media screen and (min-width: 992px) {
.jumbotron {
height: 700px;
}

.jumbotron img {
margin-top: 150px;
}
.intro-body {
display: table-cell;
vertical-align: middle;
}


Expand Down Expand Up @@ -177,6 +168,7 @@ footer a {

.social-icons a {
font-size: 30px;
text-decoration: none !important;
}

/* Small */
Expand Down
12 changes: 7 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@
</div>
</nav>

<header class="jumbotron">
<div class="container">
<div class="row row-header">
<div class="col-xs-12">
<img class="img-responsive" src="./images/spectra-logo.png" />
<header class="intro">
<div class="intro-body">
<div class="container">
<div class="row row-header">
<div class="col-xs-12">
<img class="img-responsive" src="./images/spectra-logo.png" />
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 3b35ae4

Please sign in to comment.