Преглед на файлове

fix: balise <style type="text/tailwindcss"> au lieu de <script> pour que @apply soit compilé

Le CDN Tailwind ne traite que les balises <style type="text/tailwindcss">, pas <script>.
Les classes btn-* n'étaient donc pas générées.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Cédric Hansen преди 1 месец
родител
ревизия
372cd1a102
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      sources/templates/base.html

+ 2 - 2
sources/templates/base.html

@@ -5,7 +5,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>{% block title %}Backup Manager{% endblock %} — {{ instance_name }}</title>
   <script src="https://cdn.tailwindcss.com"></script>
-  <script type="text/tailwindcss">
+  <style type="text/tailwindcss">
     @layer components {
       /* Bouton principal (créer, lancer, enregistrer) — bleu */
       .btn-primary   { @apply inline-flex items-center gap-1.5 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-full shadow-sm transition; }
@@ -20,7 +20,7 @@
       .btn-md      { @apply text-sm px-5 py-2; }
       .btn-icon-sm { @apply text-xs px-2 py-1; }
     }
-  </script>
+  </style>
 </head>
 <body class="h-full flex flex-col">