index.wxss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. .wux-fab-button {
  2. position: fixed;
  3. z-index: 1020
  4. }
  5. .wux-fab-button--center {
  6. left: 50%;
  7. top: 50%;
  8. transform: translate3d(-50%,-50%,0)
  9. }
  10. .wux-fab-button--topLeft {
  11. left: 30rpx;
  12. top: 30rpx
  13. }
  14. .wux-fab-button--topRight {
  15. right: 30rpx;
  16. top: 30rpx
  17. }
  18. .wux-fab-button--bottomLeft {
  19. left: 30rpx;
  20. bottom: 30rpx
  21. }
  22. .wux-fab-button--bottomRight {
  23. right: 30rpx;
  24. bottom: 30rpx
  25. }
  26. .wux-fab-button--vertical.wux-fab-button--bottomLeft .wux-fab-button__label,
  27. .wux-fab-button--vertical.wux-fab-button--topLeft .wux-fab-button__label {
  28. left: 120rpx
  29. }
  30. .wux-fab-button--vertical.wux-fab-button--bottomRight .wux-fab-button__label,
  31. .wux-fab-button--vertical.wux-fab-button--center .wux-fab-button__label,
  32. .wux-fab-button--vertical.wux-fab-button--topRight .wux-fab-button__label {
  33. right: 120rpx
  34. }
  35. .wux-fab-button__action {
  36. width: 100rpx;
  37. height: 100rpx;
  38. border-radius: 50%;
  39. z-index: 1020;
  40. background-color: #33cd5f;
  41. color: #fff;
  42. overflow: visible;
  43. transition-duration: .3s;
  44. display: flex;
  45. align-items: center;
  46. justify-content: center;
  47. box-shadow: 0 0 8rpx rgba(0,0,0,.14),0 8rpx 16rpx rgba(0,0,0,.28);
  48. right: 0;
  49. bottom: 0;
  50. position: relative
  51. }
  52. .wux-fab-button__action--hover {
  53. transition-duration: 0s;
  54. opacity: .8!important
  55. }
  56. .wux-fab-button__action--hide-shadow {
  57. box-shadow: none!important
  58. }
  59. .wux-fab-button__icon {
  60. display: inline-block;
  61. width: 40rpx;
  62. height: 40rpx;
  63. font-size: 40rpx;
  64. line-height: 1
  65. }
  66. .wux-fab-button__text {
  67. display: inline-block;
  68. width: 40rpx;
  69. height: 40rpx;
  70. font-size: 40rpx;
  71. line-height: 1;
  72. transition: transform 150ms cubic-bezier(.4,0,1,1)
  73. }
  74. .wux-fab-button__text--rotate {
  75. transform: scale(1) rotate(135deg)
  76. }
  77. .wux-fab-button__button {
  78. padding: 0;
  79. margin: 0;
  80. border-radius: 0;
  81. color: inherit!important;
  82. background: 0 0!important;
  83. font-size: inherit;
  84. font-weight: 400;
  85. line-height: inherit;
  86. text-align: inherit;
  87. text-decoration: none;
  88. min-height: 0!important;
  89. width: auto!important;
  90. box-sizing: border-box;
  91. -webkit-tap-highlight-color: transparent;
  92. color: #fff!important;
  93. border-radius: 50%;
  94. overflow: visible;
  95. background-color: #33cd5f!important;
  96. transition-duration: .3s;
  97. display: flex;
  98. align-items: center;
  99. justify-content: center;
  100. box-shadow: 0 0 8rpx rgba(0,0,0,.14),0 8rpx 16rpx rgba(0,0,0,.28);
  101. position: absolute;
  102. top: 0;
  103. left: 0;
  104. opacity: 0;
  105. z-index: 2;
  106. width: 100%!important;
  107. height: 100%
  108. }
  109. .wux-fab-button__button::after {
  110. display: block;
  111. position: static;
  112. top: auto;
  113. left: auto;
  114. width: auto;
  115. height: auto;
  116. border: none;
  117. border-radius: 0;
  118. transform: none;
  119. transform-origin: 0 0
  120. }
  121. .wux-fab-button__button--hover {
  122. transition-duration: 0s;
  123. opacity: .8!important
  124. }
  125. .wux-fab-button__button--disabled {
  126. opacity: .3!important
  127. }
  128. .wux-fab-button__button--hide-shadow {
  129. box-shadow: none!important
  130. }
  131. .wux-fab-button__label {
  132. position: absolute;
  133. top: 50%;
  134. padding: 8rpx 20rpx;
  135. font-size: 24rpx;
  136. background: rgba(0,0,0,.4);
  137. border-radius: 8rpx;
  138. color: rgba(255,255,255,.85);
  139. pointer-events: none;
  140. white-space: nowrap;
  141. opacity: 0;
  142. box-sizing: border-box;
  143. transform: translate3d(0,-50%,0);
  144. transition: all .3s
  145. }
  146. .wux-fab-button--vertical.wux-fab-button--opened .wux-fab-button__label {
  147. opacity: 1
  148. }
  149. .wux-fab-button__backdrop {
  150. position: fixed;
  151. z-index: 1000;
  152. top: 0;
  153. right: 0;
  154. left: 0;
  155. bottom: 0;
  156. background: 0 0
  157. }
  158. .wux-fab-button--light .wux-fab-button__action,
  159. .wux-fab-button--light .wux-fab-button__button,
  160. .wux-fab-button--light .wux-fab-button__button--disabled {
  161. background-color: #ddd!important
  162. }
  163. .wux-fab-button--stable .wux-fab-button__action,
  164. .wux-fab-button--stable .wux-fab-button__button,
  165. .wux-fab-button--stable .wux-fab-button__button--disabled {
  166. background-color: #b2b2b2!important
  167. }
  168. .wux-fab-button--positive .wux-fab-button__action,
  169. .wux-fab-button--positive .wux-fab-button__button,
  170. .wux-fab-button--positive .wux-fab-button__button--disabled {
  171. background-color: #387ef5!important
  172. }
  173. .wux-fab-button--calm .wux-fab-button__action,
  174. .wux-fab-button--calm .wux-fab-button__button,
  175. .wux-fab-button--calm .wux-fab-button__button--disabled {
  176. background-color: #11c1f3!important
  177. }
  178. .wux-fab-button--assertive .wux-fab-button__action,
  179. .wux-fab-button--assertive .wux-fab-button__button,
  180. .wux-fab-button--assertive .wux-fab-button__button--disabled {
  181. background-color: #ef473a!important
  182. }
  183. .wux-fab-button--balanced .wux-fab-button__action,
  184. .wux-fab-button--balanced .wux-fab-button__button,
  185. .wux-fab-button--balanced .wux-fab-button__button--disabled {
  186. background-color: #33cd5f!important
  187. }
  188. .wux-fab-button--energized .wux-fab-button__action,
  189. .wux-fab-button--energized .wux-fab-button__button,
  190. .wux-fab-button--energized .wux-fab-button__button--disabled {
  191. background-color: #ffc900!important
  192. }
  193. .wux-fab-button--royal .wux-fab-button__action,
  194. .wux-fab-button--royal .wux-fab-button__button,
  195. .wux-fab-button--royal .wux-fab-button__button--disabled {
  196. background-color: #886aea!important
  197. }
  198. .wux-fab-button--dark .wux-fab-button__action,
  199. .wux-fab-button--dark .wux-fab-button__button,
  200. .wux-fab-button--dark .wux-fab-button__button--disabled {
  201. background-color: #444!important
  202. }