load shop.css in admin layout for theme editor preview
The theme editor preview renders shop components inline. After removing shop Tailwind (Phase 5c), those components use semantic CSS classes from shop.css which wasn't loaded in the admin layout. Added a layer ordering declaration to keep shop reset below Tailwind base in the cascade. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f5f6374f7b
commit
b25e04d1b2
@ -7,7 +7,12 @@
|
|||||||
<.live_title default="Admin" suffix=" · SimpleShop">
|
<.live_title default="Admin" suffix=" · SimpleShop">
|
||||||
{assigns[:page_title]}
|
{assigns[:page_title]}
|
||||||
</.live_title>
|
</.live_title>
|
||||||
|
<!-- Pre-declare layer order so shop reset < Tailwind base regardless of load order -->
|
||||||
|
<style>
|
||||||
|
@layer properties, reset, primitives, tokens, theme, base, components, layout, utilities, overrides;
|
||||||
|
</style>
|
||||||
<link phx-track-static rel="stylesheet" href={~p"/assets/css/app.css"} />
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/app.css"} />
|
||||||
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/shop.css"} />
|
||||||
<script defer phx-track-static src={~p"/assets/js/app.js"}>
|
<script defer phx-track-static src={~p"/assets/js/app.js"}>
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user