85 lines
1.8 KiB
CSS
85 lines
1.8 KiB
CSS
/* Button sizes share the global control-radius scale. */
|
|
.button {
|
|
box-sizing: border-box;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
border: none;
|
|
border-radius: var(--dsw-radius-md);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
color: var(--dsw-alias-label-primary);
|
|
background: transparent;
|
|
padding: 0 14px;
|
|
}
|
|
|
|
.button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.md {
|
|
height: 36px;
|
|
}
|
|
|
|
/* Compact controls retain their dimensions across filled and outlined variants. */
|
|
.sm {
|
|
height: 28px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
padding: 0 10px;
|
|
border-radius: var(--dsw-radius-sm);
|
|
}
|
|
|
|
.primary {
|
|
background: var(--dsw-alias-button-primary-fill);
|
|
color: var(--dsw-alias-label-primary-foreground);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.primary:hover:not(:disabled) {
|
|
background: var(--dsw-alias-button-primary-hover);
|
|
}
|
|
|
|
.ghost:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
}
|
|
|
|
.ghost:active:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-active);
|
|
}
|
|
|
|
/* The transparent border preserves layout; the inset stroke stays complete at fractional widths. */
|
|
.outline {
|
|
border: 0.5px solid transparent;
|
|
background: transparent;
|
|
box-shadow: inset 0 0 0 var(--dsh-hairline-width, 0.5px) var(--dsh-button-outline-color, var(--dsw-alias-border-l3));
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.outline:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
}
|
|
|
|
.toolbar {
|
|
background: var(--dsw-alias-button-tool-bar-fill);
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.toolbar:hover:not(:disabled) {
|
|
background: var(--dsw-alias-button-tool-bar-hover);
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
display: inline-flex;
|
|
width: 16px;
|
|
height: 16px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|