diff options
author | farthen <monkey@farthen.de> | 2013-09-05 02:39:20 +0200 |
---|---|---|
committer | farthen <monkey@farthen.de> | 2013-09-05 02:39:20 +0200 |
commit | cfdf1d223ae71ddce49525a6efe33af9f68eb67d (patch) | |
tree | 56d9a00afff1d89c52cf8999c9812c707ca1cb2b /static | |
parent | 329786b111bcf5d510ac6549f408be91e985f2c9 (diff) | |
download | www-cfdf1d223ae71ddce49525a6efe33af9f68eb67d.tar.gz www-cfdf1d223ae71ddce49525a6efe33af9f68eb67d.tar.bz2 www-cfdf1d223ae71ddce49525a6efe33af9f68eb67d.zip |
Improve readability on small devices, especially posts, headers and lists
Diffstat (limited to 'static')
-rw-r--r-- | static/css/main.css | 13 | ||||
-rw-r--r-- | static/css/responsive.css | 38 |
2 files changed, 51 insertions, 0 deletions
diff --git a/static/css/main.css b/static/css/main.css index cb2ec41..3cd2462 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -142,6 +142,9 @@ nav a:hover { #blog-show small { float: right; + display: block; + vertical-align: top; + margin-left: 0.8em; } #howtos-index li { @@ -161,6 +164,16 @@ nav a:hover { width: 140px; } +#back-link { + margin-top: 10px; +} + +/* Fix lists */ +dl, li p { + margin-top: 0; + margin-bottom: 0; +} + pre { white-space: pre !important; } diff --git a/static/css/responsive.css b/static/css/responsive.css index 0bb9f07..001b795 100644 --- a/static/css/responsive.css +++ b/static/css/responsive.css @@ -56,3 +56,41 @@ margin: 0.5em; } } + +@media (max-width: 527px) { + h1 { + font-size: 20px; + margin: 6px 0px 10px 0px; + } + + h2 { + font-size: 16px; + line-height: 1.2; + margin: 8px 0px 4px 0px; + } + + h3 { + font-size: 14px; + line-height: 1.2; + margin: 6px 0px 4px 0px; + } + + h4 { + font-size: 14px; + } + + h1, h2, h3, h4, h5, h6 { + line-height: 1.2; + } + + #post-date h1 { + margin: 0.0em 0.0em 0.0em 0.0em; + } + + #blog-show small { + float: none !important; + margin: 0.0em 0em 0.0em 0em !important; + font-size: 16px; + line-height: 20px + } +} |