forked from FWS/TEMPLATE-Web-site-one-page
refactor(ui): deplacer les boutons dans styles global
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Téléchargements — FWS Linux</title>
|
||||
<link rel="stylesheet" href="../assets/styles/styles.css" />
|
||||
<link rel="stylesheet" href="../assets/styles/main.css" />
|
||||
<link rel="stylesheet" href="../assets/styles/downloads.css" />
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user