charging.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. }
  94. .host-graph .image{
  95. width: 60vw;
  96. }
  97. /* 主参数 */
  98. .parameter{
  99. display: flex;
  100. align-items: center;
  101. justify-content: space-between;
  102. padding: 0 10px;
  103. margin: 0 20px;
  104. margin-top: 10px;
  105. }
  106. .parameter .param{
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. flex-direction: column;
  111. }
  112. .parameter .param .value{
  113. font-size: 20px;
  114. font-weight: bold;
  115. }
  116. .parameter .param .name{
  117. font-size: 14px;
  118. color: #aaa;
  119. margin-top: 7px;
  120. }
  121. /* 统计栏 */
  122. .statbar{
  123. display: flex;
  124. align-items: center;
  125. justify-content: space-around;
  126. height: 80px;
  127. padding: 0 10px;
  128. border-radius: 8px;
  129. margin: 15px 20px;
  130. background-color: #F2F8FF;
  131. box-shadow: 0 3px 6px rgba(122, 168, 222, 0.3);
  132. /* overflow: hidden; */
  133. position: relative;
  134. }
  135. .statbar::before{
  136. content: '';
  137. position: absolute;
  138. top: 0;
  139. left: 0;
  140. right: 0;
  141. bottom: 0;
  142. box-shadow: 0 8px 8px #fff inset;
  143. }
  144. .statbar .sta{
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. flex-direction: column;
  149. }
  150. .statbar .sta .value{
  151. color: #3EB6F8;
  152. font-size: 24px;
  153. font-weight: bold;
  154. }
  155. .statbar .sta .name{
  156. font-size: 14px;
  157. font-weight: bold;
  158. }
  159. .statbar .split{
  160. display: block;
  161. height: 58px;
  162. border-left: 1px solid #E5F1FF;
  163. }
  164. /* 主信息 */
  165. .info{
  166. flex: 1;
  167. display: flex;
  168. flex-direction: column;
  169. background-color: #fff;
  170. border-radius: 16px 16px 0 0;
  171. padding: 10px;
  172. box-sizing: border-box;
  173. }
  174. .info .cell{
  175. display: flex;
  176. align-items: center;
  177. justify-content: space-between;
  178. font-size: 14px;
  179. height: 32px;
  180. padding: 0 10px;
  181. }
  182. .info .cell .contet{
  183. color: #aaa;
  184. }
  185. .info .tips{
  186. flex: 1;
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. font-size: 12px;
  191. color: #aaa;
  192. }
  193. .info .end{
  194. display: flex;
  195. align-items: center;
  196. justify-content: center;
  197. font-size: 14px;
  198. border-radius: 8px;
  199. height: 50px;
  200. background: linear-gradient(to right,#8FF8FB,#47AEFF);
  201. }
  202. .info .end::after{
  203. display: none;
  204. }
  205. .info .end[disabled]{
  206. background: #ddd;
  207. color: #aaa;
  208. }
  209. .countdown-ring{
  210. --countdown-ring-size: 150px;
  211. --countdown-ring-color: var(--color-red);
  212. --countdown-ring-duration: 2s;
  213. display: flex;
  214. width: var(--countdown-ring-size);
  215. height: var(--countdown-ring-size);
  216. border-radius: 100%;
  217. position: relative;
  218. }
  219. .countdown-ring > ._button{
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. flex-direction: column;
  224. flex-wrap: wrap;
  225. width: calc(var(--countdown-ring-size) - 35px);
  226. height: calc(var(--countdown-ring-size) - 35px);
  227. color: #fff;
  228. font-size: 18px;
  229. font-weight: bold;
  230. background-color: var(--countdown-ring-color);
  231. border-radius: 100%;
  232. position: absolute;
  233. top: 50%;
  234. left: 50%;
  235. transform: translate(-50%,-50%);
  236. }
  237. .countdown-ring > ._half{
  238. flex: 1;
  239. height: var(--countdown-ring-size);
  240. overflow: hidden;
  241. position: relative;
  242. z-index: 1;
  243. }
  244. .countdown-ring > ._half::after{
  245. content: '';
  246. display: block;
  247. width: var(--countdown-ring-size);
  248. height: var(--countdown-ring-size);
  249. border: 8px solid transparent;
  250. border-radius: 100%;
  251. box-sizing: border-box;
  252. position: absolute;
  253. top: 0;
  254. transform: rotate(-135deg);
  255. }
  256. .countdown-ring > ._half.left::after{
  257. left: 0;
  258. border-bottom-color: var(--countdown-ring-color);
  259. border-left-color: var(--countdown-ring-color);
  260. }
  261. .countdown-ring > ._half.right::after{
  262. right: 0;
  263. border-top-color: var(--countdown-ring-color);
  264. border-right-color: var(--countdown-ring-color);
  265. }
  266. .countdown-ring.active > ._half.left::after{
  267. animation: show calc(var(--countdown-ring-duration) / 2) linear 1;
  268. animation-delay: calc(var(--countdown-ring-duration) / 2);
  269. animation-fill-mode: forwards;
  270. }
  271. .countdown-ring.active > ._half.right::after{
  272. transform: rotate(45deg);
  273. animation: show calc(var(--countdown-ring-duration) / 2) linear 1;
  274. }
  275. @keyframes show{
  276. 0%{
  277. transform: rotate(-135deg);
  278. }
  279. 100%{
  280. transform: rotate(45deg);
  281. }
  282. }