Inline styles do not work with override files #5

Open
opened 2023-07-21 00:42:21 +00:00 by xrdawson · 0 comments
xrdawson commented 2023-07-21 00:42:21 +00:00 (Migrated from extrastatic.dev)

Right now, you must create a style tag and class when using overrides.

For example, this does NOT work for your src/Pretitle.svelte:

<div class="bg-yellow-200 w-full p-4">
  Yo, yo, yo!
</div>

Instead, you must use

<div class="banner">
  Yo, yo, yo!
</div>

<style>
  .banner {
    @apply bg-yellow-200 w-full p-4;
  }
</style>

TODO:

  • Lint this using the verify cli option?
Right now, you must create a style tag and class when using overrides. For example, this does NOT work for your `src/Pretitle.svelte`: ``` <div class="bg-yellow-200 w-full p-4"> Yo, yo, yo! </div> ``` Instead, you must use ``` <div class="banner"> Yo, yo, yo! </div> <style> .banner { @apply bg-yellow-200 w-full p-4; } </style> ``` TODO: - [ ] Lint this using the verify cli option?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
svekyll/svekyll-cli#5
No description provided.