mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-24 20:27:13 -05:00
94 lines
1.9 KiB
CSS
94 lines
1.9 KiB
CSS
/*
|
|
The scanner's outermost box: it names the container the pages' container
|
|
queries key off, and carries the app's own button look. Design tokens come
|
|
from sendou.ink's app/styles/vars.css.
|
|
*/
|
|
|
|
.app {
|
|
container: scanner / inline-size;
|
|
|
|
/* the app's own buttons, kept at :where() specificity so any component
|
|
class overrides it without having to win an ordering race */
|
|
& :where(button) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--s-1-5);
|
|
border: var(--border-style-accent);
|
|
border-radius: var(--radius-field);
|
|
appearance: none;
|
|
background: var(--color-text-accent);
|
|
color: var(--color-text-inverse);
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
font-size: var(--font-xs);
|
|
font-weight: var(--weight-bold);
|
|
padding: 0 var(--field-padding);
|
|
height: var(--field-size-sm);
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
|
|
& > svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: var(--focus-ring);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
&:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
transform: initial;
|
|
}
|
|
}
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s-6);
|
|
padding-bottom: var(--s-3);
|
|
border-bottom: var(--border-width) solid var(--color-bg-high);
|
|
margin-bottom: var(--s-4);
|
|
|
|
& nav {
|
|
display: flex;
|
|
gap: var(--s-2);
|
|
|
|
& a {
|
|
color: var(--color-text-high);
|
|
font-size: var(--font-xs);
|
|
font-weight: var(--weight-bold);
|
|
text-decoration: none;
|
|
padding: var(--s-1) var(--s-2-5);
|
|
border-radius: var(--radius-field);
|
|
transition:
|
|
background-color 0.15s,
|
|
color 0.15s;
|
|
|
|
&:hover,
|
|
&:focus-visible {
|
|
background-color: var(--color-bg-high);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: var(--focus-ring);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
&.active {
|
|
color: var(--color-text-accent);
|
|
background: var(--color-bg-high);
|
|
}
|
|
}
|
|
}
|
|
}
|