index.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. @import '../common/abstracts/variable.scss';
  2. @import '../common/abstracts/_mixin.scss';
  3. .wot-theme-dark {
  4. @include b(cell) {
  5. background-color: $-dark-background2;
  6. color: $-dark-color;
  7. @include e(value) {
  8. color: $-dark-color;
  9. }
  10. @include e(label) {
  11. color: $-dark-color3;
  12. }
  13. @include when(hover) {
  14. background-color: $-dark-background4;
  15. }
  16. @include when(border) {
  17. .wd-cell__wrapper {
  18. @include halfPixelBorder('top', 0, $-dark-border-color);
  19. }
  20. }
  21. :deep(.wd-cell__arrow-right) {
  22. color: $-dark-color;
  23. }
  24. }
  25. }
  26. @include b(cell) {
  27. position: relative;
  28. padding-left: $-cell-padding;
  29. background-color: $-color-white;
  30. text-decoration: none;
  31. color: $-cell-title-color;
  32. line-height: $-cell-line-height;
  33. -webkit-tap-highlight-color: transparent;
  34. box-sizing: border-box;
  35. width: 100%;
  36. overflow: hidden;
  37. @include when(border) {
  38. .wd-cell__wrapper {
  39. @include halfPixelBorder('top');
  40. }
  41. }
  42. @include e(wrapper) {
  43. position: relative;
  44. display: flex;
  45. padding: $-cell-wrapper-padding $-cell-padding $-cell-wrapper-padding 0;
  46. justify-content: space-between;
  47. align-items: flex-start;
  48. overflow: hidden;
  49. @include when(vertical) {
  50. display: block;
  51. .wd-cell__right {
  52. margin-top: $-cell-vertical-top;
  53. }
  54. .wd-cell__value {
  55. text-align: left;
  56. }
  57. .wd-cell__left {
  58. margin-right: 0;
  59. }
  60. }
  61. @include when(label) {
  62. padding: $-cell-wrapper-padding-with-label $-cell-padding $-cell-wrapper-padding-with-label 0;
  63. }
  64. }
  65. @include e(left) {
  66. position: relative;
  67. flex: 1;
  68. display: flex;
  69. text-align: left;
  70. font-size: $-cell-title-fs;
  71. box-sizing: border-box;
  72. margin-right: $-cell-padding;
  73. }
  74. @include e(right) {
  75. position: relative;
  76. flex: 1;
  77. min-width: 0;
  78. }
  79. @include e(title) {
  80. font-size: $-cell-title-fs;
  81. }
  82. @include e(required) {
  83. font-size: $-cell-required-size;
  84. color: $-cell-required-color;
  85. margin-left: $-cell-required-margin;
  86. @include m(left) {
  87. margin-left: 0;
  88. margin-right: $-cell-required-margin;
  89. }
  90. }
  91. @include e(label) {
  92. margin-top: 2px;
  93. font-size: $-cell-label-fs;
  94. color: $-cell-label-color;
  95. }
  96. @include edeep(icon) {
  97. display: block;
  98. position: relative;
  99. margin-right: $-cell-icon-right;
  100. font-size: $-cell-icon-size;
  101. height: $-cell-line-height;
  102. line-height: $-cell-line-height;
  103. }
  104. @include e(body){
  105. display: flex;
  106. min-width: 0;
  107. }
  108. @include e(value) {
  109. position: relative;
  110. flex: 1;
  111. font-size: $-cell-value-fs;
  112. color: $-cell-value-color;
  113. vertical-align: middle;
  114. @include m(left) {
  115. text-align: left;
  116. }
  117. @include m(right) {
  118. text-align: right;
  119. }
  120. @include m(ellipsis) {
  121. @include lineEllipsis;
  122. min-width: 0;
  123. }
  124. }
  125. @include edeep(arrow-right) {
  126. display: block;
  127. margin-left: 8px;
  128. width: $-cell-arrow-size;
  129. font-size: $-cell-arrow-size;
  130. color: $-cell-arrow-color;
  131. height: $-cell-line-height;
  132. line-height: $-cell-line-height;
  133. }
  134. @include e(error-message){
  135. color: $-form-item-error-message-color;
  136. font-size: $-form-item-error-message-font-size;
  137. line-height: $-form-item-error-message-line-height;
  138. text-align: left;
  139. vertical-align: middle;
  140. }
  141. @include when(link) {
  142. -webkit-tap-highlight-color: $-cell-tap-bg;
  143. }
  144. @include when(hover) {
  145. background-color: $-cell-tap-bg;
  146. }
  147. @include when(large) {
  148. .wd-cell__title {
  149. font-size: $-cell-title-fs-large;
  150. }
  151. .wd-cell__wrapper {
  152. padding-top: $-cell-wrapper-padding-large;
  153. padding-bottom: $-cell-wrapper-padding-large;
  154. }
  155. .wd-cell__label {
  156. font-size: $-cell-label-fs-large;
  157. }
  158. .wd-cell__value {
  159. font-size: $-cell-value-fs-large;
  160. }
  161. :deep(.wd-cell__icon) {
  162. font-size: $-cell-icon-size-large;
  163. }
  164. }
  165. @include when(center) {
  166. .wd-cell__wrapper {
  167. align-items: center;
  168. }
  169. }
  170. }