976 lines
20 KiB
CSS
976 lines
20 KiB
CSS
/* Every color resolves through a `--dsw-alias-*` token. Bare `--border` /
|
|
* `--surface` / `--text-*` names, which nothing in this app defines, would
|
|
* render the light-mode literals written as their fallbacks and stay light
|
|
* under the dark theme. */
|
|
|
|
.section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
max-width: 720px;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.intro {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.notice {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: var(--dsw-alias-state-warn-label);
|
|
}
|
|
|
|
.savedNotice {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: var(--dsw-alias-state-success-primary);
|
|
}
|
|
|
|
.rows {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Provider cards share the settings material; editors use the inset module fill. */
|
|
.rowCard {
|
|
border: 0.5px solid var(--dsw-alias-settings-card-stroke);
|
|
background: var(--dsw-alias-settings-card-fill);
|
|
border-radius: var(--dsw-radius-xl);
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.rowHead {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rowIdentity {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rowName {
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* Reads as an annotation on the name, not as a second name: caption size and
|
|
the secondary label tone, so it never competes with the row's own title. It
|
|
sits inside `rowIdentity` with the credential dot, which is what keeps it
|
|
beside the name rather than drifting toward the actions. */
|
|
.rowTag {
|
|
flex: none;
|
|
padding: 1px 6px;
|
|
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
border-radius: var(--dsw-radius-xs);
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.credentialDot {
|
|
box-sizing: border-box;
|
|
display: inline-block;
|
|
flex: none;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
corner-shape: round;
|
|
}
|
|
|
|
.credentialDotConfigured {
|
|
background: var(--dsw-alias-state-success-primary);
|
|
}
|
|
|
|
.credentialDotMissing {
|
|
background: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.accountStatus {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
color: var(--dsw-alias-state-success-primary);
|
|
}
|
|
|
|
.rowActions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* `box-sizing` on every control here: the app has no global border-box reset,
|
|
so without it the outlined variants stand 2px taller than the filled ones
|
|
they sit beside (Cancel next to Apply, Edit next to Delete). */
|
|
.primaryButton,
|
|
.secondaryButton,
|
|
.addButton {
|
|
box-sizing: border-box;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border: none;
|
|
border-radius: var(--dsw-radius-md);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.primaryButton {
|
|
background: var(--dsw-alias-button-primary-fill);
|
|
color: var(--dsw-alias-label-primary-foreground);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.primaryButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-button-primary-hover);
|
|
}
|
|
}
|
|
|
|
.secondaryButton,
|
|
.addButton {
|
|
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.secondaryButton:hover:not(:disabled),
|
|
.addButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
.secondaryButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover-solid);
|
|
}
|
|
}
|
|
|
|
.dangerButton {
|
|
box-sizing: border-box;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border: none;
|
|
border-radius: var(--dsw-radius-md);
|
|
background: transparent;
|
|
color: var(--dsw-alias-state-error-primary);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.dangerButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover-danger);
|
|
}
|
|
}
|
|
|
|
/* Provider-row controls use the compact Button size. */
|
|
.rowActions .secondaryButton,
|
|
.rowActions .dangerButton {
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border-radius: var(--dsw-radius-sm);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.primaryButton:disabled,
|
|
.secondaryButton:disabled,
|
|
.dangerButton:disabled,
|
|
.addButton:disabled,
|
|
.linkButton:disabled,
|
|
.addModelButton:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
|
|
.primaryButton:focus-visible,
|
|
.secondaryButton:focus-visible,
|
|
.dangerButton:focus-visible,
|
|
.addButton:focus-visible,
|
|
.linkButton:focus-visible,
|
|
.addModelButton:focus-visible,
|
|
.iconButton:focus-visible,
|
|
.customizedSummary:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
}
|
|
|
|
/* Editing surface: a filled module on the panel, matching the settings
|
|
selector fill rather than adding another outline inside the row. */
|
|
.editor {
|
|
border-radius: var(--dsw-radius-lg);
|
|
background: var(--dsw-alias-bg-module-platform);
|
|
padding: 14px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.editorHeader {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.editorTitle {
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.editorRoute {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.fieldLabel {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.helpButton {
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
border-radius: 50%;
|
|
corner-shape: round;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font: inherit;
|
|
font-size: 11px;
|
|
line-height: 15px;
|
|
text-align: center;
|
|
cursor: help;
|
|
}
|
|
|
|
.helpButton:focus-visible {
|
|
color: var(--dsw-alias-label-primary);
|
|
border-color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.helpButton:hover {
|
|
color: var(--dsw-alias-label-primary);
|
|
border-color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
}
|
|
|
|
.linkButton {
|
|
box-sizing: border-box;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border: none;
|
|
border-radius: var(--dsw-radius-sm);
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.linkButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
}
|
|
|
|
.advancedHint {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* The provider owns a persistent action group within its scrolling editor. */
|
|
.editor > .editorActions {
|
|
position: sticky;
|
|
bottom: calc(-1 * var(--dsh-settings-scroll-inset, 0px));
|
|
z-index: 2;
|
|
padding: 12px 0 calc(12px + var(--dsh-settings-scroll-inset, 0px));
|
|
background: var(--dsw-alias-bg-module-platform);
|
|
box-shadow: 0 -1px var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.editor :is(input, button, select) {
|
|
scroll-margin-block: 72px;
|
|
}
|
|
|
|
.editorActions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.addBlock > .editorActions {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.addBlock {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* The one entry to the add card, spanning the same width as the rows above. */
|
|
.addActions {
|
|
display: flex;
|
|
}
|
|
|
|
.addButton {
|
|
/* Overrides the shared button base above: this is not a pill sitting in a
|
|
footer but the last slot of the provider list, so it fills the row and
|
|
repeats the row cards' corner. Dashed, like every other "nothing here yet"
|
|
affordance on this page, to read as a place rather than a command. */
|
|
flex: 1 1 0;
|
|
min-width: 180px;
|
|
gap: 6px;
|
|
height: 44px;
|
|
border: 1px dashed var(--dsw-alias-border-l3);
|
|
border-radius: var(--dsw-radius-lg);
|
|
}
|
|
|
|
/* The add card's mode switch with the one-line purpose of the chosen mode
|
|
beneath it; the switch hugs its labels rather than spanning the card. */
|
|
.addModes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* One panel per mode. Both stay mounted while the card is open; the hidden
|
|
attribute must win over the panel's own display, or the inactive draft
|
|
would show beneath the active one. */
|
|
.addPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.addPanel[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.addCard,
|
|
.setupCard {
|
|
border-radius: var(--dsw-radius-lg);
|
|
background: var(--dsw-alias-bg-module-platform);
|
|
padding: 14px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
list-style: none;
|
|
}
|
|
|
|
/* Nested in a card that already carries the module chrome. */
|
|
.addCard .editor,
|
|
.setupCard .editor {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.customized {
|
|
border-top: 0.5px solid var(--dsw-alias-border-l2);
|
|
padding-top: 10px;
|
|
}
|
|
|
|
/* Native disclosure marker replaced by a rotating chevron: the built-in
|
|
triangle differs per engine and cannot take the label color. */
|
|
.customizedSummary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
width: fit-content;
|
|
padding: 2px 4px;
|
|
margin-left: -4px;
|
|
border-radius: var(--dsw-radius-sm);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-secondary);
|
|
list-style: none;
|
|
}
|
|
|
|
.customizedSummary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.customizedSummary::before {
|
|
content: '';
|
|
width: 5px;
|
|
height: 5px;
|
|
border-right: 1.5px solid currentcolor;
|
|
border-bottom: 1.5px solid currentcolor;
|
|
transform: rotate(-45deg) translate(-1px, -1px);
|
|
transition: transform 120ms ease;
|
|
}
|
|
|
|
.customized[open] > .customizedSummary::before {
|
|
transform: rotate(45deg) translate(-1px, -1px);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.customizedSummary:hover {
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
}
|
|
|
|
.customizedBody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.modelCatalog {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding-top: 16px;
|
|
border-top: 0.5px solid var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.modelCatalogHeading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.modelCatalogTitle {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
font-weight: 500;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.modelCatalogMeta,
|
|
.modelEmpty {
|
|
margin: 0;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.modelList {
|
|
container-type: inline-size;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.modelListHead {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
@container (max-width: 400px) {
|
|
.modelRow > input {
|
|
grid-column: 2 / 4;
|
|
}
|
|
|
|
.modelRow > button:nth-last-child(2) {
|
|
grid-column: 4;
|
|
grid-row: 1;
|
|
}
|
|
|
|
.modelRow > button:last-child {
|
|
grid-column: 5;
|
|
grid-row: 1;
|
|
}
|
|
|
|
.modelAdvanced > .modelField {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
.modelEntry {
|
|
display: grid;
|
|
grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 28px 28px;
|
|
column-gap: 6px;
|
|
position: relative;
|
|
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
border-radius: var(--dsw-radius-lg);
|
|
padding: 6px;
|
|
}
|
|
|
|
.modelRow {
|
|
display: grid;
|
|
grid-column: 1 / -1;
|
|
grid-template-columns: subgrid;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.modelDragHandle:not(:disabled) {
|
|
cursor: grab;
|
|
}
|
|
|
|
.modelEntry[data-dragging] {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.modelDragPreview {
|
|
background: var(--dsw-alias-bg-module-platform);
|
|
}
|
|
|
|
/* Each row owns half of the 8px gap so native drops reach the insertion line. */
|
|
.modelEntry::before,
|
|
.modelEntry::after {
|
|
content: '';
|
|
position: absolute;
|
|
z-index: 1;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
}
|
|
|
|
.modelEntry::before {
|
|
top: -4px;
|
|
}
|
|
|
|
.modelEntry::after {
|
|
bottom: -4px;
|
|
}
|
|
|
|
.modelEntry[data-drop-target='before']::before,
|
|
.modelEntry[data-drop-target='after']::after {
|
|
height: 12px;
|
|
background:
|
|
linear-gradient(
|
|
55deg,
|
|
transparent calc(50% - 1px),
|
|
var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px),
|
|
transparent calc(50% + 1px)
|
|
) 0 0 / 5px 7px no-repeat,
|
|
linear-gradient(
|
|
125deg,
|
|
transparent calc(50% - 1px),
|
|
var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px),
|
|
transparent calc(50% + 1px)
|
|
) 0 5px / 5px 7px no-repeat,
|
|
linear-gradient(
|
|
var(--dsw-alias-state-business-primary) 0 0
|
|
) 4px 5px / calc(100% - 4px) 2px no-repeat;
|
|
}
|
|
|
|
.modelEntry[data-drop-target='before']::before {
|
|
top: -10px;
|
|
}
|
|
|
|
.modelEntry[data-drop-target='after']::after {
|
|
bottom: -10px;
|
|
}
|
|
|
|
/* Square, label-free affordances: the row's own inputs carry the meaning, so
|
|
the actions stay glyphs and announce themselves through aria-label. */
|
|
.iconButton {
|
|
box-sizing: border-box;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
border-radius: var(--dsw-radius-sm);
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.iconButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
}
|
|
|
|
.iconButton:disabled {
|
|
cursor: default;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/* The delete glyph keeps the danger tint the rest of the section uses. */
|
|
@media (hover: hover) {
|
|
.iconButtonDanger:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover-danger);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
}
|
|
|
|
.modelAdvanced {
|
|
display: grid;
|
|
grid-column: 2 / 4;
|
|
grid-template-columns: subgrid;
|
|
row-gap: 16px;
|
|
padding: 16px 0 6px;
|
|
}
|
|
|
|
.modelField {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
gap: 6px;
|
|
}
|
|
|
|
.modelInputTypes {
|
|
grid-column: 1 / -1;
|
|
min-width: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
}
|
|
|
|
.modelInputTypes legend {
|
|
padding: 0;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.modelInputChoices {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
min-height: 32px;
|
|
align-items: center;
|
|
}
|
|
|
|
.modelFieldLabel {
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.modelReasoning {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.modelReasoningLabel {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.modelReasoningHead {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Level select, API value, and delete action; the column labels share the grid. */
|
|
.modelReasoningRow {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.modelReasoningRow .selectInput {
|
|
max-width: none;
|
|
}
|
|
|
|
.modelReasoningValueInput {
|
|
font-family: var(--ds-font-family-code);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.modelEmpty {
|
|
padding: 12px;
|
|
border: 1px dashed var(--dsw-alias-border-l3);
|
|
border-radius: var(--dsw-radius-lg);
|
|
text-align: center;
|
|
}
|
|
|
|
.addModelButton {
|
|
box-sizing: border-box;
|
|
align-self: flex-start;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
height: 32px;
|
|
padding: 0 10px;
|
|
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
border-radius: var(--dsw-radius-md);
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-primary);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
cursor: pointer;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.addModelButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
}
|
|
|
|
.input {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
height: 32px;
|
|
padding: 0 10px;
|
|
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
border-radius: var(--dsw-radius-md);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* Enum pickers hold a handful of short options; a field-width dropdown reads
|
|
as a text field the user is expected to fill. */
|
|
select.input {
|
|
max-width: 240px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.input:disabled {
|
|
opacity: 0.6;
|
|
cursor: default;
|
|
}
|
|
|
|
.keyInput {
|
|
position: relative;
|
|
}
|
|
|
|
.keyInputFilled {
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.keyToggle {
|
|
position: absolute;
|
|
inset: 1px 1px 1px auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: var(--dsw-radius-md);
|
|
background: none;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.keyToggle:hover:not(:disabled) {
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
}
|
|
|
|
.keyToggle:focus-visible {
|
|
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.keyToggle:disabled {
|
|
opacity: 0.6;
|
|
cursor: default;
|
|
}
|
|
|
|
/* Select variant of .input: replaces the OS arrow (which sits flush against
|
|
the right edge) with the shared 12px chevron inset like the composer's
|
|
.select chips; the right pad reserves its cell. */
|
|
.selectInput {
|
|
appearance: none;
|
|
padding-right: 32px;
|
|
/* Data-URI SVGs cannot resolve CSS variables; #81858C is the caption gray
|
|
shared by both themes. */
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
background-size: 12px 12px;
|
|
}
|
|
|
|
.error {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.deleteDialog {
|
|
width: min(480px, 100%);
|
|
}
|
|
|
|
.deleteConfirm:not(:disabled) {
|
|
--dsh-button-outline-color: var(--dsw-alias-state-error-primary);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.deleteConfirm:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover-danger);
|
|
}
|
|
}
|
|
|
|
/* Icon-button label seat: named for assistive tech and for the tests that
|
|
query these controls by their text. */
|
|
.hiddenLabel {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.customizedSummary::before,
|
|
.switchThumb {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.fetchDialog {
|
|
max-width: 520px;
|
|
|
|
/* The candidate list scrolls inside this dialog, an elevated surface, so the
|
|
scrollbar indirection is rebound here rather than on the scrolling child:
|
|
the elevation choice belongs with the surface and inherits down (see
|
|
ui-theme styles/scrollbar.css for the contract). */
|
|
--dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
|
|
--dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);
|
|
}
|
|
|
|
.candidateToolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.candidateSearch {
|
|
min-width: 0;
|
|
flex: 1 1 240px;
|
|
}
|
|
|
|
.candidateList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
max-height: 320px;
|
|
margin: 0;
|
|
overflow-y: auto;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.candidate {
|
|
border-radius: var(--dsw-radius-md);
|
|
}
|
|
|
|
.candidateLabel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.candidateId {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
font-family: var(--ds-font-family-code);
|
|
font-size: 13px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.candidateEmpty {
|
|
margin: 24px 0;
|
|
color: var(--dsw-alias-label-secondary);
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.sectionHeader {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
.input {
|
|
font-size: 16px;
|
|
}
|
|
}
|