MyBB Community Forums

Full Version: apply theme css stylesheet to html file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Stylesheet screenshot from ACP:
[Image: maildesign-css.png]

testhtml.html:
<span class="resetpassbutton-style">
  <button>
     <a href="{3}/member.php?action=resetpassword&uid={4}&code={5}">Reset Password</a> 
  </button>
</span>


skin.css.php (apply user selected theme color to element):

.resetpassbutton-style {
  color: <?php echo $color; ?>;
}


html file link:
https://forum.infiniproxy.xyz/testhtml.html

As you can see on the link above, the style don't become applied. If you inspect it with devtools you will notice, that the class is defined in the html span element but no css becomes applied. I test it on an html page before i put the new styling in message language file (cuz i want to design the mails)

Now the code i wrote should defently work (here the codepen link):
https://codepen.io/Infinimonster/pen/dygJvJR

Would be really nice if someone could help me there as i now tried to fix that issue for around 3h without success.

Regards,
Infinimonster