charging.css 5.7 KB

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