mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-24 20:27:13 -05:00
61 lines
1.4 KiB
CSS
61 lines
1.4 KiB
CSS
/* the global select is full width, which would break the controls row */
|
|
.deviceSelect {
|
|
appearance: none;
|
|
width: auto;
|
|
max-width: 20rem;
|
|
border: var(--border-style);
|
|
border-radius: var(--radius-field);
|
|
background-color: var(--color-bg);
|
|
background-image: var(--field-icon-chevron);
|
|
background-position: center right var(--field-padding);
|
|
background-size: var(--field-size-icon) auto;
|
|
background-repeat: no-repeat;
|
|
color: var(--color-text);
|
|
cursor: pointer;
|
|
transition: background-color 0.15s;
|
|
font-family: inherit;
|
|
font-size: var(--font-xs);
|
|
height: var(--field-size-sm);
|
|
padding: 0 calc(var(--field-size-icon) + var(--field-padding) + var(--s-2)) 0
|
|
var(--field-padding);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
outline: none;
|
|
|
|
&:focus-within {
|
|
outline: var(--focus-ring);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&:hover:not(:disabled),
|
|
&:focus-visible {
|
|
background-color: var(--color-bg-high);
|
|
}
|
|
}
|
|
|
|
.preview {
|
|
width: 100%;
|
|
background: #000;
|
|
border-radius: var(--radius-box);
|
|
border: var(--border-width) solid var(--color-bg-high);
|
|
}
|
|
|
|
@container scanner (width < 700px) {
|
|
/* stacked, the preview would otherwise push the feed off the screen */
|
|
.preview {
|
|
max-height: 45vh;
|
|
object-fit: contain;
|
|
}
|
|
}
|
|
|
|
button.outlined {
|
|
background: transparent;
|
|
color: var(--color-text-accent);
|
|
}
|