zmiany ux

This commit is contained in:
Mateusz Gruszczyński
2025-10-09 21:38:44 +02:00
parent 1e7f1e3990
commit 6709681dfd

View File

@@ -389,35 +389,41 @@ select.form-select:focus {
margin: 10px 0;
}
/* Specjalny tylko dla .btn-opis */
/* Tylko ten przycisk: .btn-opis */
.btn.btn-outline-light.btn-opis {
border-color: rgba(255,255,255,.6);
color: #eaeaea;
background: transparent;
/* start: neutralnie, lekki kontrast na ciemnym tle */
color: var(--text); /* #e4e4e4 w Twoim motywie */ [attached_file:3]
border-color: rgba(255,255,255,.28);/* subtelna ramka */ [attached_file:3]
background: rgba(255,255,255,0.02); /* leciutka mgiełka */ [attached_file:3]
backdrop-filter: blur(0.5px); /* ledwo wyczuwalne szkło (opcjonalnie) */ [attached_file:3]
transition:
transform 120ms ease,
background-color var(--trans),
background-color var(--trans), /* 220ms cubic-bezier(.2,.8,.2,1) */
border-color var(--trans),
color var(--trans),
box-shadow 160ms ease;
box-shadow 180ms ease,
transform 120ms ease; /* zachowuje spójność z innymi btn */ [attached_file:3]
}
.btn.btn-outline-light.btn-opis:hover,
.btn.btn-outline-light.btn-opis:focus {
color: #111;
background: color-mix(in srgb, #ffffff 92%, transparent);
border-color: #ffffff;
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
transform: translateY(-1px);
/* hover: jasność + ring z akcentem, ale nadal stonowanie */
color: #111; /* czytelny kontrast przy jaśniejszym tle */ [attached_file:3]
background: rgba(255,255,255,0.10); /* delikatne rozjaśnienie */ [attached_file:3]
border-color: rgba(255,255,255,0.45);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); /* miękki ring */ [attached_file:3]
transform: translateY(-1px); /* minimalny „lift” */ [attached_file:3]
}
.btn.btn-outline-light.btn-opis:active {
/* klik: krótkie przygaszenie, bez agresywnych skoków */
transform: translateY(0);
background: color-mix(in srgb, #ffffff 85%, transparent);
border-color: #f2f2f2;
background: rgba(255,255,255,0.14); [attached_file:3]
border-color: rgba(255,255,255,0.55);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent); [attached_file:3]
}
.btn.btn-outline-light.btn-opis:focus-visible {
outline: none;
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); /* dostępność, wciąż delikatnie */ [attached_file:3]
}