index.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* ant-design-vue 组件库的一些样式重置 */
  2. .ant-app {
  3. width: 100%;
  4. height: 100%;
  5. overscroll-behavior: none;
  6. color: inherit;
  7. }
  8. .ant-btn {
  9. .anticon {
  10. display: inline-flex;
  11. }
  12. /* * 修复按钮添加图标时的位置问题 */
  13. > svg {
  14. display: inline-block;
  15. }
  16. > svg + span {
  17. margin-inline-start: 6px;
  18. }
  19. }
  20. .ant-tag {
  21. > svg {
  22. display: inline-block;
  23. }
  24. > svg + span {
  25. margin-inline-start: 4px;
  26. }
  27. }
  28. .ant-message-notice-content,
  29. .ant-notification-notice {
  30. @apply dark:border-border/60 dark:border;
  31. }
  32. .form-valid-error {
  33. /** select 选择器的样式 */
  34. .ant-select:not(.valid-success) .ant-select-selector:not(.valid-success) {
  35. border-color: hsl(var(--destructive)) !important;
  36. }
  37. .ant-select-focused .ant-select-selector {
  38. box-shadow: 0 0 0 2px rgb(255 38 5 / 6%) !important;
  39. }
  40. /** 数字输入框样式 */
  41. .ant-input-number-focused {
  42. box-shadow: 0 0 0 2px rgb(255 38 5 / 6%);
  43. }
  44. /** 密码输入框样式 */
  45. .ant-input-affix-wrapper:hover {
  46. border-color: hsl(var(--destructive));
  47. box-shadow: 0 0 0 2px rgb(255 38 5 / 6%);
  48. }
  49. .ant-input:not(.valid-success) {
  50. border-color: hsl(var(--destructive)) !important;
  51. }
  52. }
  53. /** 区间选择器下面来回切换时的样式 */
  54. .ant-app .form-valid-error .ant-picker-active-bar {
  55. background-color: hsl(var(--destructive));
  56. }
  57. /** 时间选择器的样式 */
  58. .ant-app .form-valid-error .ant-picker-focused {
  59. box-shadow: 0 0 0 2px rgb(255 38 5 / 6%);
  60. }