zmiany ux
This commit is contained in:
@@ -389,35 +389,41 @@ select.form-select:focus {
|
|||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Specjalny tylko dla .btn-opis */
|
/* Tylko ten przycisk: .btn-opis */
|
||||||
.btn.btn-outline-light.btn-opis {
|
.btn.btn-outline-light.btn-opis {
|
||||||
border-color: rgba(255,255,255,.6);
|
/* start: neutralnie, lekki kontrast na ciemnym tle */
|
||||||
color: #eaeaea;
|
color: var(--text); /* #e4e4e4 w Twoim motywie */ [attached_file:3]
|
||||||
background: transparent;
|
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:
|
transition:
|
||||||
transform 120ms ease,
|
background-color var(--trans), /* 220ms cubic-bezier(.2,.8,.2,1) */
|
||||||
background-color var(--trans),
|
|
||||||
border-color var(--trans),
|
border-color var(--trans),
|
||||||
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:hover,
|
||||||
.btn.btn-outline-light.btn-opis:focus {
|
.btn.btn-outline-light.btn-opis:focus {
|
||||||
color: #111;
|
/* hover: jasność + ring z akcentem, ale nadal stonowanie */
|
||||||
background: color-mix(in srgb, #ffffff 92%, transparent);
|
color: #111; /* czytelny kontrast przy jaśniejszym tle */ [attached_file:3]
|
||||||
border-color: #ffffff;
|
background: rgba(255,255,255,0.10); /* delikatne rozjaśnienie */ [attached_file:3]
|
||||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
|
border-color: rgba(255,255,255,0.45);
|
||||||
transform: translateY(-1px);
|
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 {
|
.btn.btn-outline-light.btn-opis:active {
|
||||||
|
/* klik: krótkie przygaszenie, bez agresywnych skoków */
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
background: color-mix(in srgb, #ffffff 85%, transparent);
|
background: rgba(255,255,255,0.14); [attached_file:3]
|
||||||
border-color: #f2f2f2;
|
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 {
|
.btn.btn-outline-light.btn-opis:focus-visible {
|
||||||
outline: none;
|
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]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user