summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2012-10-26 00:09:31 +0100
committerAnika Henke <anika@selfthinker.org>2012-10-26 00:09:31 +0100
commitac628d80ed1fc2003b4f4ef6e6897d9c9235ae83 (patch)
tree532af0d2bdf041fcbcf2a4b0684e7fd2770d01ec
parent8f8cccb46310ea77689dace8d6dfb42bdc7d4080 (diff)
downloadrpg-ac628d80ed1fc2003b4f4ef6e6897d9c9235ae83.tar.gz
rpg-ac628d80ed1fc2003b4f4ef6e6897d9c9235ae83.tar.bz2
added cut off points for mobile devices as parameters to style.ini
-rw-r--r--lib/tpl/dokuwiki/css/mobile.css8
-rw-r--r--lib/tpl/dokuwiki/style.ini3
-rw-r--r--lib/tpl/dokuwiki/template.info.txt2
3 files changed, 8 insertions, 5 deletions
diff --git a/lib/tpl/dokuwiki/css/mobile.css b/lib/tpl/dokuwiki/css/mobile.css
index 501e53a54..88333c012 100644
--- a/lib/tpl/dokuwiki/css/mobile.css
+++ b/lib/tpl/dokuwiki/css/mobile.css
@@ -11,9 +11,9 @@
z-index: 0;
}
-/* up to 979px screen widths
+/* for screen widths in the tablet range
********************************************************************/
-@media only screen and (max-width: 979px) {
+@media only screen and (max-width: __tablet_width__) {
#screen__mode {
z-index: 1; /* for detecting media queries in JavaScript (see script.js) */
@@ -113,9 +113,9 @@
} /* /@media */
-/* up to 480px screen widths
+/* for screen widths in the smartphone range
********************************************************************/
-@media only screen and (max-width: 480px) {
+@media only screen and (max-width: __phone_width__) {
#screen__mode {
z-index: 2; /* for detecting media queries in JavaScript (see script.js) */
diff --git a/lib/tpl/dokuwiki/style.ini b/lib/tpl/dokuwiki/style.ini
index d5cc68852..67fbb3065 100644
--- a/lib/tpl/dokuwiki/style.ini
+++ b/lib/tpl/dokuwiki/style.ini
@@ -74,3 +74,6 @@ __missing__ = "#d30"
; site and sidebar widths
__site_width__ = "75em"
__sidebar_width__ = "16em"
+; cut off points for mobile devices
+__tablet_width__ = "979px"
+__phone_width__ = "480px"
diff --git a/lib/tpl/dokuwiki/template.info.txt b/lib/tpl/dokuwiki/template.info.txt
index a9a55865e..d32e94d39 100644
--- a/lib/tpl/dokuwiki/template.info.txt
+++ b/lib/tpl/dokuwiki/template.info.txt
@@ -1,7 +1,7 @@
base dokuwiki
author Anika Henke
email anika@selfthinker.org
-date 2012-10-12
+date 2012-10-26
name DokuWiki Template
desc DokuWiki's default template since 2012
url http://www.dokuwiki.org/template:dokuwiki