From ac628d80ed1fc2003b4f4ef6e6897d9c9235ae83 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Fri, 26 Oct 2012 00:09:31 +0100 Subject: added cut off points for mobile devices as parameters to style.ini --- lib/tpl/dokuwiki/css/mobile.css | 8 ++++---- lib/tpl/dokuwiki/style.ini | 3 +++ lib/tpl/dokuwiki/template.info.txt | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'lib/tpl/dokuwiki') 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 -- cgit v1.2.3