diff --git a/index.html b/index.html index 4808088..22a98f3 100644 --- a/index.html +++ b/index.html @@ -577,13 +577,122 @@ border-color: var(--blue); } + /* Windows 11 Fluent Design Toggle Switch pour les checkboxes */ + input[type="checkbox"] { + appearance: none !important; + -webkit-appearance: none !important; + position: relative !important; + display: inline-block !important; + width: 40px !important; + height: 20px !important; + min-width: 40px !important; + max-width: 40px !important; + border-radius: 9999px !important; + background-color: rgba(255, 255, 255, 0.08) !important; + border: 1px solid var(--line, rgba(255, 255, 255, 0.35)) !important; + cursor: pointer !important; + outline: none !important; + vertical-align: middle !important; + margin: 0 !important; + flex-shrink: 0 !important; + box-sizing: border-box !important; + transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), + border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), + box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; + } + + input[type="checkbox"]::before { + content: "" !important; + position: absolute !important; + top: 3px !important; + left: 3px !important; + width: 12px !important; + height: 12px !important; + border-radius: 50% !important; + background-color: var(--muted, #9aa8c5) !important; + transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1), + width 0.15s ease, + background-color 0.2s ease !important; + } + + /* Hover état désactivé */ + input[type="checkbox"]:hover { + background-color: rgba(255, 255, 255, 0.14) !important; + border-color: rgba(255, 255, 255, 0.55) !important; + } + + input[type="checkbox"]:hover::before { + background-color: var(--text, #ffffff) !important; + } + + /* Clic maintenu (effet d'étirement Fluent Win11) */ + input[type="checkbox"]:active::before { + width: 15px !important; + } + + /* État Activé (Checked) */ + input[type="checkbox"]:checked { + background-color: var(--blue, #38bdf8) !important; + border-color: var(--blue, #38bdf8) !important; + } + + input[type="checkbox"]:checked::before { + transform: translateX(20px) !important; + background-color: #000000 !important; + } + + input[type="checkbox"]:checked:hover { + filter: brightness(1.08) !important; + } + + input[type="checkbox"]:checked:active::before { + transform: translateX(17px) !important; + width: 15px !important; + } + + /* Focus navigation clavier */ + input[type="checkbox"]:focus-visible { + box-shadow: 0 0 0 2px var(--bg, #071326), 0 0 0 4px var(--blue, #38bdf8) !important; + } + + /* Disabled */ + input[type="checkbox"]:disabled { + opacity: 0.4 !important; + cursor: not-allowed !important; + } + + /* Adaptation thème clair */ + html[data-theme="light"] input[type="checkbox"] { + background-color: rgba(0, 0, 0, 0.06) !important; + border-color: rgba(0, 0, 0, 0.28) !important; + } + + html[data-theme="light"] input[type="checkbox"]::before { + background-color: #5c5c5c !important; + } + + html[data-theme="light"] input[type="checkbox"]:hover { + background-color: rgba(0, 0, 0, 0.1) !important; + border-color: rgba(0, 0, 0, 0.45) !important; + } + + html[data-theme="light"] input[type="checkbox"]:checked { + background-color: var(--blue, #0066da) !important; + border-color: var(--blue, #0066da) !important; + } + + html[data-theme="light"] input[type="checkbox"]:checked::before { + background-color: #ffffff !important; + } + .check { - display: flex; + display: inline-flex; align-items: center; - gap: 8px; + gap: 10px; margin-top: 14px; cursor: pointer; - font-size: 14px + font-size: 14px; + user-select: none; } .notice { @@ -4813,9 +4922,9 @@ Planifiez des sauvegardes automatiques enregistrées dans le dossier configuré via Docker Compose.

-