mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-11-14 08:09:13 -06:00
84 lines
1.4 KiB
CSS
84 lines
1.4 KiB
CSS
.card {
|
|
position: absolute;
|
|
inset-block-end: 3.5rem;
|
|
inset-inline-start: var(--s-3);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--s-1);
|
|
min-width: 12rem;
|
|
max-width: calc(100% - var(--s-6));
|
|
padding: var(--s-2) var(--s-3);
|
|
border-radius: var(--radius-box);
|
|
background: var(--color-bg-overlay);
|
|
backdrop-filter: blur(6px);
|
|
color: var(--color-text-on-dark);
|
|
font-size: var(--font-xs);
|
|
pointer-events: none;
|
|
transition: opacity 0.5s;
|
|
|
|
&[data-fading="true"] {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: var(--s-4);
|
|
padding-block-end: var(--s-1);
|
|
border-block-end: 1px solid
|
|
color-mix(in oklab, var(--color-text-on-dark) 20%, transparent);
|
|
}
|
|
|
|
.life {
|
|
font-size: var(--font-2xs);
|
|
font-weight: var(--weight-bold);
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.duration {
|
|
font-size: var(--font-xl);
|
|
font-weight: var(--weight-extra);
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-2);
|
|
min-height: 24px;
|
|
}
|
|
|
|
.rowIcon {
|
|
display: flex;
|
|
opacity: 0.7;
|
|
|
|
& svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
}
|
|
|
|
.rowContent {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s-0-5);
|
|
font-weight: var(--weight-semi);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.controlFlag {
|
|
&[data-outcome="better"] {
|
|
color: var(--color-success);
|
|
}
|
|
|
|
&[data-outcome="worse"] {
|
|
color: var(--color-error);
|
|
}
|
|
}
|