You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
1.7 KiB

1 day ago
  1. /**
  2. * 审批通知样式
  3. * 优化 Element UI Notification 组件的显示效果
  4. */
  5. /* 审批通知容器 */
  6. .el-notification.approval-notification {
  7. width: 380px;
  8. padding: 20px;
  9. border-left: 3px solid #E6A23C;
  10. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  11. &:hover {
  12. cursor: pointer;
  13. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  14. transform: translateX(-5px);
  15. transition: all 0.3s ease;
  16. }
  17. /* 标题样式 */
  18. .el-notification__title {
  19. font-size: 16px;
  20. font-weight: bold;
  21. color: #E6A23C;
  22. margin-bottom: 10px;
  23. }
  24. /* 内容样式 */
  25. .el-notification__content {
  26. font-size: 14px;
  27. line-height: 1.8;
  28. color: #303133;
  29. p {
  30. margin: 5px 0;
  31. }
  32. strong {
  33. color: #303133;
  34. font-weight: 600;
  35. }
  36. }
  37. /* 关闭按钮 */
  38. .el-notification__closeBtn {
  39. color: #909399;
  40. font-size: 18px;
  41. &:hover {
  42. color: #E6A23C;
  43. }
  44. }
  45. }
  46. /* 新申请单通知 */
  47. .el-notification.new-approval-notification {
  48. border-left-color: #409EFF;
  49. .el-notification__title {
  50. color: #409EFF;
  51. }
  52. }
  53. /* 汇总通知 */
  54. .el-notification.summary-notification {
  55. border-left-color: #E6A23C;
  56. .el-notification__title {
  57. color: #E6A23C;
  58. }
  59. /* 数字高亮 */
  60. .count-highlight {
  61. color: #E6A23C;
  62. font-size: 18px;
  63. font-weight: bold;
  64. padding: 0 5px;
  65. }
  66. }
  67. /* 通知动画 */
  68. @keyframes notification-shake {
  69. 0%, 100% {
  70. transform: translateX(0);
  71. }
  72. 25% {
  73. transform: translateX(-5px);
  74. }
  75. 75% {
  76. transform: translateX(5px);
  77. }
  78. }
  79. .el-notification.shake-animation {
  80. animation: notification-shake 0.5s ease;
  81. }
  82. /* 响应式适配 */
  83. @media screen and (max-width: 768px) {
  84. .el-notification.approval-notification {
  85. width: 320px;
  86. padding: 15px;
  87. }
  88. }