divider.wxss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-divider {
  29. display: flex;
  30. color: var(--td-divider-color, var(--td-gray-color-3, #e7e7e7));
  31. border-color: var(--td-divider-color, var(--td-gray-color-3, #e7e7e7));
  32. border-style: solid;
  33. border-width: 0;
  34. }
  35. .t-divider::before,
  36. .t-divider::after {
  37. content: '';
  38. display: block;
  39. flex: 1;
  40. box-sizing: border-box;
  41. border: inherit;
  42. border-color: inherit;
  43. border-style: inherit;
  44. }
  45. .t-divider--horizontal {
  46. align-items: center;
  47. margin-top: 20rpx;
  48. margin-bottom: 20rpx;
  49. }
  50. .t-divider--horizontal::before,
  51. .t-divider--horizontal::after {
  52. border-top-width: 1px;
  53. transform: scaleY(0.5);
  54. }
  55. .t-divider--horizontal .t-divider__content:not(:empty) {
  56. margin: 0 24rpx;
  57. }
  58. .t-divider--vertical {
  59. flex-direction: column;
  60. height: 1em;
  61. margin: 0 16rpx;
  62. }
  63. .t-divider--vertical::before,
  64. .t-divider--vertical::after {
  65. border-left-width: 1px;
  66. transform: scaleX(0.5);
  67. }
  68. .t-divider--vertical-center {
  69. align-items: center;
  70. height: 100%;
  71. }
  72. .t-divider--dashed {
  73. border-style: dashed;
  74. }
  75. .t-divider__content {
  76. font-size: var(--td-divider-content-font-size, 24rpx);
  77. line-height: var(--td-divider-content-line-height, 40rpx);
  78. color: var(--td-divider-content-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  79. }
  80. .t-divider--left::before,
  81. .t-divider--right::after {
  82. max-width: 60rpx;
  83. }