summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp4bl0 <r@uzy.me>2013-09-05 12:05:05 +0200
committerp4bl0 <r@uzy.me>2013-09-05 12:05:05 +0200
commit119e415a5e790707f57f2d783532b4ff342eab3c (patch)
tree0842abfbb24b1c81bbc2c7003c0bc7e96f3654b7
parent982b118b4793581a7c7cfb199159429ea0a082eb (diff)
mobile friendly default template
-rw-r--r--default-files/fugitive.css8
-rw-r--r--default-files/top.html3
2 files changed, 10 insertions, 1 deletions
diff --git a/default-files/fugitive.css b/default-files/fugitive.css
index ebfe835..14bbc47 100644
--- a/default-files/fugitive.css
+++ b/default-files/fugitive.css
@@ -301,3 +301,11 @@ footer p a {
text-decoration: none;
}
#container footer p a:hover, #container footer p a:active { color: #333; }
+@media screen and (max-device-width:680px) and (orientation:portrait) {
+ #container { width: 94%; margin: 0 2%; padding: 0 1%; }
+ nav, #topnav { font-size: 0.7em; }
+ header { font-size: 0.6em; }
+}
+@media screen and (max-device-width:1024px) and (orientation:landscape) {
+ #container { width: 94%; margin: 0 2%; padding: 0 1%; }
+}
diff --git a/default-files/top.html b/default-files/top.html
index e484084..5a2ea1b 100644
--- a/default-files/top.html
+++ b/default-files/top.html
@@ -2,9 +2,10 @@
<html dir="ltr" lang="en-US">
<head>
<title><?fugitive-install name ?>'s blog: <?fugitive page_title ?></title>
- <meta http-equiv="Content-type" content="application/xhtml+xml; charset=utf-8" />
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="author" content="<?fugitive-install name ?>" />
<meta name="description" content="<?fugitive-install name ?>'s blog" />
+ <meta name="viewport" content="width=device-width" />
<link rel="alternate" type="application/rss+xml" href="<?fugitive blog_url ?>feed.xml" title="5 last articles RSS feed" />
<link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" />
<link rel="stylesheet" href="print.css" type="text/css" media="print" />