Closed solarkraft closed 3 years ago
Should be configurable
Dokuwiki seems to already have a manifest.json (... why?): https://www.dokuwiki.org/devel:manifest
This is automatically takes __background_alt__
: https://www.dokuwiki.org/devel:style.ini
But doesn't seem to be active. Maybe the theme disables it. Fine by me generally, but ... theme color replacements only work in imported CSS?
Perhaps the styling plugin has a way to access style.ini
from php ... https://www.dokuwiki.org/plugin:styling?s[]=style&s[]=ini
Looks like the accent color is now __theme_color__
:
https://github.com/selfthinker/dokuwiki_template_starter/commit/9d210bc0cd38ce0e44427a3027486e59a3396c13
The manifest thing works, but integrating it into the CSS doesn't. __theme_color__
isn't replaced and @ini_theme_color is caught by SASS.
Replacements seemingly just don't work. Tested with
background-color: unquote("@ini_background");
background-color: __background__;
Oh right.
<!--
I know the CSS and JS imports can be done within the style.ini and script.js files,
but I had some issues with styling (and import order) there, so I'm doing those imports here.
-->
<!-- Fonts and icons -->
<link href="<?php echo tpl_basedir(); ?>assets/css/fonts.css" rel="stylesheet">
<!-- CSS Files -->
<link href="<?php echo tpl_basedir(); ?>assets/css/doku.css" rel="stylesheet" />
https://developers.google.com/web/updates/2015/08/using-manifest-to-set-sitewide-theme-color