NoticeList.less 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @import (reference) '~antd/es/style/themes/index';
  2. .list {
  3. max-height: 400px;
  4. overflow: auto;
  5. &::-webkit-scrollbar {
  6. display: none;
  7. }
  8. .item {
  9. padding-right: 24px;
  10. padding-left: 24px;
  11. overflow: hidden;
  12. cursor: pointer;
  13. transition: all 0.3s;
  14. .meta {
  15. width: 100%;
  16. }
  17. .avatar {
  18. margin-top: 4px;
  19. background: @component-background;
  20. }
  21. .iconElement {
  22. font-size: 32px;
  23. }
  24. &.read {
  25. opacity: 0.4;
  26. }
  27. &:last-child {
  28. border-bottom: 0;
  29. }
  30. &:hover {
  31. background: @primary-1;
  32. }
  33. .title {
  34. margin-bottom: 8px;
  35. font-weight: normal;
  36. }
  37. .description {
  38. font-size: 12px;
  39. line-height: @line-height-base;
  40. }
  41. .datetime {
  42. margin-top: 4px;
  43. font-size: 12px;
  44. line-height: @line-height-base;
  45. }
  46. .extra {
  47. float: right;
  48. margin-top: -1.5px;
  49. margin-right: 0;
  50. color: @text-color-secondary;
  51. font-weight: normal;
  52. }
  53. }
  54. .loadMore {
  55. padding: 8px 0;
  56. color: @primary-6;
  57. text-align: center;
  58. cursor: pointer;
  59. &.loadedAll {
  60. color: rgba(0, 0, 0, 0.25);
  61. cursor: unset;
  62. }
  63. }
  64. }
  65. .notFound {
  66. padding: 73px 0 88px;
  67. color: @text-color-secondary;
  68. text-align: center;
  69. img {
  70. display: inline-block;
  71. height: 76px;
  72. margin-bottom: 16px;
  73. }
  74. }
  75. .bottomBar {
  76. height: 46px;
  77. color: @text-color;
  78. line-height: 46px;
  79. text-align: center;
  80. border-top: 1px solid @border-color-split;
  81. border-radius: 0 0 @border-radius-base @border-radius-base;
  82. transition: all 0.3s;
  83. div {
  84. display: inline-block;
  85. width: 50%;
  86. cursor: pointer;
  87. transition: all 0.3s;
  88. user-select: none;
  89. &:only-child {
  90. width: 100%;
  91. }
  92. &:not(:only-child):last-child {
  93. border-left: 1px solid @border-color-split;
  94. }
  95. }
  96. }