Skip to content

CSS Inject support #29

@TechplexEngineer

Description

@TechplexEngineer

Thanks for building this

I noticed that previous versions have CSS Inject support. #28 I'm attempting to use this plugin with svelte to build a userscript but the component styles are not getting applied.

Any thoughts on how it might be possible to load component styles?

Thanks

<main>
  <h1>Modal</h1>
</main>
<div class="modalBackdrop"></div>

<style>
  main {
    width: 80vw;
    height: 100vh;
  }
  .modalBackdrop {
    --bs-backdrop-zindex: 1050;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-backdrop-zindex);
    width: 100vw;
    height: 100vh;
    background-color: var(--bs-backdrop-bg);
  }
</style>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions