From df6cf28b30470166774213102378ded5931bc975 Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Thu, 30 Sep 2010 00:29:19 +0000 Subject: added viewport scaling --- media/css/base.css | 2 +- media/sass/base.sass | 18 ++++++-- templates/archives/homepage.html | 4 +- templates/base.html | 2 +- templates/includes/recent_entries.html | 57 ++++++++++++------------- templates/includes/recent_entries_template.html | 2 +- 6 files changed, 46 insertions(+), 39 deletions(-) diff --git a/media/css/base.css b/media/css/base.css index 8361bca..5319c03 100644 --- a/media/css/base.css +++ b/media/css/base.css @@ -1 +1 @@ -ol,ul,li,dl{list-style:none;margin:0;padding:0;border:0;outline:0;background:transparent}blockquote,q{quotes:none}:focus{outline:0}header,section,footer,aside,article,nav{display:block;text-align:left}html{height:100%;max-width:22.188em}body{font:normal 100% Hoefler Text, Georgia, Times New Roman, Times, serif;color:#201a11;margin:0 auto;min-height:100%;position:relative;padding:0;max-width:20.938em;background:#fff url("../img/988px-9col-92w-20gut.png") 217px 0 repeat-y}p{font-size:1.063em;line-height:1.5em}a{text-decoration:none;color:#201a11}a:hover{color:#b53a04}ul li{display:inline;margin:0 0.125em}.dateline,nav li,.breadcrumbs li{text-transform:uppercase;font-size:0.75em;letter-spacing:0.063em}img{border:10px #201a11 solid}#featured-image img{width:95%}h1{font:normal 1.875em Helvetica, Verdana, sans-serif;letter-spacing:0.5px;text-align:center}#archive article h1{font:normal 1.5em Helvetica, Verdana, sans-serif;letter-spacing:0.5px;text-align:center;text-transform:none}#archive h1{font-weight:700;font-size:0.75em;text-transform:uppercase;text-align:left}header{margin:0 auto 1em auto;text-align:center}nav{margin:0 auto 2em auto;text-align:center}nav:after,footer:before{content:".";display:block;height:0;clear:both;visibility:hidden}footer{margin-top:2em}footer p{font-size:0.625em;text-align:center} +ol,ul,li,dl{list-style:none;margin:0;padding:0;border:0;outline:0;background:transparent}blockquote,q{quotes:none}:focus{outline:0}header,section,footer,aside,article,nav{display:block;text-align:left}html{height:100%}body{font:normal 100% Hoefler Text, Georgia, Times New Roman, Times, serif;color:#201a11;margin:0 auto;min-height:100%;position:relative;padding:0;max-width:19.688em;background:#fff url("../img/988px-9col-92w-20gut.png") 552px 0 repeat-y}p{font-size:1.063em;line-height:1.5em}a{text-decoration:none;color:#201a11}a:hover{color:#b53a04}ul li{display:inline;margin:0 0.125em}.dateline,nav li,.breadcrumbs li{text-transform:uppercase;font-size:0.75em;letter-spacing:0.063em}img{border:10px #201a11 solid}#featured-image img{width:94%}h1{font:normal 1.875em Helvetica, Verdana, sans-serif;letter-spacing:0.5px;text-align:center}#archive article h1{font:normal 1.5em Helvetica, Verdana, sans-serif;letter-spacing:0.5px;text-align:center;text-transform:none}#archive h1{font-weight:700;font-size:0.75em;text-transform:uppercase;text-align:left}header{margin:0 auto 1em auto;text-align:center}nav{margin:0 auto 2em auto;text-align:center}nav:after,footer:before{content:".";display:block;height:0;clear:both;visibility:hidden}footer{margin-top:2em}footer p{font-size:0.625em;text-align:center}@media (min-device-width:1024px) and (max-width:509px), (max-device-width:480px) and (orientation:portrait){body{margin:0 10px;max-width:20.938em}}.postpic,.post-image{float:left;margin:0.625em 0.625em 0.625em 0;clear:right} diff --git a/media/sass/base.sass b/media/sass/base.sass index 1557617..525428d 100644 --- a/media/sass/base.sass +++ b/media/sass/base.sass @@ -17,7 +17,7 @@ html height: 100% - max-width = 22.1875em + body font: normal 100% unquote("Hoefler Text"), Georgia, unquote("Times New Roman"), Times, serif color: $brown @@ -26,8 +26,8 @@ body position: relative padding: 0 //max-width: 61.75em /* 988px / 16px = 61.75em */ - max-width = 20.9375em /* 3 cols @ 92px + 20px gutter -- 335px / 16px = */ - background: white url('../img/988px-9col-92w-20gut.png') 217px 0 repeat-y + max-width = 19.6875em /* 3 cols @ 92px + 20px gutter -- 315px / 16px = */ + background: white url('../img/988px-9col-92w-20gut.png') 552px 0 repeat-y /* ###################Typography############# */ @@ -54,7 +54,7 @@ img border: 10px $brown solid #featured-image img - width = 95% /* 315 / 520 */ + width = 94% /* 315 / 520 */ h1 font: normal 1.875em Helvetica, Verdana, sans-serif @@ -92,3 +92,13 @@ footer p font-size: .625em text-align: center + +@media (min-device-width:1024px) and (max-width:509px), (max-device-width:480px) and (orientation:portrait) + body + margin: 0 10px + max-width = 20.9375em + +.postpic, .post-image + float: left + margin: .625em .625em .625em 0 + clear: right diff --git a/templates/archives/homepage.html b/templates/archives/homepage.html index 6540ca6..291433c 100644 --- a/templates/archives/homepage.html +++ b/templates/archives/homepage.html @@ -18,8 +18,8 @@ -

{{featured.dek|safe}}

- More » +

{{featured.dek|safe}} More »

+ {%comment%}
diff --git a/templates/base.html b/templates/base.html index 92e4427..a83f4ee 100644 --- a/templates/base.html +++ b/templates/base.html @@ -10,7 +10,7 @@ - + -

Dinosaur National Monument, Part One: Echo Park

- -

Dinosaur National Monument was poorly named. The best parts of it are not the fossils in the quarry (which is closed for 2010 anyway) but the canyon country — some of the best, most remote canyon country you'll find in this part of the world.

- -
-

The Endless Crowds of Yellowstone

- -

There is wilderness in Yellowstone, even if it's just inches from the boardwalks that transport thousands around the geothermal pools. It may not be wilderness on a grand scale — the sweeping mountain peaks or wild rivers of other parks — but in some ways that makes it more enticing. As one Ranger told me, Yellowstone isn't about the big picture, the grand scenery, it's about the tiny details within each pool. To really see Yellowstone, he said, you have to take your time, move slowly and look closely.

- -
-

Backpacking in the Grand Tetons

- -

Hiking into the wilderness empties your mind. You fall into the silence of the mountains and you can relax in a way that's very difficult to do in the midst of civilization. The white noise that surrounds us in our everyday lives, that noise we don't even notice as it adds thin layers of stress that build up over days, weeks, years, does not seem capable of following us into the mountains.

- -
+

Dinosaur National Monument, Part One: Echo Park

+ + Dinosaur National Monument, Part One: Echo Park +

Dinosaur National Monument was poorly named. The best parts of it are not the fossils in the quarry (which is closed for 2010 anyway) but the canyon country — some of the best, most remote canyon country you'll find in this part of the world.

+ +
+

The Endless Crowds of Yellowstone

+ + The Endless Crowds of Yellowstone +

There is wilderness in Yellowstone, even if it's just inches from the boardwalks that transport thousands around the geothermal pools. It may not be wilderness on a grand scale — the sweeping mountain peaks or wild rivers of other parks — but in some ways that makes it more enticing. As one Ranger told me, Yellowstone isn't about the big picture, the grand scenery, it's about the tiny details within each pool. To really see Yellowstone, he said, you have to take your time, move slowly and look closely.

+ +
+

Backpacking in the Grand Tetons

+ + Backpacking in the Grand Tetons +

Hiking into the wilderness empties your mind. You fall into the silence of the mountains and you can relax in a way that's very difficult to do in the midst of civilization. The white noise that surrounds us in our everyday lives, that noise we don't even notice as it adds thin layers of stress that build up over days, weeks, years, does not seem capable of following us into the mountains.

+ +
diff --git a/templates/includes/recent_entries_template.html b/templates/includes/recent_entries_template.html index a743ecf..2140cb6 100644 --- a/templates/includes/recent_entries_template.html +++ b/templates/includes/recent_entries_template.html @@ -3,8 +3,8 @@ + {%if object.thumbnail%}{{ object.title }}{%endif%}

{{object.dek|safe}}

{% endfor %} -- cgit v1.2.3-70-g09d2