From 07f232b70bb9d28f04e5df2d7406417923a2a77e Mon Sep 17 00:00:00 2001 From: BlackAngelTVdev Date: Thu, 28 May 2026 19:10:34 +0200 Subject: [PATCH] refactor(ui): deplacer les boutons dans styles global --- p/assets/styles/main.css | 63 -------------------------------------- p/assets/styles/styles.css | 63 ++++++++++++++++++++++++++++++++++++++ p/dl/index.html | 1 + 3 files changed, 64 insertions(+), 63 deletions(-) diff --git a/p/assets/styles/main.css b/p/assets/styles/main.css index e1708af..1f5cf2d 100644 --- a/p/assets/styles/main.css +++ b/p/assets/styles/main.css @@ -158,69 +158,6 @@ main[data-page-content] { } -.button { - display: inline-flex; - align-items: center; - justify-content: center; - padding: 0.8rem 1.2rem; - border-radius: 999px; - text-decoration: none; - font-weight: 700; - border: 1px solid transparent; - cursor: pointer; - transition: - transform 180ms ease, - background-color 180ms ease, - border-color 180ms ease, - color 180ms ease, - box-shadow 180ms ease, - opacity 180ms ease; - user-select: none; - -webkit-tap-highlight-color: transparent; -} - -.button-primary { - background: linear-gradient(145deg, var(--accent), var(--accent-strong)); - color: #08101d; - box-shadow: 0 12px 28px rgba(2, 6, 23, 0.25); -} - -.button-secondary { - background: rgba(255,255,255,0.04); - color: var(--text); - border-color: rgba(148, 163, 184, 0.18); -} - -.button:hover, -.button:focus-visible { - transform: translateY(-1px); - box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28); -} - -.button-primary:hover, -.button-primary:focus-visible { - background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 86%, white), color-mix(in srgb, var(--accent-strong) 92%, white)); -} - -.button-secondary:hover, -.button-secondary:focus-visible { - background: rgba(125, 211, 252, 0.12); - border-color: rgba(125, 211, 252, 0.35); -} - -.button:focus-visible { - outline: 2px solid rgba(125, 211, 252, 0.85); - outline-offset: 2px; -} - -.button[aria-disabled="true"], -.button:disabled { - opacity: 0.55; - pointer-events: none; - transform: none; - box-shadow: none; -} - .features { margin-top: 1.5rem; diff --git a/p/assets/styles/styles.css b/p/assets/styles/styles.css index 8881c15..4bb8727 100644 --- a/p/assets/styles/styles.css +++ b/p/assets/styles/styles.css @@ -274,6 +274,69 @@ body::after { color: var(--text); } +.button { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0.8rem 1.2rem; + border-radius: 999px; + text-decoration: none; + font-weight: 700; + border: 1px solid transparent; + cursor: pointer; + transition: + transform 180ms ease, + background-color 180ms ease, + border-color 180ms ease, + color 180ms ease, + box-shadow 180ms ease, + opacity 180ms ease; + user-select: none; + -webkit-tap-highlight-color: transparent; +} + +.button-primary { + background: linear-gradient(145deg, var(--accent), var(--accent-strong)); + color: #08101d; + box-shadow: 0 12px 28px rgba(2, 6, 23, 0.25); +} + +.button-secondary { + background: rgba(255,255,255,0.04); + color: var(--text); + border-color: rgba(148, 163, 184, 0.18); +} + +.button:hover, +.button:focus-visible { + transform: translateY(-1px); + box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28); +} + +.button-primary:hover, +.button-primary:focus-visible { + background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 86%, white), color-mix(in srgb, var(--accent-strong) 92%, white)); +} + +.button-secondary:hover, +.button-secondary:focus-visible { + background: rgba(125, 211, 252, 0.12); + border-color: rgba(125, 211, 252, 0.35); +} + +.button:focus-visible { + outline: 2px solid rgba(125, 211, 252, 0.85); + outline-offset: 2px; +} + +.button[aria-disabled="true"], +.button:disabled { + opacity: 0.55; + pointer-events: none; + transform: none; + box-shadow: none; +} + @media (max-width: 900px) { .grid { grid-template-columns: 1fr; diff --git a/p/dl/index.html b/p/dl/index.html index 7f655cc..97611e2 100644 --- a/p/dl/index.html +++ b/p/dl/index.html @@ -4,6 +4,7 @@ Téléchargements — FWS Linux +