Adds a dispose instance action to the instance info view, POSTing to /instance/dispose and rehydrating per-instance stores; also handles server.instance.disposed events and adds danger button styling.
82 lines
2.2 KiB
CSS
82 lines
2.2 KiB
CSS
/* Button component styles */
|
|
.button-primary,
|
|
button.button-primary {
|
|
@apply px-6 py-3 text-base rounded-lg;
|
|
background-color: var(--button-primary-bg);
|
|
color: var(--button-primary-text);
|
|
border-color: var(--button-primary-bg);
|
|
}
|
|
|
|
.button-primary:hover:not(:disabled),
|
|
button.button-primary:hover:not(:disabled) {
|
|
background-color: var(--button-primary-hover-bg);
|
|
border-color: var(--button-primary-hover-bg);
|
|
}
|
|
|
|
.button-primary:focus-visible,
|
|
button.button-primary:focus-visible {
|
|
box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--focus-ring-color);
|
|
}
|
|
|
|
.button-secondary,
|
|
button.button-secondary {
|
|
@apply px-6 py-3 text-base rounded-lg;
|
|
background-color: var(--surface-secondary);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-base);
|
|
}
|
|
|
|
.button-secondary:hover:not(:disabled),
|
|
button.button-secondary:hover:not(:disabled) {
|
|
background-color: var(--surface-hover);
|
|
}
|
|
|
|
.button-secondary:focus-visible,
|
|
button.button-secondary:focus-visible {
|
|
box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--focus-ring-color);
|
|
}
|
|
|
|
.button-tertiary,
|
|
button.button-tertiary {
|
|
@apply px-4 py-2 text-sm rounded-lg;
|
|
background-color: transparent;
|
|
color: var(--text-secondary);
|
|
border-color: var(--border-base);
|
|
}
|
|
|
|
.button-tertiary:hover:not(:disabled),
|
|
button.button-tertiary:hover:not(:disabled) {
|
|
color: var(--text-primary);
|
|
background-color: var(--surface-hover);
|
|
}
|
|
|
|
.button-tertiary:focus-visible,
|
|
button.button-tertiary:focus-visible {
|
|
box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--focus-ring-color);
|
|
}
|
|
|
|
.button-danger,
|
|
button.button-danger {
|
|
@apply px-6 py-3 text-base rounded-lg;
|
|
background-color: var(--button-danger-bg);
|
|
color: var(--button-danger-text);
|
|
border-color: var(--button-danger-bg);
|
|
}
|
|
|
|
.button-danger:hover:not(:disabled),
|
|
button.button-danger:hover:not(:disabled) {
|
|
background-color: var(--button-danger-hover-bg);
|
|
border-color: var(--button-danger-hover-bg);
|
|
}
|
|
|
|
.button-danger:focus-visible,
|
|
button.button-danger:focus-visible {
|
|
box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--focus-ring-color);
|
|
}
|
|
|
|
/* Smaller sizing variant for destructive actions in tight spaces. */
|
|
.button-danger.button-small,
|
|
button.button-danger.button-small {
|
|
@apply px-4 py-2 text-sm;
|
|
}
|