docsify-darklight-theme
docsify-darklight-theme copied to clipboard
Can I move the trigger icon for changing the theme
Thank you for the theme. I want to add the icon to the navbar, so I tried moving it as shown below. However it gets recreated somehow in the original position, with the result that there are now two icons, and neither can trigger.
Is there any way to move the icon safely?
hook.doneEach(function() {
const darkLightLink = document.querySelector("#docsify-darklight-theme");
const fred = document.getElementsByClassName("app-nav")[0].appendChild(darkLightLink); //
darkLightLink.style.display = 'inline-block';
darkLightLink.style.position = 'relative';
darkLightLink.style.top = '15px';
});
Ignore that. I'll just rewrite the plugin to write to the app bar. Would be nice to have this as an option :-). Thanks again for your wonderful plugin.
I agree, the icon is in a strange place, it would be better to allow the parent selector to be set in config.