index.module.less 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. :global(.eyeProtection) {
  2. .container {
  3. background: var(--eye-background-color) !important;
  4. }
  5. }
  6. .container {
  7. position: fixed;
  8. z-index: 9;
  9. top: 0;
  10. right: 0;
  11. left: 0;
  12. display: flex;
  13. align-items: center;
  14. justify-content: center;
  15. height: 28px;
  16. box-sizing: border-box;
  17. padding: 0 16px;
  18. background: #fff;
  19. }
  20. .moreButton {
  21. display: flex;
  22. justify-content: flex-end;
  23. .button {
  24. margin: 0;
  25. }
  26. }
  27. .centerButton {
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. margin: 0 auto;
  32. }
  33. .leftButton {
  34. display: flex;
  35. align-items: center;
  36. .titleWrap {
  37. margin-left: 6px;
  38. }
  39. .title {
  40. max-width: 20vw;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. white-space: nowrap;
  44. font-size: 10px;
  45. color: #985131;
  46. }
  47. .album {
  48. font-size: 6px;
  49. color: #ab7f6a;
  50. }
  51. }
  52. .button {
  53. height: auto;
  54. line-height: normal;
  55. padding: 0;
  56. margin: 0;
  57. border: none;
  58. background: none;
  59. font-size: 0;
  60. &.hasText {
  61. color: #777;
  62. font-size: 5px;
  63. padding: 0 4.5px;
  64. white-space: nowrap;
  65. img {
  66. width: 13px;
  67. height: 13px;
  68. display: block;
  69. }
  70. :global {
  71. .van-button__text{
  72. display: flex;
  73. align-items: center;
  74. flex-direction: column;
  75. }
  76. }
  77. }
  78. &.bigIcon {
  79. img {
  80. width: 25px;
  81. height: 14px;
  82. display: block;
  83. margin: auto;
  84. margin-bottom: 1px;
  85. }
  86. }
  87. }
  88. .evaluatBtn {
  89. width: 54px;
  90. }
  91. .start {
  92. width: 75px;
  93. height: 75px;
  94. background-color: transparent;
  95. background-size: 100%;
  96. background-position: center;
  97. color: #fff;
  98. border-radius: 100%;
  99. position: fixed;
  100. top: 50%;
  101. left: 50%;
  102. margin-top: 10vh;
  103. transform: translate(-50%, -50%);
  104. font-size: 12px;
  105. }
  106. .icon {
  107. width: 100%;
  108. }
  109. .onShow {
  110. transform: translateY(0);
  111. }
  112. .popover {
  113. :global(.van-popover__content) {
  114. border-radius: 3px !important;
  115. }
  116. :global {
  117. .van-popover__arrow {
  118. bottom: 3px;
  119. border-width: 4px !important;
  120. }
  121. }
  122. }
  123. .backbtn {
  124. width: 15px;
  125. height: 15px;
  126. }
  127. .speed {
  128. display: block;
  129. > div {
  130. padding: 2px;
  131. }
  132. :global {
  133. .van-slider__button-wrapper {
  134. background: #ffe8b1;
  135. border-radius: 20px;
  136. border: 1px solid #ffffff;
  137. padding: 2px 4px;
  138. > div {
  139. background-color: transparent !important;
  140. }
  141. span {
  142. color: #f67146 !important;
  143. }
  144. }
  145. .van-slider {
  146. background-color: #ffd571 !important;
  147. margin-top: 2px !important;
  148. margin-bottom: 2px !important;
  149. min-height: 35vh;
  150. }
  151. .van-button {
  152. width: 10px !important;
  153. height: 10px !important;
  154. background-color: transparent !important;
  155. border: none !important;
  156. margin-left: 0 !important;
  157. &:last-child {
  158. margin-top: 4px;
  159. }
  160. }
  161. .van-button__icon,
  162. img {
  163. width: 10px !important;
  164. height: 10px !important;
  165. }
  166. }
  167. }
  168. .schedule {
  169. position: relative;
  170. circle {
  171. display: block;
  172. }
  173. .ring {
  174. position: absolute;
  175. left: 0;
  176. top: 0;
  177. transform-origin: center;
  178. transform: rotate(-90deg);
  179. display: flex;
  180. width: 100%;
  181. height: 100%;
  182. }
  183. }
  184. .speedButton {
  185. position: relative;
  186. .label {
  187. position: absolute;
  188. font-size: 4px;
  189. padding: 0 2px;
  190. color: var(--primary-color);
  191. background: #ffe8b1;
  192. border-radius: 10px;
  193. border: .5px solid #ffffff;
  194. right: 0;
  195. top: 0;
  196. }
  197. }
  198. .player {
  199. position: fixed;
  200. z-index: 8;
  201. bottom: 10px;
  202. right: 16px;
  203. display: inline-block;
  204. z-index: 9;
  205. }
  206. .fullbtn {
  207. :global {
  208. .van-button__text {
  209. width: 20px;
  210. height: 20px;
  211. > div,
  212. img {
  213. width: 20px;
  214. height: 20px;
  215. }
  216. }
  217. }
  218. }
  219. .finish {
  220. background-color: transparent;
  221. background-size: 100%;
  222. background-position: center;
  223. width: 67px;
  224. height: 23px;
  225. border-radius: 12px;
  226. border: none;
  227. color: #6f4900;
  228. font-size: 9px;
  229. }
  230. :global {
  231. .start-enter-active,
  232. .start-leave-active {
  233. transition: all 0.5s ease-out;
  234. }
  235. .start-enter-from {
  236. opacity: 0;
  237. }
  238. .start-enter-to {
  239. opacity: 1;
  240. }
  241. .start-leave-from {
  242. opacity: 1;
  243. }
  244. .start-leave-to {
  245. margin-top: -100px;
  246. margin-left: -30px;
  247. opacity: 0;
  248. transform: scale(0.1);
  249. border-radius: 0;
  250. }
  251. .finish-enter-active,
  252. .finish-leave-active {
  253. transition: all 0.5s ease-out;
  254. }
  255. .finish-enter-from {
  256. transform: scale(0.1);
  257. opacity: 0;
  258. }
  259. .finish-enter-to {
  260. opacity: 1;
  261. transform: scale(1);
  262. }
  263. .finish-leave-from {
  264. opacity: 1;
  265. }
  266. .finish-leave-to {
  267. opacity: 0;
  268. transform: scale(0.1);
  269. }
  270. }
  271. .dialogueBox {
  272. position: fixed;
  273. bottom: 0;
  274. right: 0;
  275. z-index: 9;
  276. display: flex;
  277. flex-direction: column;
  278. align-items: flex-end;
  279. .dialogue {
  280. position: fixed;
  281. bottom: 56px;
  282. }
  283. .dialogue > div {
  284. width: 96px;
  285. height: 32px;
  286. background: url('./icons/task-bg.svg') no-repeat center;
  287. background-size: cover;
  288. margin-right: 10px;
  289. color: #fff;
  290. font-size: 6px;
  291. line-height: 8px;
  292. padding: 4px;
  293. padding-top: 6px;
  294. box-sizing: border-box;
  295. }
  296. .dialogueIcon {
  297. width: 50px;
  298. height: 56px;
  299. margin-right: 14px;
  300. }
  301. .inRadioIcon {
  302. width: 66px;
  303. height: 72px;
  304. margin-right: 6px;
  305. }
  306. }
  307. .inRadio {
  308. width: 32px;
  309. height: 14px;
  310. font-size: 6px;
  311. background: linear-gradient(180deg, #ff975b, #ff6a3a);
  312. border-radius: 7px;
  313. border: 1px solid #ffffff;
  314. color: #fff;
  315. line-height: 12px;
  316. box-sizing: border-box;
  317. text-align: center;
  318. position: fixed;
  319. bottom: 0.12rem;
  320. right: 1.2rem;
  321. z-index: 9;
  322. }
  323. .animation {
  324. width: 80px;
  325. height: 67px;
  326. margin-right: 0;
  327. }
  328. .btnMusicList {
  329. position: fixed;
  330. right: 0;
  331. top: 50%;
  332. transform: translateY(-50%);
  333. z-index: 10;
  334. margin: 0;
  335. width: 40px;
  336. img {
  337. width: 100%;
  338. }
  339. }
  340. .toggleMusicType {
  341. :global {
  342. .van-popover__content {
  343. padding: 4px 0;
  344. border-radius: 8px;
  345. }
  346. .van-popover__action {
  347. width: 60px;
  348. height: 20px;
  349. padding: 0 6px;
  350. & > img {
  351. width: 14px;
  352. margin-right: 8px;
  353. }
  354. }
  355. .action-text {
  356. flex: 1;
  357. font-size: 5px;
  358. text-align: justify;
  359. text-align-last: justify;
  360. text-justify: distribute-all-lines; // 这行必加,兼容ie浏览器
  361. &::before,
  362. &::after {
  363. display: inline-block; /*行内元素*/
  364. content: '';
  365. width: 100%; /*可以挤掉文字,保证不跟文字在同一行*/
  366. height: 0;
  367. visibility: hidden;
  368. }
  369. }
  370. .action-active {
  371. color: var(--primary-color);
  372. }
  373. }
  374. }
  375. .slider {
  376. width: 28px;
  377. color: #fff;
  378. font-size: 8px;
  379. line-height: 16px;
  380. text-align: center;
  381. background-color: var(--van-primary-color);
  382. border-radius: 20px;
  383. }
  384. :global(.van-popup.van-popover.cameraPopover) {
  385. width: 300px;
  386. :global {
  387. .van-popover__arrow {
  388. right: 6px;
  389. border-width: 4px;
  390. }
  391. .van-cell {
  392. padding: 10px 16px;
  393. line-height: 24px;
  394. }
  395. .van-switch {
  396. font-size: 16px !important;
  397. }
  398. .cameraOpacity {
  399. .van-cell__value {
  400. flex: 2;
  401. overflow: visible;
  402. }
  403. }
  404. }
  405. }
  406. .followEndBtn {
  407. background-color: transparent;
  408. background-size: 100%;
  409. background-position: center;
  410. color: #fff;
  411. }