Document every Sass mixin and function with SassDoc and drop the unused ones
Each @mixin and @function now has a /// block: what it draws and when to use it, its parameters with their accepted values, and the mixin that goes with it. VS Code shows it on hover with SCSS IntelliSense. Ten mixins that nothing included are removed; the built CSS is byte-identical. tests/static-styles now requires the block, and website/AGENTS.md gives the template. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
64a1ad2835
commit
db93420daf
20 changed files with 333 additions and 108 deletions
|
|
@ -1,4 +1,8 @@
|
|||
// Rôle : regroupe les mixins de cases à cocher.
|
||||
|
||||
/// Case à cocher du design system, dessinée sur l'`input` natif (`appearance: none`).
|
||||
/// @param {String} $size [md] - Côté : `md` (20 px), `sm` (18 px) ou `xs` (14 px).
|
||||
/// @see {mixin} checkbox-check
|
||||
@mixin checkbox-control($size: md) {
|
||||
$control-size: 20px;
|
||||
$radius: 3px;
|
||||
|
|
@ -40,6 +44,9 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
/// Coche dessinée dans la case (pseudo-élément), cachée tant que la case n'est pas cochée.
|
||||
/// @param {String} $size [md] - Même taille que la case.
|
||||
/// @see {mixin} checkbox-checked-check
|
||||
@mixin checkbox-check($size: md) {
|
||||
$check-size: 11px;
|
||||
|
||||
|
|
@ -58,6 +65,7 @@
|
|||
clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 18%, 84% 5%, 34% 68%);
|
||||
}
|
||||
|
||||
/// Survol d'une case à cocher : bordure et halo dorés.
|
||||
@mixin checkbox-hover {
|
||||
border-color: rgba(246, 196, 83, 0.6);
|
||||
box-shadow:
|
||||
|
|
@ -65,6 +73,7 @@
|
|||
0 0 14px rgba(246, 196, 83, 0.14);
|
||||
}
|
||||
|
||||
/// Case cochée : fond en dégradé doré et violet.
|
||||
@mixin checkbox-checked {
|
||||
border-color: rgba(246, 196, 83, 0.88);
|
||||
background:
|
||||
|
|
@ -75,10 +84,12 @@
|
|||
0 0 16px rgba(246, 196, 83, 0.2);
|
||||
}
|
||||
|
||||
/// Fait apparaître la coche d'une case cochée.
|
||||
@mixin checkbox-checked-check {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
/// Case à cocher désactivée : grisée, curseur « interdit ».
|
||||
@mixin checkbox-disabled {
|
||||
border-color: rgba(165, 180, 252, 0.08);
|
||||
background:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue