index.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. @import '../common/index.css';
  2. .van-cell {
  3. position: relative;
  4. display: -webkit-flex;
  5. display: flex;
  6. box-sizing: border-box;
  7. width: 100%;
  8. padding: 10px 16px;
  9. padding: var(--cell-vertical-padding, 10px) var(--cell-horizontal-padding, 16px);
  10. font-size: 14px;
  11. font-size: var(--cell-font-size, 14px);
  12. line-height: 24px;
  13. line-height: var(--cell-line-height, 24px);
  14. color: #323233;
  15. color: var(--cell-text-color, #323233);
  16. background-color: #fff;
  17. background-color: var(--cell-background-color, #fff);
  18. }
  19. .van-cell:after {
  20. position: absolute;
  21. box-sizing: border-box;
  22. -webkit-transform-origin: center;
  23. transform-origin: center;
  24. content: ' ';
  25. pointer-events: none;
  26. top: auto;
  27. right: 0;
  28. bottom: 0;
  29. left: 16px;
  30. border-bottom: 1px solid #ebedf0;
  31. -webkit-transform: scaleY(0.5);
  32. transform: scaleY(0.5);
  33. }
  34. .van-cell--borderless:after {
  35. display: none;
  36. }
  37. .van-cell-group {
  38. background-color: #fff;
  39. background-color: var(--cell-background-color, #fff);
  40. }
  41. .van-cell__label {
  42. margin-top: 3px;
  43. margin-top: var(--cell-label-margin-top, 3px);
  44. font-size: 12px;
  45. font-size: var(--cell-label-font-size, 12px);
  46. line-height: 18px;
  47. line-height: var(--cell-label-line-height, 18px);
  48. color: #969799;
  49. color: var(--cell-label-color, #969799);
  50. }
  51. .van-cell__value {
  52. overflow: hidden;
  53. text-align: right;
  54. vertical-align: middle;
  55. color: #969799;
  56. color: var(--cell-value-color, #969799);
  57. }
  58. .van-cell__title,
  59. .van-cell__value {
  60. -webkit-flex: 1;
  61. flex: 1;
  62. }
  63. .van-cell__title:empty,
  64. .van-cell__value:empty {
  65. display: none;
  66. }
  67. .van-cell__left-icon-wrap,
  68. .van-cell__right-icon-wrap {
  69. display: -webkit-flex;
  70. display: flex;
  71. -webkit-align-items: center;
  72. align-items: center;
  73. height: 24px;
  74. height: var(--cell-line-height, 24px);
  75. font-size: 16px;
  76. font-size: var(--cell-icon-size, 16px);
  77. }
  78. .van-cell__left-icon-wrap {
  79. margin-right: 5px;
  80. }
  81. .van-cell__right-icon-wrap {
  82. margin-left: 5px;
  83. color: #969799;
  84. color: var(--cell-right-icon-color, #969799);
  85. }
  86. .van-cell__left-icon {
  87. vertical-align: middle;
  88. }
  89. .van-cell__left-icon,
  90. .van-cell__right-icon {
  91. line-height: 24px;
  92. line-height: var(--cell-line-height, 24px);
  93. }
  94. .van-cell--clickable.van-cell--hover {
  95. background-color: #f2f3f5;
  96. background-color: var(--cell-active-color, #f2f3f5);
  97. }
  98. .van-cell--required {
  99. overflow: visible;
  100. }
  101. .van-cell--required:before {
  102. position: absolute;
  103. content: '*';
  104. left: 8px;
  105. left: var(--padding-xs, 8px);
  106. font-size: 14px;
  107. font-size: var(--cell-font-size, 14px);
  108. color: #ee0a24;
  109. color: var(--cell-required-color, #ee0a24);
  110. }
  111. .van-cell--center {
  112. -webkit-align-items: center;
  113. align-items: center;
  114. }
  115. .van-cell--large {
  116. padding-top: 12px;
  117. padding-top: var(--cell-large-vertical-padding, 12px);
  118. padding-bottom: 12px;
  119. padding-bottom: var(--cell-large-vertical-padding, 12px);
  120. }
  121. .van-cell--large .van-cell__title {
  122. font-size: 16px;
  123. font-size: var(--cell-large-title-font-size, 16px);
  124. }
  125. .van-cell--large .van-cell__value {
  126. font-size: 16px;
  127. font-size: var(--cell-large-value-font-size, 16px);
  128. }
  129. .van-cell--large .van-cell__label {
  130. font-size: 14px;
  131. font-size: var(--cell-large-label-font-size, 14px);
  132. }