index.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. @import '../common/abstracts/variable';
  2. @import '../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(action-sheet) {
  5. background-color: $-dark-background2;
  6. color: $-dark-color;
  7. @include e(action) {
  8. color: $-dark-color;
  9. background: $-dark-background2;
  10. &:not(.wd-action-sheet__action--disabled):not(.wd-action-sheet__action--loading):active {
  11. background: $-dark-background4;
  12. }
  13. @include m(disabled) {
  14. color: $-dark-color-gray;
  15. }
  16. }
  17. @include e(subname) {
  18. color: $-dark-color3;
  19. }
  20. @include e(cancel) {
  21. color: $-dark-color;
  22. background: $-dark-background4;
  23. &:active {
  24. background: $-dark-background5;
  25. }
  26. }
  27. :deep(.wd-action-sheet__close) {
  28. color: $-dark-color3;
  29. }
  30. @include e(panel-title) {
  31. color: $-dark-color;
  32. }
  33. @include e(header) {
  34. color: $-dark-color;
  35. }
  36. }
  37. }
  38. :deep(.wd-action-sheet__popup) {
  39. border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
  40. }
  41. @include b(action-sheet) {
  42. background-color: $-color-white;
  43. padding-bottom: 1px;
  44. @include edeep(popup) {
  45. border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
  46. }
  47. @include e(actions) {
  48. padding: 8px 0;
  49. max-height: 50vh;
  50. overflow-y: auto;
  51. -webkit-overflow-scrolling: touch;
  52. }
  53. @include e(action) {
  54. position: relative;
  55. display: block;
  56. width: 100%;
  57. height: $-action-sheet-action-height;
  58. line-height: $-action-sheet-action-height;
  59. color: $-action-sheet-color;
  60. font-size: $-action-sheet-fs;
  61. text-align: center;
  62. border: none;
  63. background: $-action-sheet-bg;
  64. outline: none;
  65. &:after {
  66. display: none;
  67. }
  68. &:not(&--disabled):not(&--loading):active {
  69. background: $-action-sheet-active-color;
  70. }
  71. @include m(disabled) {
  72. color: $-action-sheet-disabled-color;
  73. cursor: not-allowed;
  74. }
  75. @include m(loading) {
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. line-height: initial;
  80. }
  81. }
  82. @include edeep(action-loading){
  83. width: $-action-sheet-loading-size;
  84. height: $-action-sheet-loading-size;
  85. }
  86. @include e(name) {
  87. display: inline-block;
  88. }
  89. @include e(subname) {
  90. display: inline-block;
  91. margin-left: 4px;
  92. font-size: $-action-sheet-subname-fs;
  93. color: $-action-sheet-subname-color;
  94. }
  95. @include e(cancel) {
  96. display: block;
  97. width: calc(100% - 48px);
  98. line-height: $-action-sheet-cancel-height;
  99. padding: 0;
  100. color: $-action-sheet-cancel-color;
  101. font-size: $-action-sheet-fs;
  102. text-align: center;
  103. border-radius: $-action-sheet-cancel-radius;
  104. border: none;
  105. background: $-action-sheet-cancel-bg;
  106. outline: none;
  107. margin: 0 auto 24px;
  108. font-weight: $-action-sheet-weight;
  109. &:active {
  110. background: $-action-sheet-active-color;
  111. }
  112. &:after {
  113. display: none;
  114. }
  115. }
  116. @include e(header) {
  117. color: $-action-sheet-color;
  118. position: relative;
  119. height: $-action-sheet-title-height;
  120. line-height: $-action-sheet-title-height;
  121. text-align: center;
  122. font-size: $-action-sheet-title-fs;
  123. font-weight: $-action-sheet-weight;
  124. }
  125. @include edeep(close) {
  126. position: absolute;
  127. top: $-action-sheet-close-top;
  128. right: $-action-sheet-close-right;
  129. color: $-action-sheet-close-color;
  130. font-size: $-action-sheet-close-fs;
  131. transform: rotate(-45deg);
  132. line-height: 1.1;
  133. }
  134. @include e(panels) {
  135. height: 84px;
  136. overflow-y: hidden;
  137. &:first-of-type {
  138. margin-top: 20px;
  139. }
  140. &:last-of-type {
  141. margin-bottom: 12px;
  142. }
  143. }
  144. @include e(panels-content) {
  145. display: flex;
  146. overflow-x: auto;
  147. -webkit-overflow-scrolling: touch;
  148. }
  149. @include e(panel) {
  150. width: 88px;
  151. flex: 0 0 auto;
  152. display: inline-block;
  153. padding: $-action-sheet-panel-padding;
  154. }
  155. @include e(panel-img) {
  156. display: block;
  157. width: $-action-sheet-panel-img-fs;
  158. height: $-action-sheet-panel-img-fs;
  159. margin: 0 auto;
  160. margin-bottom: 7px;
  161. border-radius: $-action-sheet-panel-img-radius;
  162. }
  163. @include e(panel-title) {
  164. font-size: $-action-sheet-subname-fs;
  165. line-height: 1.2;
  166. text-align: center;
  167. color: $-action-sheet-color;
  168. @include lineEllipsis;
  169. }
  170. }