云链智安app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index-u.scss 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @import '~@/uni_modules/lime-style/index.scss';
  2. $shadow: create-var(
  3. shadow,
  4. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  5. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  6. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  7. );
  8. $liquid-bg-color: create-var(liquid-bg-color, transprent);
  9. $liquid-size: create-var(liquid-size, 125px);
  10. $liquid-aspect-ratio: create-var(liquid-aspect-ratio, 1);
  11. $liquid-border-radius: create-var(liquid-border-radius, $border-radius-hg);
  12. $liquid-inner-border-radius: create-var(liquid-inner-border-radius, $liquid-border-radius);
  13. $liquid-wave-color: create-var(liquid-wave-color, $primary-color);
  14. $liquid-border-distance: create-var(liquid-border-distance, 6px);
  15. $liquid-border-width: create-var(liquid-border-width, 6px);
  16. $liquid-border-color: create-var(liquid-border-color, $primary-color);
  17. $liquid-inner-bg-color: create-var(liquid-inner-bg-color, rgba($primary-color, 0.1));
  18. .l-liquid {
  19. position: relative;
  20. border-radius: $liquid-border-radius;
  21. box-sizing: border-box;
  22. overflow: hidden;
  23. width: $liquid-size;
  24. height: $liquid-size;
  25. // aspect-ratio: $liquid-aspect-ratio;
  26. background: $liquid-bg-color;
  27. // background-color: rgba($primary-color, 0.1);
  28. display: flex;
  29. &--outline {
  30. padding: $liquid-border-distance;
  31. border: $liquid-border-width solid $liquid-border-color;
  32. // box-shadow: $shadow;
  33. }
  34. &__inner {
  35. position: relative;
  36. flex: 1;
  37. border-radius: $liquid-inner-border-radius;
  38. overflow: hidden;
  39. // justify-content: center;
  40. // align-items: center;
  41. background-color: $liquid-inner-bg-color;
  42. &-drawable{
  43. flex: 1;
  44. justify-content: center;
  45. align-items: center;
  46. }
  47. }
  48. /* #ifndef APP-ANDROID || APP-IOS || APP-NVUE */
  49. &__value {
  50. position: absolute;
  51. top: 0;
  52. left: 0;
  53. width: 100%;
  54. height: 100%;
  55. z-index: 1;
  56. display: flex;
  57. justify-content: center;
  58. align-items: center;
  59. }
  60. &__waves {
  61. position: absolute;
  62. left: 0;
  63. width: 100%;
  64. height: 100%;
  65. transform: translateY(var(--l-liquid-percent));
  66. overflow: visible;
  67. transition-property: transform;
  68. transition-duration: 200ms;
  69. }
  70. .wave {
  71. position: absolute;
  72. left: 0;
  73. top: 0;
  74. height: 200%;
  75. width: 200%;
  76. animation: wave 2500ms linear infinite;
  77. background: $liquid-wave-color;
  78. opacity: 1;
  79. clip-path: polygon(0% 50%, 2.22222% 51.472%, 4.44444% 52.4967%, 6.66667% 52.7626%, 8.88889% 52.1889%, 11.1111% 50.9501%, 13.3333% 49.4225%, 15.5556% 48.0704%, 17.7778% 47.3047%, 20% 47.3582%, 22.2222% 48.2145%, 24.4444% 49.6134%, 26.6667% 51.1298%, 28.8889% 52.3029%, 31.1111% 52.7761%, 33.3333% 52.4056%, 35.5556% 51.3041%, 37.7778% 49.8062%, 40% 48.3673%, 42.2222% 47.4245%, 44.4444% 47.2644%, 46.6667% 47.9357%, 48.8889% 49.2343%, 51.1111% 50.7657%, 53.3333% 52.0643%, 55.5556% 52.7356%, 57.7778% 52.5755%, 60% 51.6327%, 62.2222% 50.1938%, 64.4444% 48.6959%, 66.6667% 47.5944%, 68.8889% 47.2239%, 71.1111% 47.6971%, 73.3333% 48.8702%, 75.5556% 50.3866%, 77.7778% 51.7855%, 80% 52.6418%, 82.2222% 52.6953%, 84.4444% 51.9296%, 86.6667% 50.5775%, 88.8889% 49.0499%, 91.1111% 47.8111%, 93.3333% 47.2374%, 95.5556% 47.5033%, 97.7778% 48.528%, 100% 50%, 100% 100%, 0% 100%, 0% 0%);
  80. &.two {
  81. opacity: 0.3;
  82. animation: wave 2500ms linear -612ms infinite;
  83. }
  84. }
  85. /* #endif */
  86. }
  87. /* #ifndef APP-ANDROID || APP-IOS || APP-NVUE */
  88. @keyframes wave {
  89. to {
  90. transform: translateX(-50%);
  91. }
  92. }
  93. /* #endif */