index.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* 单元格组样式 */
  2. .tdesign-cell-group {
  3. position: relative;
  4. }
  5. /* 标题样式 */
  6. .tdesign-cell-group__title {
  7. font-family: PingFangSC-Regular;
  8. font-size: var(--td-cell-group-title-font-size, 28rpx);
  9. color: var(--td-cell-group-title-color, rgba(0,0,0,.4));
  10. text-align: left;
  11. line-height: var(--td-cell-group-title-line-height, 90rpx);
  12. background-color: var(--td-cell-group-title-bg-color, #f3f3f3);
  13. padding-left: var(--td-cell-group-title-padding-left, 32rpx);
  14. }
  15. /* 内容区域 */
  16. .tdesign-cell-group__content {
  17. position: relative;
  18. }
  19. /* 边框处理 */
  20. .tdesign-cell-group--bordered::before {
  21. position: absolute;
  22. box-sizing: border-box;
  23. content: ' ';
  24. pointer-events: none;
  25. right: 0;
  26. left: 0;
  27. top: 0;
  28. border-top: 1px solid var(--td-cell-group-border-color, #e7e7e7);
  29. transform: scaleY(.5);
  30. transform-origin: 0 0;
  31. transform-origin: top;
  32. z-index: 1;
  33. }
  34. .tdesign-cell-group--bordered::after {
  35. position: absolute;
  36. box-sizing: border-box;
  37. content: ' ';
  38. pointer-events: none;
  39. right: 0;
  40. left: 0;
  41. bottom: 0;
  42. border-bottom: 1px solid var(--td-cell-group-border-color, #e7e7e7);
  43. transform: scaleY(.5);
  44. transform-origin: bottom;
  45. z-index: 1;
  46. }
  47. /* 卡片主题 */
  48. .tdesign-cell-group--card {
  49. margin: 0 32rpx;
  50. border-radius: var(--td-radius-large, 18rpx);
  51. overflow: hidden;
  52. }