Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added mobile styles (#26), main work done, but some things still to f…
…ollow
- Loading branch information
1 parent
ff5df3c
commit 0a76802
Showing
5 changed files
with
233 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
/** | ||
* This file provides styles for mobile devices | ||
* and smaller screens (up to 480px width). | ||
* | ||
* @author Anika Henke <anika@selfthinker.org> | ||
*/ | ||
|
||
@media only screen and (max-width: 480px), only screen and (max-device-width: 480px) { | ||
|
||
|
||
/*____________ structure ____________*/ | ||
|
||
#dokuwiki__site { | ||
max-width: 100%; | ||
} | ||
#dokuwiki__site .site { | ||
padding: 0 .5em; | ||
} | ||
#dokuwiki__header { | ||
padding: .5em 0; | ||
} | ||
|
||
#dokuwiki__aside { | ||
width: 100%; | ||
float: none; | ||
} | ||
#dokuwiki__aside .pad { | ||
margin: 0; | ||
} | ||
|
||
.hasSidebar #dokuwiki__content { | ||
float: none; | ||
margin-left: 0; | ||
width: 100%; | ||
} | ||
.hasSidebar #dokuwiki__content .pad { | ||
margin-left: 0; | ||
} | ||
|
||
|
||
/*____________ header ____________*/ | ||
|
||
#dokuwiki__header ul.a11y.skip { | ||
position: static !important; | ||
left: 0 !important; | ||
width: auto !important; | ||
height: auto !important; | ||
float: right; | ||
font-size: 0.875em; | ||
list-style: none; | ||
padding-left: 0; | ||
margin: 0; | ||
} | ||
#dokuwiki__header ul.a11y.skip li { | ||
margin-left: .35em; | ||
display: inline; | ||
} | ||
|
||
#dokuwiki__header .headings, | ||
#dokuwiki__header .tools { | ||
float: none; | ||
text-align: left; | ||
width: auto; | ||
margin-bottom: .5em; | ||
} | ||
#dokuwiki__sitetools { | ||
text-align: left; | ||
} | ||
#dokuwiki__usertools, | ||
#dokuwiki__sitetools ul, | ||
#dokuwiki__sitetools h3, | ||
#dokuwiki__pagetools, | ||
.dokuwiki div.breadcrumbs, /* @todo: maybe move breadcrumbs to the bottom? */ | ||
.dokuwiki .pageId { | ||
display: none; | ||
} | ||
|
||
/* search form */ | ||
#dokuwiki__sitetools form.search { | ||
float: left; | ||
margin: 0 .2em .2em 0; | ||
width: 49%; | ||
position: relative; | ||
} | ||
#dokuwiki__sitetools form.search input.edit { | ||
width: 90% !important; | ||
} | ||
#dokuwiki__sitetools form.search input.button { | ||
position: absolute; | ||
top: .2em; | ||
right: .2em; | ||
} | ||
.dokuwiki form.search div.ajax_qsearch { | ||
display: none !important; | ||
} | ||
|
||
/* action dropdown is alternative for all hidden tools */ | ||
#dokuwiki__header .mobileTools { | ||
display: block; | ||
font-size: 0.875em; | ||
margin: 0 0 .2em 0; | ||
float: right; | ||
width: 49%; | ||
} | ||
#dokuwiki__header .mobileTools select { | ||
padding: .25em .1em; | ||
width: 100% !important; | ||
} | ||
|
||
|
||
/*____________ content ____________*/ | ||
|
||
.dokuwiki div.page { | ||
padding: .5em; | ||
} | ||
|
||
h1 { | ||
margin-top: 0; | ||
} | ||
|
||
/* toc */ | ||
.dokuwiki div.toc { | ||
float: none; | ||
margin: 0 0 1em 0; | ||
width: auto; | ||
border-left-width: 0; | ||
border-bottom: 1px solid __border__; | ||
} | ||
.dokuwiki div.tocheader { | ||
padding: 0 0 .5em; | ||
} | ||
.dokuwiki #toc__inside { | ||
padding: .2em 0 .5em; | ||
} | ||
|
||
/* form elements */ | ||
#config__manager fieldset td.value, | ||
#config__manager td .input, | ||
.dokuwiki fieldset, | ||
.dokuwiki input.edit, | ||
.dokuwiki textarea, | ||
.dokuwiki select { | ||
width: auto !important; | ||
max-width: 100% !important; | ||
} | ||
#config__manager fieldset { | ||
margin-left: 0; | ||
margin-right: 0; | ||
} | ||
|
||
/* _edit */ | ||
.dokuwiki div.section_highlight { | ||
margin: 0; | ||
padding: 0; | ||
border-width: 0; | ||
} | ||
.dokuwiki div.preview { | ||
margin: 0 -.5em; | ||
padding: .5em; | ||
} | ||
|
||
|
||
|
||
} /* /@media */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters