index.less 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @import (reference) '../variable.less';
  2. @import (reference) '../../style/mixins/hairline.less';
  3. @checklistItemPrefix: ant-checklist-item;
  4. .@{checklistItemPrefix} {
  5. background-color: @COLOR_CARD;
  6. &-hover {
  7. background-color: @COLOR_BORDER;
  8. }
  9. &-content {
  10. display: flex;
  11. align-items: center;
  12. padding: @v-spacing-large @h-spacing-large;
  13. color: @COLOR_TEXT_PRIMARY;
  14. &-disabled {
  15. opacity: @opacity-disabled;
  16. }
  17. }
  18. &-content-box {
  19. flex: 1;
  20. }
  21. &-content-box-nut {
  22. display: flex;
  23. align-items: center;
  24. }
  25. &-image {
  26. width: @size-9;
  27. height: @size-9;
  28. border-radius: @corner-radius-md;
  29. }
  30. &-text {
  31. flex: 1;
  32. margin-left: @h-spacing-large;
  33. &-no-image {
  34. margin-left: 0;
  35. }
  36. &-title {
  37. color: @COLOR_TEXT_PRIMARY;
  38. font-size: @font-size-list;
  39. line-height: 48 * @rpx;
  40. }
  41. &-description {
  42. font-size: @font-size-content;
  43. color: @COLOR_TEXT_ASSIST;
  44. margin-top: 2 * @rpx;
  45. line-height: 36 * @rpx;
  46. }
  47. }
  48. &-checked {
  49. &-disabled {
  50. opacity: @opacity-disabled;
  51. }
  52. }
  53. &:last-child {
  54. .ant-checklist-item-line {
  55. display: none;
  56. }
  57. }
  58. &-line {
  59. margin-left: @h-spacing-large;
  60. position: relative;
  61. .hairline('bottom', @COLOR_BORDER);
  62. }
  63. }