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:
@@ -7,7 +7,12 @@
|
||||
<.live_title default="Admin" suffix=" · SimpleShop">
|
||||
{assigns[:page_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/shop.css"} />
|
||||
<script defer phx-track-static src={~p"/assets/js/app.js"}>
|
||||
</script>
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user