动态菜单和动态路由的 antd pro

NoticeList.less 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @import '~antd/lib/style/themes/default.less';
  2. .list {
  3. max-height: 400px;
  4. overflow: auto;
  5. .item {
  6. transition: all 0.3s;
  7. overflow: hidden;
  8. cursor: pointer;
  9. padding-left: 24px;
  10. padding-right: 24px;
  11. .meta {
  12. width: 100%;
  13. }
  14. .avatar {
  15. background: #fff;
  16. margin-top: 4px;
  17. }
  18. &.read {
  19. opacity: 0.4;
  20. }
  21. &:last-child {
  22. border-bottom: 0;
  23. }
  24. &:hover {
  25. background: @primary-1;
  26. }
  27. .title {
  28. font-weight: normal;
  29. margin-bottom: 8px;
  30. }
  31. .description {
  32. font-size: 12px;
  33. line-height: @line-height-base;
  34. }
  35. .datetime {
  36. font-size: 12px;
  37. margin-top: 4px;
  38. line-height: @line-height-base;
  39. }
  40. .extra {
  41. float: right;
  42. color: @text-color-secondary;
  43. font-weight: normal;
  44. margin-right: 0;
  45. margin-top: -1.5px;
  46. }
  47. }
  48. }
  49. .notFound {
  50. text-align: center;
  51. padding: 73px 0 88px 0;
  52. color: @text-color-secondary;
  53. img {
  54. display: inline-block;
  55. margin-bottom: 16px;
  56. height: 76px;
  57. }
  58. }
  59. .clear {
  60. height: 46px;
  61. line-height: 46px;
  62. text-align: center;
  63. color: @text-color;
  64. border-radius: 0 0 @border-radius-base @border-radius-base;
  65. border-top: 1px solid @border-color-split;
  66. transition: all 0.3s;
  67. cursor: pointer;
  68. &:hover {
  69. color: @heading-color;
  70. }
  71. }