summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-03-17 19:51:42 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-03-17 19:51:42 +0100
commit5b77caf422379fc6d9ab411c608bc9613cd53d7f (patch)
treec124b2241cbef5a0bffb45b0e2f07f5877e8a340
parent901c1c871d716eed41ae132c0782127d07a15fb9 (diff)
downloadrpg-5b77caf422379fc6d9ab411c608bc9613cd53d7f.tar.gz
rpg-5b77caf422379fc6d9ab411c608bc9613cd53d7f.tar.bz2
changes order of CSS loading #746
This changes the order of how Stylesheets are loaded, loading template styles *after* the plugin styles to allow template authors to simply override those styles. darcs-hash:20060317185142-7ad00-ac3f36a801babbbc09115124fa1472ee7470047e.gz
-rw-r--r--lib/exe/css.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index ad47647f0..5b4e560f4 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -48,22 +48,21 @@ function css_out(){
// are needed to fix relative paths in the stylesheets
$files = array();
if($print){
- $files[DOKU_TPLINC.'print.css'] = DOKU_TPL;
- if (isset($tplstyles['print'])) $files = array_merge($files, $tplstyles['print']);
- // load plugin styles
+ // load plugin, template, user styles
$files = array_merge($files, css_pluginstyles('print'));
+ if (isset($tplstyles['print'])) $files = array_merge($files, $tplstyles['print']);
$files[DOKU_CONF.'userprint.css'] = '';
}else{
$files[DOKU_INC.'lib/styles/style.css'] = DOKU_BASE.'lib/styles/';
if($conf['spellchecker']){
$files[DOKU_INC.'lib/styles/spellcheck.css'] = DOKU_BASE.'lib/styles/';
}
+ // load plugin, template, user styles
+ $files = array_merge($files, css_pluginstyles('screen'));
if (isset($tplstyles['screen'])) $files = array_merge($files, $tplstyles['screen']);
if($lang['direction'] == 'rtl'){
if (isset($tplstyles['rtl'])) $files = array_merge($files, $tplstyles['rtl']);
}
- // load plugin styles
- $files = array_merge($files, css_pluginstyles('screen'));
$files[DOKU_CONF.'userstyle.css'] = '';
}
@@ -192,7 +191,8 @@ function css_filetypes(){
// default style
echo 'a.mediafile {';
echo ' background: transparent url('.DOKU_BASE.'lib/images/fileicons/file.png) 0px 1px no-repeat;';
- echo ' padding-left: 16px;';
+ echo ' padding-left: 18px;';
+ echo ' padding-bottom: 1px;';
echo '}';
// additional styles when icon available