1<?php 2/** 3 * Inline css to get variables and force styling on some elements 4 */ 5 6// must be run from within DokuWiki 7if (!defined('DOKU_INC')) die(); 8 9?> 10 11<style> 12body{ 13 --kiwiki-sidebar-max-height:<?php echo $sidebarMaxHeight; ?>px; 14 --kiwiki-toc-max-height:<?php echo $tocMaxHeight; ?>px; 15 --kiwiki-content-max-width:<?php echo $contentMaxWidth; ?>; 16 --kiwiki-content-width:<?php echo $contentWidth; ?>; 17 --kiwiki-aside-width:<?php echo $asideWidth; ?>; 18 --kiwiki-logo-url:url(<?php echo $logo; ?>); 19 --kiwiki-logo-light-url:url(<?php echo $logolight ? $logolight : $logo; ?>); 20 --kiwiki-logo-dark-url:url(<?php echo $logodark ? $logodark : $logo; ?>); 21 22} 23 24label[for="tpl____KIWIKI_DARK__"], label[for="tpl____KIWIKI_LIGHT__"] { 25 font-weight: 700; 26 padding: 20px 0 10px; 27 display: block; 28 font-size: 30px; 29} 30 31#tpl____KIWIKI_LIGHT__, #tpl____KIWIKI_DARK__ { 32 display: none !important; 33} 34</style>