diff options
author | Anika Henke <anika@selfthinker.org> | 2011-02-26 21:22:14 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2011-02-26 21:22:14 +0000 |
commit | 318cd03ee91d3a5344bab636a77c3cb19c32c5b7 (patch) | |
tree | 9e8fa3e38cd511bf8f7b301f2f7219fedaa3963f /lib/styles | |
parent | aeb1fea310b2067fbd3e259b9a2822783a2b7221 (diff) | |
download | rpg-318cd03ee91d3a5344bab636a77c3cb19c32c5b7.tar.gz rpg-318cd03ee91d3a5344bab636a77c3cb19c32c5b7.tar.bz2 |
improved css.php and core styles
* code cleanup in lib/exe/css.php
* renamed 'default' userstyle to 'screen' in config_cascade
* splitted core lib/styles/style.css up into all.css, print.css and screen.css
Diffstat (limited to 'lib/styles')
-rw-r--r-- | lib/styles/all.css | 48 | ||||
-rw-r--r-- | lib/styles/print.css | 24 | ||||
-rw-r--r-- | lib/styles/screen.css (renamed from lib/styles/style.css) | 45 |
3 files changed, 72 insertions, 45 deletions
diff --git a/lib/styles/all.css b/lib/styles/all.css new file mode 100644 index 000000000..dd9f46462 --- /dev/null +++ b/lib/styles/all.css @@ -0,0 +1,48 @@ +/** + * Basic styles. These styles are needed for basic DokuWiki functions + * regardless of the used template. Templates can override them of course + */ + +div.clearer { + clear: both; + line-height: 0; + height: 0; + overflow: hidden; +} + +div.no { + display: inline; + margin: 0; + padding: 0; +} + +.hidden { + display: none; +} + +/* image alignment */ +.medialeft { + float: left; +} +.mediaright { + float: right; +} +.mediacenter { + display: block; + margin-left: auto; + margin-right: auto; +} + +/* table cell alignment */ +.leftalign { text-align: left; } +.centeralign { text-align: center; } +.rightalign { text-align: right; } + +/* underline */ +em.u { + font-style: normal; + text-decoration: underline; +} +em em.u { + font-style: italic; +} diff --git a/lib/styles/print.css b/lib/styles/print.css new file mode 100644 index 000000000..16543473a --- /dev/null +++ b/lib/styles/print.css @@ -0,0 +1,24 @@ +/** + * Basic styles. These styles are needed for basic DokuWiki functions + * regardless of the used template. Templates can override them of course + */ + +/* messages with msg() */ +div.error, +div.info, +div.success, +div.notify { + display: none; +} + +/* section edit button */ +.secedit { + display: none; +} + +/* modal windows */ +.JSpopup, +#link__wiz, +#media__popup { + display: none; +} diff --git a/lib/styles/style.css b/lib/styles/screen.css index 395f82b78..0a6a4f295 100644 --- a/lib/styles/style.css +++ b/lib/styles/screen.css @@ -3,23 +3,6 @@ * regardless of the used template. Templates can override them of course */ -div.clearer { - clear: both; - line-height: 0; - height: 0; - overflow: hidden; -} - -div.no { - display: inline; - margin: 0; - padding: 0; -} - -.hidden { - display: none; -} - /* messages with msg() */ div.error, div.info, @@ -59,34 +42,6 @@ div.notify { border-bottom-color: #ffa; } - -/* image alignment */ -.medialeft { - float: left; -} -.mediaright { - float: right; -} -.mediacenter { - display: block; - margin-left: auto; - margin-right: auto; -} - -/* table cell alignment */ -.leftalign { text-align: left; } -.centeralign { text-align: center; } -.rightalign { text-align: right; } - -/* underline */ -em.u { - font-style: normal; - text-decoration: underline; -} -em em.u { - font-style: italic; -} - /* modal windows */ .JSpopup, #link__wiz, |