mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 07:11:18 +02:00
justfile: standardise test recipes to lint-php/lint-css/lint-js/test + add fix recipe
- Removed ambiguous aliases: phpstan, cs-check, syntax - Split lint-biome into lint-css and lint-js with correct paths - Added lint meta-recipe and fix recipe (biome --unsafe + php-cs-fixer) - Fixed FormBootstrap dead null check, CSS shorthand override bug - Updated phpstan baseline, suppressed noDescendingSpecificity/noInnerDeclarations - Applied ~74 biome auto-fixes across CSS/JS
This commit is contained in:
@@ -4,68 +4,80 @@
|
||||
============================================================ */
|
||||
|
||||
#toast-region {
|
||||
position: fixed;
|
||||
bottom: var(--space-l);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
pointer-events: none;
|
||||
width: max-content;
|
||||
max-width: min(560px, calc(100vw - 2 * var(--space-l)));
|
||||
position: fixed;
|
||||
bottom: var(--space-l);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
pointer-events: none;
|
||||
width: max-content;
|
||||
max-width: min(560px, calc(100vw - 2 * var(--space-l)));
|
||||
}
|
||||
|
||||
.toast {
|
||||
padding: var(--space-s) var(--space-m);
|
||||
border-radius: var(--radius);
|
||||
font-size: var(--step-0);
|
||||
border-left: 4px solid;
|
||||
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
|
||||
pointer-events: auto;
|
||||
/* enter then fade out — total visible ~6.35s */
|
||||
animation: toast-enter 0.35s ease-out,
|
||||
toast-exit 0.5s ease-in 6s forwards;
|
||||
padding: var(--space-s) var(--space-m);
|
||||
border-radius: var(--radius);
|
||||
font-size: var(--step-0);
|
||||
border-left: 4px solid;
|
||||
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
|
||||
pointer-events: auto;
|
||||
/* enter then fade out — total visible ~6.35s */
|
||||
animation:
|
||||
toast-enter 0.35s ease-out,
|
||||
toast-exit 0.5s ease-in 6s forwards;
|
||||
}
|
||||
|
||||
.toast--error {
|
||||
background: var(--bg-secondary);
|
||||
border-color: var(--error);
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-secondary);
|
||||
border-color: var(--error);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.toast--success {
|
||||
background: var(--bg-secondary);
|
||||
border-color: var(--success);
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-secondary);
|
||||
border-color: var(--success);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.toast--warning {
|
||||
background: var(--bg-secondary);
|
||||
border-color: var(--warning);
|
||||
color: var(--text-primary);
|
||||
animation: toast-enter 0.35s ease-out;
|
||||
background: var(--bg-secondary);
|
||||
border-color: var(--warning);
|
||||
color: var(--text-primary);
|
||||
animation: toast-enter 0.35s ease-out;
|
||||
}
|
||||
|
||||
.toast--warning a {
|
||||
color: inherit;
|
||||
font-weight: 400;
|
||||
text-decoration: none;
|
||||
transition: color 0.15s;
|
||||
color: inherit;
|
||||
font-weight: 400;
|
||||
text-decoration: none;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
|
||||
.toast--warning a:hover {
|
||||
color: var(--accent-primary);
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
|
||||
@keyframes toast-enter {
|
||||
from { opacity: 0; transform: translateY(12px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes toast-exit {
|
||||
from { opacity: 1; }
|
||||
to { opacity: 0; pointer-events: none; }
|
||||
from {
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user