index.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @import (reference) '../variable.less';
  2. @import '../../style/mixins/hairline.less';
  3. @listItemPrefix: ant-list-item;
  4. .@{listItemPrefix} {
  5. align-items: center;
  6. background-color: @list-background-color;
  7. color: @COLOR_TEXT_PRIMARY;
  8. line-height: 1.4;
  9. &-hover {
  10. background-color: @COLOR_BORDER;
  11. }
  12. &-line {
  13. flex: 1;
  14. display: flex;
  15. padding: 24 * @rpx;
  16. align-items: center;
  17. position: relative;
  18. &-divider {
  19. .hairline('bottom');
  20. }
  21. &-disabled {
  22. opacity: 0.4;
  23. }
  24. }
  25. &-image {
  26. &-container {
  27. margin-right: 24 * @rpx;
  28. &:empty {
  29. display: none;
  30. }
  31. }
  32. &-icon {
  33. font-size: 52 * @rpx;
  34. }
  35. &-image {
  36. width: 52 * @rpx;
  37. height: 52 * @rpx;
  38. overflow: hidden;
  39. }
  40. }
  41. &-content {
  42. &-container {
  43. display: flex;
  44. flex: 1;
  45. flex-direction: column;
  46. }
  47. &-main {
  48. font-size: 34 * @rpx;
  49. }
  50. &-title {
  51. &-container {
  52. font-size: 26 * @rpx;
  53. color: @COLOR_TEXT_ASSIST;
  54. }
  55. }
  56. &-brief {
  57. &-container {
  58. font-size: 26 * @rpx;
  59. color: @COLOR_TEXT_ASSIST;
  60. }
  61. }
  62. }
  63. &-extra {
  64. font-size: 34 * @rpx;
  65. display: flex;
  66. flex-direction: row-reverse;
  67. &:empty {
  68. display: none;
  69. }
  70. &-container {
  71. display: flex;
  72. flex-direction: column;
  73. }
  74. &-brief {
  75. display: flex;
  76. flex-direction: row-reverse;
  77. font-size: 30 * @rpx;
  78. color: @COLOR_TEXT_ASSIST;
  79. }
  80. }
  81. &-arrow {
  82. margin-left: 8 * @rpx;
  83. color: @COLOR_TEXT_WEAK;
  84. display: flex;
  85. align-items: center;
  86. .ant-icon {
  87. font-size: 36 * @rpx;
  88. }
  89. }
  90. .line {
  91. height: 1 * @rpx;
  92. background-color: @COLOR_BORDER;
  93. width: calc(100% - 24 * @rpx);
  94. position: absolute;
  95. right: 0;
  96. }
  97. }