Skip to content

Commit

Permalink
fix(styles): changes to accommodate mobile
Browse files Browse the repository at this point in the history
This includes changes to the header, the main section of the homepage,
and the jumbotron section in order to better accommodate mobile browsers
  • Loading branch information
jefflembeck committed Jan 12, 2017
1 parent fdb9896 commit 8c78712
Showing 1 changed file with 49 additions and 10 deletions.
59 changes: 49 additions & 10 deletions static/css/tokio.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ table, td {
}

td {
padding: 4px
padding: 4px;
}

img {
max-width: 100%;
}

/*
Expand Down Expand Up @@ -67,10 +71,20 @@ td {
* ===== Navbar =====
*
*/
.navbar-nav .nav-item,
.navbar-brand {
float: none;
}

.navbar-brand {
margin-right: 0;
}

.navbar-nav .nav-item + .nav-item {
margin-left: 0;
}

.navbar-nav li {
margin-left:30px;
margin-right:30px;
line-height: 60px;
height: 60px;
padding-top: 0;
Expand All @@ -82,7 +96,8 @@ td {
}

.navbar ul {
display: inline-block;
display: block;
margin: 0 auto;
}

.leftnav li {
Expand Down Expand Up @@ -139,20 +154,18 @@ td {

.jumbotron {
border-radius: 0;
padding: 4rem;
padding: 4rem 1rem;
}

.tk-jumbotron {
margin-left: auto;
margin-right: auto;
width: 700px;
max-width: 100%;
max-width: 700px;
text-align: center;
}

.jumbotron .tk-logo {
width: auto;
height: 10rem;
max-height: 10rem;
}

.jumbotron .lead {
Expand Down Expand Up @@ -210,7 +223,8 @@ td {

.tk-home {
margin: 0 auto;
width: 900px;
width: auto;
max-width: 900px;
}

.tk-features {
Expand Down Expand Up @@ -375,3 +389,28 @@ h4:hover a,
h5:hover a {
text-decoration: none;
}

@media (min-width:480px) {
.navbar ul {
padding: 0 1rem;
}

.navbar-nav .nav-item,
.navbar-brand {
float: left;
}

.navbar-nav .nav-item + .nav-item {
margin-left: 1rem;
}
}

@media (min-width:520px) {
.jumbotron {
padding: 4rem;
}

.navbar-nav .nav-item + .nav-item {
margin-left: 2rem;
}
}

0 comments on commit 8c78712

Please sign in to comment.