Permalink
Browse files

Added mobile styles

  • Loading branch information...
1 parent 1e36f57 commit 8371a31f589b0b4764f865628879a456dffc67c6 @tallowen committed May 27, 2012
Showing with 59 additions and 7 deletions.
  1. +3 −3 _layouts/default.html
  2. +56 −4 media/css/fresh.css
View
@@ -2,11 +2,11 @@
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>{% if page.section != "home" %}Owen Coutts | {{page.section}}{% else %}Owen Coutts{% endif %}</title>
- <link rel="stylesheet" href="/media/css/fresh.css" type="text/css" />
- <link rel="stylesheet" href="/media/css/projects.css" type="text/css" />
+ <link rel="stylesheet" href="/media/css/fresh.css" type="text/css">
+ <link rel="stylesheet" href="/media/css/projects.css" type="text/css" media="screen">
{% include analytics.html %}
</head>
View
@@ -17,8 +17,8 @@ ul {
}
#content li {
- list-style-type:dash;
- padding-bottom:10px;
+ list-style-type: dash;
+ padding-bottom: 10px;
}
#content img {
@@ -53,14 +53,14 @@ pre {
#footer h3 {
font: normal 10pt/16pt helvetica;
letter-spacing: 1px;
- margin-bottom: 0px;
+ margin-bottom: 0;
text-align: center;
color: #151713;
}
h4 {
font: normal 14pt helvetica;
- margin-top: 0px;
+ margin-top: 0;
text-align: justify;
color: #801013;
}
@@ -197,3 +197,55 @@ ul.posts, ul.posts li {
float:right;
}
+@media screen and (max-width:880px) {
+ #leftside {
+ float: none;
+ width: auto;
+ overflow: auto;
+ }
+ #slogme {
+ float: left;
+ }
+ #linkList {
+ float: left;
+ }
+ #rightside {
+ float: none;
+ width: auto;
+ }
+ #page {
+ padding: 85px 0 0 0;
+ width: 90%;
+ max-width: 700px;
+ }
+ #footer {
+ width: inherit;
+ }
+ #linkList {
+ padding: 0;
+ width: 100%;
+ }
+
+ #header-pic {
+ display: none;
+ }
+
+ #subtext {
+ margin: 0;
+ }
+
+ #linkList h2 {
+ width: 25%;
+ float: left;
+ text-align: center;
+ }
+
+ #linkList h2:first-child {
+ text-align: left;
+ }
+
+ #linkList h2:last-child {
+ text-align: right;
+ }
+}
+

0 comments on commit 8371a31

Please sign in to comment.