mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-11 19:37:51 +08:00
54 lines
1.4 KiB
CSS
54 lines
1.4 KiB
CSS
button,
|
|
input[type="button"],
|
|
input[type="submit"],
|
|
input[type="reset"],
|
|
.btn,
|
|
.cbi-button {
|
|
/* transform stays in this list for the .cbi-button active:scale-95
|
|
variant in _form.css, which relies on this base transition. */
|
|
@apply inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-xl border px-3 py-1.5 text-sm font-medium antialiased transition-[background-color,border-color,transform] duration-150 max-md:text-base max-md:font-medium;
|
|
&[disabled] {
|
|
@apply cursor-not-allowed opacity-(--app-opacity-disabled);
|
|
}
|
|
.td & {
|
|
@apply inline-flex w-auto flex-none whitespace-nowrap max-md:min-h-9 max-md:text-sm;
|
|
}
|
|
}
|
|
|
|
.btn,
|
|
.cbi-button,
|
|
.cbi-button-default,
|
|
.cbi-button-download,
|
|
.cbi-button-find,
|
|
.cbi-button-link,
|
|
.cbi-button-up,
|
|
.cbi-button-down {
|
|
@apply border-hairline bg-surface-sunken text-text hover:bg-hover-faint;
|
|
}
|
|
|
|
.drag-handle {
|
|
@apply border-hairline bg-surface-sunken text-text-muted hover:bg-hover-faint;
|
|
}
|
|
|
|
.btn.primary,
|
|
.cbi-button-action,
|
|
.cbi-button-apply,
|
|
.cbi-button-reload,
|
|
.cbi-button-add,
|
|
.cbi-button-edit {
|
|
@apply border-brand bg-brand hover:bg-brand-hover text-on-brand;
|
|
}
|
|
|
|
.cbi-button-positive,
|
|
.cbi-button-fieldadd,
|
|
.cbi-button-save {
|
|
@apply border-transparent bg-brand-subtle text-brand hover:bg-brand-subtle-hover;
|
|
}
|
|
|
|
.cbi-button-negative,
|
|
.cbi-section-remove .cbi-button,
|
|
.cbi-button-reset,
|
|
.cbi-button-remove {
|
|
@apply border-transparent bg-danger-surface text-danger hover:bg-danger-surface-hover;
|
|
}
|