Skip to content

Commit

Permalink
Wee bit o' responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
dce committed Mar 29, 2012
1 parent f634d54 commit 399ce2e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
36 changes: 26 additions & 10 deletions css/style.css
Expand Up @@ -37,7 +37,7 @@ a:hover {
}

#container {
width: 760px;
max-width: 760px;
padding: 0 20px;
margin: 0 auto;
}
Expand All @@ -56,10 +56,6 @@ header div.title {
float: left;
}

header div.current-time {
float: right;
}

div#primary {
text-align: center;
margin-bottom: 40px;
Expand Down Expand Up @@ -92,10 +88,31 @@ div#secondary {
padding: 40px 0 20px;
}

div#hours {
width: 360px;
margin-right: 20px;
float: left;
@media screen and (max-width: 760px) {
header div.current-time {
display: none;
}

div#hours, div#map {
width: 360px;
margin: 0 auto 20px;
}
}

@media screen and (min-width: 760px) {
header div.current-time {
float: right;
}

div#hours {
width: 360px;
margin-right: 20px;
float: left;
}

div#map {
margin-left: 400px;
}
}

div#hours h4 {
Expand Down Expand Up @@ -146,7 +163,6 @@ div#hours p {
}

div#map {
margin-left: 400px;
line-height: 1.6em;
}

Expand Down
1 change: 1 addition & 0 deletions index.php
Expand Up @@ -84,6 +84,7 @@ function hours_to_string($hours) {
<meta charset="utf-8">
<title>Francesca's Dessert Cafe (Durham, NC) Hours of Operation</title>
<meta class="description" content="Hours for Francesca's Dessert Caffe in Durham, NC. <?= hours_to_string($hours) ?>." />
<meta name="viewport" content="width=400, initial-scale=0.7, minimum-scale=0.45" />
<link rel="stylesheet" href="css/style.css">

<script type="text/javascript">
Expand Down

0 comments on commit 399ce2e

Please sign in to comment.