Files
dify/web/app/components/base/action-button/index.css
Stephen Zhou 1873b22e96 refactor: update to tailwind v4 (#34415)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2026-04-02 07:06:11 +00:00

61 lines
1.2 KiB
CSS

@utility action-btn {
@apply inline-flex justify-center items-center cursor-pointer text-text-tertiary hover:text-text-secondary hover:bg-state-base-hover;
&.action-btn-active {
@apply text-text-accent bg-state-accent-active hover:bg-state-accent-active-alt;
}
&.action-btn-disabled {
@apply text-text-disabled;
}
&.action-btn-destructive {
@apply text-text-destructive bg-state-destructive-hover;
}
}
@utility action-btn-hover {
@apply bg-state-base-hover;
}
@utility action-btn-disabled {
@apply cursor-not-allowed;
&.action-btn {
@apply text-text-disabled;
}
}
@utility action-btn-xl {
@apply p-2 w-9 h-9 rounded-lg;
}
@utility action-btn-l {
@apply p-1.5 w-8 h-8 rounded-lg;
}
@utility action-btn-m {
/* m is for the regular button */
@apply p-0.5 w-6 h-6 rounded-lg;
}
@utility action-btn-s {
@apply w-5 h-5 rounded-[6px];
}
@utility action-btn-xs {
@apply p-0 w-4 h-4 rounded-sm;
}
@utility action-btn-active {
&.action-btn {
@apply text-text-accent bg-state-accent-active hover:bg-state-accent-active-alt;
}
}
@utility action-btn-destructive {
&.action-btn {
@apply text-text-destructive bg-state-destructive-hover;
}
}