apply theme css stylesheet to html file
1
468
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

2 participants


apply theme css stylesheet to html file
apply theme css stylesheet to html file

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


https://community.mybb.com/thread-238203.html
#136

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.

Forum Jump:


Users browsing this thread:
1 Guest(s)