u-switch.wxss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @charset "UTF-8";
  2. /* 页面左右间距 */
  3. /* 文字尺寸 */
  4. /*文字颜色*/
  5. /* 边框颜色 */
  6. /*颜色*/
  7. /* 图片加载中颜色 */
  8. /* 行为相关颜色 */
  9. /* 功能栏字体大小 */
  10. /*功能栏左侧小图标*/
  11. .u-switch.data-v-7cafa8c0 {
  12. position: relative;
  13. display: inline-block;
  14. box-sizing: initial;
  15. width: 2em;
  16. height: 1em;
  17. background-color: #fff;
  18. border: 1px solid rgba(0, 0, 0, 0.1);
  19. border-radius: 1em;
  20. transition: background-color 0.3s;
  21. font-size: 50rpx;
  22. }
  23. .u-switch__node.data-v-7cafa8c0 {
  24. display: flex;
  25. flex-direction: row;
  26. align-items: center;
  27. justify-content: center;
  28. position: absolute;
  29. top: 0;
  30. left: 0;
  31. border-radius: 100%;
  32. z-index: 1;
  33. background-color: #fff;
  34. background-color: #fff;
  35. box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05);
  36. box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05);
  37. transition: -webkit-transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);
  38. transition: transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);
  39. transition: transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05), -webkit-transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);
  40. transition: -webkit-transform cubic-bezier(0.3, 1.05, 0.4, 1.05);
  41. transition: transform cubic-bezier(0.3, 1.05, 0.4, 1.05);
  42. transition: transform cubic-bezier(0.3, 1.05, 0.4, 1.05), -webkit-transform cubic-bezier(0.3, 1.05, 0.4, 1.05);
  43. transition: transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);
  44. }
  45. .u-switch__loading.data-v-7cafa8c0 {
  46. display: flex;
  47. flex-direction: row;
  48. align-items: center;
  49. justify-content: center;
  50. }
  51. .u-switch--on.data-v-7cafa8c0 {
  52. background-color: #1989fa;
  53. }
  54. .u-switch--on .u-switch__node.data-v-7cafa8c0 {
  55. -webkit-transform: translateX(100%);
  56. transform: translateX(100%);
  57. }
  58. .u-switch--disabled.data-v-7cafa8c0 {
  59. opacity: 0.4;
  60. }