Met en place les fondations du template Bulma décrit dans regles/FORGE_ENGINE_TEMPLATE_BULMA.md : palette orange/ambre Forge (--accent:#ff5f2e/--accent-2:#ffb020), typographie, rayons — appliqués en recompilant Bulma lui-même plutôt qu'en le surchargeant après coup en CSS, pour recolorer automatiquement ses composants internes (tags, notifications, dropdowns...) sans avoir à les surcharger un par un. - Bulma 0.9.4 vendoré en local (styles/bulma/, source Sass classique $variable + @import) — PAS 1.0.2 (la version jusqu'ici en CDN) : 1.0.2 utilise le nouveau système de modules @use/@forward, que libsass (choisi pour rester 100% Python, sans Node/npm) ne sait pas compiler (testé : il ignore silencieusement le @use au lieu de le traiter). 0.9.4 est la dernière version compatible avec libsass et couvre à l'identique tous les composants utilisés ici (boutons, tableaux, onglets, modales, formulaires, navbar). - requirements.txt : +libsass (pip pur, aucun binaire/Node.js). - styles/forge-theme.scss (nouveau, point d'entrée) : variables Sass Bulma ($primary, $radius...) posées avant l'import, tokens Forge exposés en :root (--forge-bg, --accent, --gradient, --status-*...) avec des alias vers les noms de variables déjà utilisés par tout le CSS custom existant (--bg/--panel/--border/--text/--danger...) — pas besoin de renommer les ~600 lignes de règles déjà écrites, seules leurs VALEURS changent. - styles/forge-custom.scss : ancien static/style.css, structurellement inchangé — seuls les hex/rgba en dur qui échappaient aux variables (ancien accent bleu #5b8cff, danger #e2685f, couleurs de types de nœuds du graphe de logique, fond du QR code recovery...) sont remplacés par les tokens de la charte. - build_css.py (nouveau) : compile styles/forge-theme.scss en static/style.css via libsass — un seul fichier, un seul <link> inchangé dans les templates, à relancer manuellement après toute modification sous styles/. - base.html/play.html : suppression du <link> CDN Bulma (auto-hébergé désormais), ajout d'un favicon (absent jusqu'ici) et du vrai logo Forge dans la navbar (assets/*.svg copiés dans static/branding/, seul dossier réellement servi par Flask). 197 tests toujours verts (aucune assertion sur des valeurs CSS). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
146 lines
2.6 KiB
Sass
146 lines
2.6 KiB
Sass
@import "../utilities/mixins"
|
|
|
|
$body-background-color: $scheme-main !default
|
|
$body-size: 16px !default
|
|
$body-min-width: 300px !default
|
|
$body-rendering: optimizeLegibility !default
|
|
$body-family: $family-primary !default
|
|
$body-overflow-x: hidden !default
|
|
$body-overflow-y: scroll !default
|
|
|
|
$body-color: $text !default
|
|
$body-font-size: 1em !default
|
|
$body-weight: $weight-normal !default
|
|
$body-line-height: 1.5 !default
|
|
|
|
$code-family: $family-code !default
|
|
$code-padding: 0.25em 0.5em 0.25em !default
|
|
$code-weight: normal !default
|
|
$code-size: 0.875em !default
|
|
|
|
$small-font-size: 0.875em !default
|
|
|
|
$hr-background-color: $background !default
|
|
$hr-height: 2px !default
|
|
$hr-margin: 1.5rem 0 !default
|
|
|
|
$strong-color: $text-strong !default
|
|
$strong-weight: $weight-bold !default
|
|
|
|
$pre-font-size: 0.875em !default
|
|
$pre-padding: 1.25rem 1.5rem !default
|
|
$pre-code-font-size: 1em !default
|
|
|
|
html
|
|
background-color: $body-background-color
|
|
font-size: $body-size
|
|
-moz-osx-font-smoothing: grayscale
|
|
-webkit-font-smoothing: antialiased
|
|
min-width: $body-min-width
|
|
overflow-x: $body-overflow-x
|
|
overflow-y: $body-overflow-y
|
|
text-rendering: $body-rendering
|
|
text-size-adjust: 100%
|
|
|
|
article,
|
|
aside,
|
|
figure,
|
|
footer,
|
|
header,
|
|
hgroup,
|
|
section
|
|
display: block
|
|
|
|
body,
|
|
button,
|
|
input,
|
|
optgroup,
|
|
select,
|
|
textarea
|
|
font-family: $body-family
|
|
|
|
code,
|
|
pre
|
|
-moz-osx-font-smoothing: auto
|
|
-webkit-font-smoothing: auto
|
|
font-family: $code-family
|
|
|
|
body
|
|
color: $body-color
|
|
font-size: $body-font-size
|
|
font-weight: $body-weight
|
|
line-height: $body-line-height
|
|
|
|
// Inline
|
|
|
|
a
|
|
color: $link
|
|
cursor: pointer
|
|
text-decoration: none
|
|
strong
|
|
color: currentColor
|
|
&:hover
|
|
color: $link-hover
|
|
|
|
code
|
|
background-color: $code-background
|
|
color: $code
|
|
font-size: $code-size
|
|
font-weight: $code-weight
|
|
padding: $code-padding
|
|
|
|
hr
|
|
background-color: $hr-background-color
|
|
border: none
|
|
display: block
|
|
height: $hr-height
|
|
margin: $hr-margin
|
|
|
|
img
|
|
height: auto
|
|
max-width: 100%
|
|
|
|
input[type="checkbox"],
|
|
input[type="radio"]
|
|
vertical-align: baseline
|
|
|
|
small
|
|
font-size: $small-font-size
|
|
|
|
span
|
|
font-style: inherit
|
|
font-weight: inherit
|
|
|
|
strong
|
|
color: $strong-color
|
|
font-weight: $strong-weight
|
|
|
|
// Block
|
|
|
|
fieldset
|
|
border: none
|
|
|
|
pre
|
|
+overflow-touch
|
|
background-color: $pre-background
|
|
color: $pre
|
|
font-size: $pre-font-size
|
|
overflow-x: auto
|
|
padding: $pre-padding
|
|
white-space: pre
|
|
word-wrap: normal
|
|
code
|
|
background-color: transparent
|
|
color: currentColor
|
|
font-size: $pre-code-font-size
|
|
padding: 0
|
|
|
|
table
|
|
td,
|
|
th
|
|
vertical-align: top
|
|
&:not([align])
|
|
text-align: inherit
|
|
th
|
|
color: $text-strong
|