tips:css_selector_namespace
 CSS Selector Namespace
If you want to target specific namespaces with CSS, you can use a conf/userscript.js-trick as explained here:
/* add namespace for CSS-selection, https://github.com/dokuwiki/dokuwiki/issues/2531#issuecomment-679170765 */ jQuery( 'body' ).attr( 'data-page-namespace', JSINFO.namespace );
For example, if you want all pages in a namespace named public: to have a custom background image, you can use the following CSS-rule. Note that the background image background-namespace-public.jpg is located in the user configuration folder for the template with name my-template-name.
/* custom background for pages in namespace 'public:'*/ body[data-page-namespace="public"] { background: no-repeat top/cover url('conf/tpl/my-template-name/background-namespace-public.jpg'); }
tips/css_selector_namespace.txt · Last modified:  by Aleksandr