Skip to content

Commit

Permalink
Making site more responsive
Browse files Browse the repository at this point in the history
Addresses #2
Addresses #1
  • Loading branch information
Jeff Johnson committed Oct 22, 2012
1 parent 32ba41e commit 67ee44b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 3 deletions.
31 changes: 29 additions & 2 deletions css/main.css
Expand Up @@ -291,8 +291,35 @@ a, a:visited, a:hover {
Theses examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */
@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */ }
@media only screen and (max-width: 1200px) {
#container {
width: 100%; }

#nav-group {
width: 100%;
text-align: center; }
#nav-group a {
width: 15%;
margin-right: 5%;
margin-left: 5%;
font-size: 35px;
margin-top: 30px;
margin-bottom: 10px;
height: 40px;
text-align: left; }

#container.sticky #nav-group a {
font-size: 25px; } }
@media only screen and (max-width: 650px) {
/* Style adjustments for viewports that meet the condition */
.photo-display {
float: none; }

.subsection .copy {
width: 100%; }

#container.sticky #nav-group a {
font-size: 20px; } }
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
/* Style adjustments for high resolution devices */ }
/* ==========================================================================
Expand Down
34 changes: 33 additions & 1 deletion css/main.scss
Expand Up @@ -338,9 +338,41 @@ a, a:visited, a:hover {
Theses examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */
@media only screen and (max-width: 1200px) {
#container {
width: 100%;
}
#nav-group {
width: 100%;
text-align: center;
a {
width: 15%;
margin-right: 5%;
margin-left: 5%;
font-size: 35px;
margin-top: 30px;
margin-bottom: 10px;
height: 40px;
text-align: left;
}
}
#container.sticky #nav-group a {
font-size: 25px;
}
}

@media only screen and (min-width: 35em) {
@media only screen and (max-width: 650px) {
/* Style adjustments for viewports that meet the condition */
.photo-display {
float: none;
}
.subsection .copy {
width: 100%;
}

#container.sticky #nav-group a {
font-size: 20px;
}
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
Expand Down

0 comments on commit 67ee44b

Please sign in to comment.