Skip to content

Commit

Permalink
better look&feel for iphone
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Feb 13, 2011
1 parent abfaa2b commit 3828417
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
16 changes: 10 additions & 6 deletions htdocs/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -452,17 +452,16 @@ body {

/* media queries for iPhone */
@media screen and (max-device-width: 480px) {
body {
margin: 1.5em; }

#Container {
width: 100%;
line-height: 1.5em;
word-wrap: break-word; }

#content .about {
font-size: normal;
margin-bottom: 20px; }
#content {
margin-left: 2px; }
#content .about {
font-size: normal;
margin-bottom: 20px; }

pre {
overflow: auto; }
Expand All @@ -479,5 +478,10 @@ body {
.IndexModuleContent .fresh {
display: block; }

.PodPage .PodInfo {
display: none; }
.PodPage .PodBody {
clear: both; }

h1, h2, h3, h4, h5, h6 {
font-size: 110%; } }
26 changes: 25 additions & 1 deletion htdocs/static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
@import "typography";
@import "../prettify/prettify.css";

@mixin clearfix {
zoom: 1;

&:before,
&:after {
display: block;
height: 0;
visibility: hidden;
content: "\0020";
}

&:after {
clear: both;
}
}

/* ----------------------------------------------- */
/* sites css */
/* ----------------------------------------------- */
Expand Down Expand Up @@ -199,13 +215,13 @@ body {

/* media queries for iPhone */
@media screen and (max-device-width: 480px) {
body { margin: 1.5em; }
#Container {
width: 100%;
line-height: 1.5em;
word-wrap:break-word;
}
#content {
margin-left: 2px;
.about { font-size: normal; margin-bottom: 20px; }
}
pre { overflow:auto; }
Expand All @@ -219,6 +235,14 @@ body {
.old { display: block; }
.fresh { display: block; }
}
.PodPage {
.PodInfo {
display: none;
}
.PodBody {
clear: both;
}
}
h1, h2, h3, h4, h5, h6 {
font-size: 110%;
}
Expand Down

0 comments on commit 3828417

Please sign in to comment.