summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2014-09-21 11:25:19 +0200
committerrekado <rekado@elephly.net>2014-09-21 11:25:19 +0200
commit169049da9cd33adbd4b523658d2ac13a5a20ec7b (patch)
tree5ba3bfb26faaa1181a7d072147e13034f99c38e3 /css
parentffa9df3d4d362eb48af20e9cde51e7160fdff912 (diff)
update stylesheet to work better on small screens
Diffstat (limited to 'css')
-rw-r--r--css/mobile.css46
-rw-r--r--css/screen.css63
2 files changed, 42 insertions, 67 deletions
diff --git a/css/mobile.css b/css/mobile.css
deleted file mode 100644
index 532c573..0000000
--- a/css/mobile.css
+++ /dev/null
@@ -1,46 +0,0 @@
-@media only screen and (max-device-width: 480px) {
- div#aside {
- display: none;
- position: relative;
- height: auto; }
-
- div#mobilemenu {
- display: block;
- clear: both;
- overflow: auto;
- vertical-align: center;
- background: #eee;
- border-bottom: 3px solid #333333;
- margin-bottom: 1em; }
- div#mobilemenu a {
- background: #fff;
- font-size: 1.2em;
- width: 25%;
- padding: 10px;
- margin: 5px;
- float: left;
- -moz-border-radius: 10px;
- border-radius: 10px;
- text-align: center; }
-
- div#page {
- display: block;
- float: none;
- clear: both;
- padding: 1em; }
- div#page p {
- width: auto; }
-
- div#frame {
- width: auto; }
-
- div#logo {
- display: none; }
-
- ul.archive li {
- margin-bottom: 0.5em; }
- ul.archive li a {
- padding: 10px; }
-
- p.back a {
- padding: 5px; } }
diff --git a/css/screen.css b/css/screen.css
index aa7bbb8..43339a5 100644
--- a/css/screen.css
+++ b/css/screen.css
@@ -1,15 +1,20 @@
html, body {
- font-family: "droid serif", Georgia, Gentium, Palatino, Goudy, "Book Antiqua", "Palatino Linotype", "Linux Libertine", "Times New Roman", serif;
- font-size: 100%;
+ font-family: "droid serif", Georgia, Gentium, Goudy, "Book Antiqua", "Linux Libertine", "Times New Roman", serif;
+ font-size: 16px;
line-height: 1.3em;
color: #333;
background: #eeede5; }
body {
+ font-size: 1.2em;
margin: 0 auto; }
body .elephly {
background: #bdc0ac; }
+@media screen and (max-width: 600px) {
+ #gnulinux-inside {
+ display: none; }}
+
#page ul {
list-style: square outside;
margin-top: 1em;
@@ -26,17 +31,27 @@ img#logo {
border-radius: 1em;
width: 100%;
margin-bottom: 0.5em; }
+ @media screen and (max-width: 600px) {
+ img#logo {
+ width: auto; }}
div#navigation {
- position: fixed;
- top: 0;
- padding: 0.5em;
- height: 100%;
- width: 8em;
background: #fff;
border-left: 1px solid #cccccc;
border-right: 1px solid #cccccc;
font-family: "Droid Sans", Arial, sans-serif; }
+ @media screen and (min-width: 600px) {
+ div#navigation {
+ position: fixed;
+ top: 0;
+ padding: 0.5em;
+ height: 100%;
+ width: 8em; }}
+ @media screen and (max-width: 600px) {
+ div#navigation {
+ position: relative;
+ clear: both;
+ text-align: center; }}
div#navigation ul ul {
margin-left: 1em;
margin-bottom: 0.4em; }
@@ -56,12 +71,19 @@ div#navigation {
background: #666; }
div.figure {
- float: right;
text-align: center;
background: #fff;
+ box-sizing: border-box;
box-shadow: 0 0 0.4em 0 #888;
- padding: 1em;
- margin: 0.5em -4em 0.5em 1em; }
+ margin: 1em;
+ padding: 1em; }
+ @media screen and (min-width: 600px) {
+ div.figure {
+ float: right; }}
+ @media screen and (max-width: 600px) {
+ div.figure {
+ float: none;
+ clear: both; }}
div#page div.figure p.caption {
width: auto;
text-align: center;
@@ -73,7 +95,7 @@ h1 {
margin-bottom: .2em;
line-height: 1.5em;
display: block;
- font-size: 1.9em;
+ font-size: 1.6em;
font-weight: 300;
font-family: Georgia; }
@@ -109,17 +131,19 @@ strong {
font-weight: bold; }
div#page {
- width: 590px;
overflow: visible;
padding-left: 2em;
- margin-bottom: 100px;
- margin-left: 9em; }
+ margin-right: 1em;
+ margin-bottom: 100px; }
+ @media only screen and (min-width: 600px) {
+ div#page {
+ margin-left: 9em; }}
div#page ul {
- width: 36em; }
+ max-width: 36em; }
div#page p {
margin-bottom: 0;
text-align: justify;
- width: 36em;
+ max-width: 36em;
font-size: 1em; }
div#page p img, div#page p video {
display: inline;
@@ -129,7 +153,7 @@ div#page {
border-radius: 15px; }
div#page p.back {
margin-top: 1.5em;
- width: 20%; }
+ width: 50%; }
div#page blockquote {
margin-left: 3em;
margin-top: 1em;
@@ -218,7 +242,7 @@ div#columns {
list-style: none outside none;
margin: 0;
float: left;
- width: 32%; }
+ width: 50%; }
span.code, code {
font-family: "Envy Code R", "Inconsolata", "Consolas", "Courier New", monospace;
@@ -343,6 +367,3 @@ div#disqus_thread {
margin-top: 0.5em; }
div#disqus_thread h3 {
clear: none; }
-
-#mobilemenu {
- display: none; }