charging.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. >>> ax-custom-title {
  2. z-index: 9999 !important;
  3. }
  4. .page-background {
  5. display: block;
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. width: 100%;
  10. height: 100%;
  11. }
  12. .body {
  13. display: flex;
  14. flex-direction: column;
  15. width: 100%;
  16. height: 100%;
  17. position: relative;
  18. z-index: 1;
  19. }
  20. /* 退出中 */
  21. .exiting {
  22. content: "正在结束";
  23. display: flex;
  24. align-items: center;
  25. justify-content: center;
  26. color: #fff;
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. width: 100%;
  31. height: 100%;
  32. font-size: 14px;
  33. overflow: hidden;
  34. z-index: 999999;
  35. }
  36. .exiting.lock {
  37. color: #3eb6f8;
  38. }
  39. .exiting .icon {
  40. display: flex;
  41. align-items: center;
  42. justify-content: center;
  43. font-size: 14vw;
  44. margin-bottom: 10px;
  45. color: inherit;
  46. }
  47. @keyframes show-long-press {
  48. 0% {
  49. opacity: 0;
  50. }
  51. 100% {
  52. opacity: 1;
  53. }
  54. }
  55. .exiting > .mask {
  56. position: fixed;
  57. top: 0;
  58. left: 0;
  59. width: 100%;
  60. height: 100%;
  61. background-color: rgba(0, 0, 0, 0.45);
  62. backdrop-filter: blur(10px);
  63. transform-origin: top;
  64. animation: show-long-press 300ms ease;
  65. }
  66. .exiting > .contet {
  67. position: relative;
  68. z-index: 1;
  69. }
  70. .exiting .exiting-title {
  71. font-weight: bold;
  72. font-size: 18px;
  73. transform: translateY(-100%);
  74. }
  75. .exiting .close {
  76. transform: translateY(150%);
  77. border: 1px solid #fff;
  78. border-radius: 100px;
  79. padding: 5px 15px;
  80. }
  81. /* 计时器 */
  82. .timer {
  83. text-align: center;
  84. }
  85. .timer .value {
  86. color: #3eb6f8;
  87. font-size: 30px;
  88. font-weight: bold;
  89. }
  90. .timer .name {
  91. font-weight: bold;
  92. margin-top: 5px;
  93. }
  94. /* 主图 */
  95. .host-graph {
  96. margin-top: 20px;
  97. height: 800rpx;
  98. }
  99. .host-graph .image {
  100. margin-left: -180rpx;
  101. width: 80vw;
  102. }
  103. /* 主参数 */
  104. .parameter-info-box {
  105. background: linear-gradient(
  106. 180deg,
  107. rgba(255, 255, 255, 0) 0%,
  108. rgba(255, 255, 255, 0.72) 43%,
  109. #ffffff 100%
  110. );
  111. border-radius: 32rpx;
  112. margin: 20rpx;
  113. }
  114. .parameter {
  115. display: flex;
  116. align-items: center;
  117. justify-content: space-between;
  118. padding: 0 10px;
  119. margin: 0 20px;
  120. margin-top: 10px;
  121. }
  122. .parameter .param {
  123. display: flex;
  124. align-items: center;
  125. justify-content: center;
  126. flex-direction: column;
  127. }
  128. .parameter .param .value {
  129. margin-top: 24rpx;
  130. font-size: 20px;
  131. /* font-weight: bold; */
  132. }
  133. .parameter .param .name {
  134. font-size: 14px;
  135. color: #aaa;
  136. margin-top: 7px;
  137. }
  138. .end-charge-box {
  139. }
  140. .end-charge {
  141. margin: auto;
  142. margin-top: 32rpx;
  143. margin-bottom: 36rpx;
  144. width: 192rpx;
  145. height: 76rpx;
  146. background: linear-gradient(99deg, #8ff8fb 0%, #47aeff 100%);
  147. border-radius: 16rpx;
  148. font-weight: 800;
  149. font-size: 28rpx;
  150. color: #2b303a;
  151. text-align: center;
  152. line-height: 76rpx;
  153. }
  154. .end-charge::after {
  155. display: none;
  156. }
  157. /* 统计栏 */
  158. .statbar {
  159. display: flex;
  160. align-items: center;
  161. justify-content: space-around;
  162. height: 80px;
  163. padding: 0 10px;
  164. border-radius: 8px;
  165. margin: 15px 20px;
  166. background-color: #f2f8ff;
  167. box-shadow: 0 3px 6px rgba(122, 168, 222, 0.3);
  168. /* overflow: hidden; */
  169. position: relative;
  170. }
  171. .statbar::before {
  172. content: "";
  173. position: absolute;
  174. top: 0;
  175. left: 0;
  176. right: 0;
  177. bottom: 0;
  178. box-shadow: 0 8px 8px #fff inset;
  179. }
  180. .statbar .sta {
  181. display: flex;
  182. align-items: center;
  183. justify-content: center;
  184. flex-direction: column;
  185. }
  186. .statbar .sta .value {
  187. color: #3eb6f8;
  188. font-size: 24px;
  189. font-weight: bold;
  190. }
  191. .statbar .sta .name {
  192. font-size: 14px;
  193. font-weight: bold;
  194. }
  195. .split {
  196. display: block;
  197. height: 60rpx;
  198. border-left: 1px solid #e5f1ff;
  199. }
  200. /* 主信息 */
  201. .info {
  202. flex: 1;
  203. display: flex;
  204. flex-direction: column;
  205. background-color: #fff;
  206. border-radius: 16px 16px 0 0;
  207. padding: 10px;
  208. box-sizing: border-box;
  209. }
  210. .info .cell {
  211. display: flex;
  212. align-items: center;
  213. justify-content: space-between;
  214. font-size: 14px;
  215. height: 32px;
  216. padding: 0 10px;
  217. }
  218. .info .cell .contet {
  219. color: #aaa;
  220. }
  221. .info .tips {
  222. flex: 1;
  223. display: flex;
  224. align-items: center;
  225. justify-content: center;
  226. font-size: 12px;
  227. color: #aaa;
  228. }
  229. .info .end {
  230. display: flex;
  231. align-items: center;
  232. justify-content: center;
  233. font-size: 14px;
  234. border-radius: 8px;
  235. height: 50px;
  236. background: linear-gradient(to right, #8ff8fb, #47aeff);
  237. }
  238. .info .end::after {
  239. display: none;
  240. }
  241. .info .end[disabled] {
  242. background: #ddd;
  243. color: #aaa;
  244. }
  245. .countdown-ring {
  246. --countdown-ring-size: 150px;
  247. --countdown-ring-color: var(--color-red);
  248. --countdown-ring-duration: 2s;
  249. display: flex;
  250. width: var(--countdown-ring-size);
  251. height: var(--countdown-ring-size);
  252. border-radius: 100%;
  253. position: relative;
  254. }
  255. .countdown-ring > ._button {
  256. display: flex;
  257. align-items: center;
  258. justify-content: center;
  259. flex-direction: column;
  260. flex-wrap: wrap;
  261. width: calc(var(--countdown-ring-size) - 35px);
  262. height: calc(var(--countdown-ring-size) - 35px);
  263. color: #fff;
  264. font-size: 18px;
  265. font-weight: bold;
  266. background-color: var(--countdown-ring-color);
  267. border-radius: 100%;
  268. position: absolute;
  269. top: 50%;
  270. left: 50%;
  271. transform: translate(-50%, -50%);
  272. }
  273. .countdown-ring > ._half {
  274. flex: 1;
  275. height: var(--countdown-ring-size);
  276. overflow: hidden;
  277. position: relative;
  278. z-index: 1;
  279. }
  280. .countdown-ring > ._half::after {
  281. content: "";
  282. display: block;
  283. width: var(--countdown-ring-size);
  284. height: var(--countdown-ring-size);
  285. border: 8px solid transparent;
  286. border-radius: 100%;
  287. box-sizing: border-box;
  288. position: absolute;
  289. top: 0;
  290. transform: rotate(-135deg);
  291. }
  292. .countdown-ring > ._half.left::after {
  293. left: 0;
  294. border-bottom-color: var(--countdown-ring-color);
  295. border-left-color: var(--countdown-ring-color);
  296. }
  297. .countdown-ring > ._half.right::after {
  298. right: 0;
  299. border-top-color: var(--countdown-ring-color);
  300. border-right-color: var(--countdown-ring-color);
  301. }
  302. .countdown-ring.active > ._half.left::after {
  303. animation: show calc(var(--countdown-ring-duration) / 2) linear 1;
  304. animation-delay: calc(var(--countdown-ring-duration) / 2);
  305. animation-fill-mode: forwards;
  306. }
  307. .countdown-ring.active > ._half.right::after {
  308. transform: rotate(45deg);
  309. animation: show calc(var(--countdown-ring-duration) / 2) linear 1;
  310. }
  311. @keyframes show {
  312. 0% {
  313. transform: rotate(-135deg);
  314. }
  315. 100% {
  316. transform: rotate(45deg);
  317. }
  318. }