Skip to content

Commit

Permalink
include all.css after screen.css and add less files
Browse files Browse the repository at this point in the history
  • Loading branch information
Klap-in committed Nov 29, 2017
1 parent 6078b46 commit 8003b49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.php
Expand Up @@ -660,7 +660,6 @@ protected function load_css() {
DOKU_INC . 'lib/styles/print.css'
=> DOKU_BASE . 'lib/styles/',
),
css_pluginstyles('all'),
$this->css_pluginPDFstyles(),
array(
DOKU_PLUGIN . 'dw2pdf/conf/style.css'
Expand Down Expand Up @@ -708,13 +707,21 @@ protected function css_pluginPDFstyles() {
foreach($plugins as $p) {
if(in_array($p, $usestyle)) {
$list[DOKU_PLUGIN . "$p/screen.css"] = DOKU_BASE . "lib/plugins/$p/";
$list[DOKU_PLUGIN . "$p/screen.less"] = DOKU_BASE . "lib/plugins/$p/";

$list[DOKU_PLUGIN . "$p/style.css"] = DOKU_BASE . "lib/plugins/$p/";
$list[DOKU_PLUGIN . "$p/style.less"] = DOKU_BASE . "lib/plugins/$p/";
}

$list[DOKU_PLUGIN . "$p/all.css"] = DOKU_BASE . "lib/plugins/$p/";
$list[DOKU_PLUGIN . "$p/all.less"] = DOKU_BASE . "lib/plugins/$p/";

if(file_exists(DOKU_PLUGIN . "$p/pdf.css")) {
$list[DOKU_PLUGIN . "$p/pdf.css"] = DOKU_BASE . "lib/plugins/$p/";
$list[DOKU_PLUGIN . "$p/pdf.less"] = DOKU_BASE . "lib/plugins/$p/";
} else {
$list[DOKU_PLUGIN . "$p/print.css"] = DOKU_BASE . "lib/plugins/$p/";
$list[DOKU_PLUGIN . "$p/print.less"] = DOKU_BASE . "lib/plugins/$p/";
}
}
return $list;
Expand Down

0 comments on commit 8003b49

Please sign in to comment.