Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example for mixins from documentation doesn't work #33

Open
voidKandy opened this issue Jul 30, 2024 · 0 comments
Open

example for mixins from documentation doesn't work #33

voidKandy opened this issue Jul 30, 2024 · 0 comments

Comments

@voidKandy
Copy link

mixin properties don't seem to work as advertised in the documentation. I copy-pasted the code from this page in the documentation, and the mixin seems to do nothing. The below code is my html page I'm trying to render, and I've installed assembler using the CDN.

  <style>
    :root {
      --stripes--mixin: "bg-color: slateblue; \
        bg-image:repeating-linear-gradient(45deg, white 0 3px, #0003 3px 9px)";
    }
  </style>
  <div x-style="^stripes; w:150px; h:150px; mx:auto; radius"></div>

I know assembler is working because the css associated with all the other values in the x-style attribute are being applied (w:150px; h:150px; etx.).

I've used Assembler for 3 sites now and I've never gotten mixins to work as advertised (or at all). Would love to get this working as I really enjoy using Assembler, and mixins would be a nice cherry on top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant