detail.module.less 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. .iconBack {
  6. width: 36px;
  7. height: 36px;
  8. }
  9. :global {
  10. .n-breadcrumb>ul {
  11. display: flex;
  12. align-items: center;
  13. .n-breadcrumb-item {
  14. display: flex;
  15. align-items: center;
  16. }
  17. .n-breadcrumb-item__separator {
  18. display: none;
  19. }
  20. .n-breadcrumb-item__link {
  21. padding: 5px 18px;
  22. background: #FFFFFF;
  23. border-radius: 16px;
  24. color: #21225D;
  25. line-height: 20px;
  26. }
  27. }
  28. .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link {
  29. color: #fff;
  30. background: var(--product-color);
  31. }
  32. .highlight {
  33. color: #0378EC;
  34. background-color: #E1F0FF;
  35. }
  36. .speak-label {
  37. cursor: pointer;
  38. }
  39. }
  40. &> :global(.n-space) {
  41. height: 36px;
  42. flex-shrink: 0;
  43. }
  44. .separator {
  45. width: 9px;
  46. height: 15px;
  47. margin: 0 16px;
  48. }
  49. }
  50. .wrap {
  51. padding-top: 15px;
  52. flex: 1;
  53. transition: padding .3s;
  54. overflow: hidden;
  55. &.wrapBottom {
  56. padding-bottom: 108px;
  57. }
  58. }
  59. .content {
  60. display: flex;
  61. flex-direction: column;
  62. height: 100%;
  63. background: #DDF2FF;
  64. border-radius: 20px;
  65. // max-height: 90vh;
  66. }
  67. .tools {
  68. padding: 20px;
  69. display: flex;
  70. align-items: center;
  71. flex-shrink: 0;
  72. :global {
  73. .n-input {
  74. margin-left: auto;
  75. width: 361px;
  76. }
  77. .n-input__input-el {
  78. height: 100%;
  79. line-height: 100%;
  80. }
  81. }
  82. }
  83. .contentWrap {
  84. position: relative;
  85. flex: 1;
  86. display: flex;
  87. padding: 20px 55px 20px 20px;
  88. overflow: hidden;
  89. gap: 0 32px;
  90. }
  91. .musicList {
  92. background-color: #fff;
  93. border-radius: 16px;
  94. width: 470px;
  95. min-width: 294px;
  96. height: 100%;
  97. overflow-x: hidden;
  98. overflow-y: auto;
  99. min-width: 330Px;
  100. &::-webkit-scrollbar {
  101. width: 0;
  102. display: none;
  103. }
  104. .instrumentGroup {
  105. padding-top: 27px;
  106. padding-bottom: 20px;
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. flex-direction: column;
  111. .instrumentImg {
  112. width: 125px;
  113. height: 125px;
  114. overflow: hidden;
  115. border-radius: 50%;
  116. &.otherImg {
  117. width: 125px;
  118. height: 143px;
  119. }
  120. img {
  121. width: 100%;
  122. }
  123. }
  124. .instrumentName {
  125. padding: 13px 0 5px;
  126. font-size: max(18px, 14Px);
  127. font-weight: 600;
  128. color: #131415;
  129. line-height: 25px;
  130. letter-spacing: 1px;
  131. }
  132. .instrumentTag {
  133. font-size: max(13px, 12Px);
  134. color: #777777;
  135. line-height: 18px;
  136. }
  137. }
  138. .wrapList {
  139. width: 470px;
  140. padding: 0 17px;
  141. min-width: 294px;
  142. min-height: 100%;
  143. // background: #fff;
  144. border-radius: 16px;
  145. :global {
  146. .n-empty .n-empty__description {
  147. font-size: calc(14px, 12Px);
  148. }
  149. }
  150. .titlec {
  151. padding: 20px 0;
  152. font-size: max(18px, 14Px);
  153. font-weight: 600;
  154. color: #000000;
  155. line-height: 25px;
  156. border-top: 1px solid #F2F2F2;
  157. display: flex;
  158. align-items: center;
  159. }
  160. .icon2 {
  161. width: 23px;
  162. height: 23px;
  163. margin-right: 8px;
  164. background: url('../images/icon-2.png') no-repeat center;
  165. background-size: contain;
  166. }
  167. }
  168. .empty {
  169. display: flex;
  170. align-items: center;
  171. justify-content: center;
  172. height: 50vh;
  173. // height: 100%;
  174. }
  175. }
  176. .itemContainer {
  177. width: 100%;
  178. border-radius: 16px;
  179. padding: 4px 8px;
  180. // background-color: #fff;
  181. &:first-child {
  182. padding-top: 8px;
  183. }
  184. &:last-child {
  185. // border-radius: 0 0 16px 16px;
  186. padding-bottom: 8px;
  187. }
  188. }
  189. .item {
  190. position: relative;
  191. display: flex;
  192. align-items: center;
  193. padding: 10px;
  194. border-radius: 12px;
  195. cursor: pointer;
  196. &:hover {
  197. background-color: rgba(0, 0, 0, .05);
  198. }
  199. &.active {
  200. background-color: #DDF2FF;
  201. .arrow {
  202. opacity: 1;
  203. }
  204. }
  205. .img {
  206. position: relative;
  207. width: 60px;
  208. height: 60px;
  209. border-radius: 18px;
  210. margin-right: 12px;
  211. overflow: hidden;
  212. flex-shrink: 0;
  213. :global {
  214. .n-image {
  215. width: 60px;
  216. height: 60px;
  217. }
  218. }
  219. img {
  220. transition: opacity .3s;
  221. opacity: 0;
  222. height: 100%;
  223. width: 100%;
  224. }
  225. img[data-loaded="true"] {
  226. opacity: 1;
  227. }
  228. }
  229. .title {
  230. flex: 1;
  231. overflow: hidden;
  232. display: flex;
  233. flex-direction: column;
  234. align-items: flex-start;
  235. .titleName {
  236. font-size: calc(17px, 12Px);
  237. font-weight: 600;
  238. color: #131415;
  239. line-height: 28px;
  240. width: 100%;
  241. }
  242. .titleDes {
  243. font-size: 14px;
  244. font-weight: 400;
  245. color: #777777;
  246. line-height: 20px;
  247. max-width: 100%;
  248. white-space: nowrap;
  249. text-overflow: ellipsis;
  250. overflow: hidden;
  251. }
  252. }
  253. .btn {
  254. margin-left: auto;
  255. width: 84px;
  256. height: 40px;
  257. background: linear-gradient(to right, #44CAFF, #259DFE);
  258. border: none;
  259. padding: 0;
  260. font-weight: bold !important;
  261. flex-shrink: 0;
  262. min-width: 62px;
  263. min-height: 30px;
  264. :global {
  265. .n-button__content {
  266. &>img {
  267. margin-left: 10px;
  268. width: 9px;
  269. height: 12px;
  270. }
  271. }
  272. }
  273. }
  274. .arrow {
  275. position: absolute;
  276. top: 50%;
  277. right: 12px;
  278. transform: translate(124%, -50%);
  279. opacity: 0;
  280. }
  281. .showPlayLoading {
  282. opacity: 0;
  283. }
  284. }
  285. .loadingWrap {
  286. display: flex;
  287. justify-content: center;
  288. min-height: 80px;
  289. }
  290. .musicStaff {
  291. display: flex;
  292. flex-direction: column;
  293. position: relative;
  294. left: -8px;
  295. flex: 1;
  296. background-color: #fff;
  297. border-radius: 16px;
  298. // height: 100%;
  299. z-index: 1;
  300. overflow: hidden;
  301. &::-webkit-scrollbar {
  302. width: 0;
  303. display: none;
  304. }
  305. .musicTitle {
  306. padding: 27px 27px 13px;
  307. font-size: max(18px, 14Px);
  308. font-weight: 600;
  309. color: #000000;
  310. line-height: 25px;
  311. display: flex;
  312. align-items: center;
  313. justify-content: space-between;
  314. .musicTitleLeft {
  315. display: flex;
  316. align-items: center;
  317. }
  318. .icon1,
  319. .icon3 {
  320. display: inline-block;
  321. width: 23px;
  322. height: 23px;
  323. margin-right: 8px;
  324. background: url('../images/icon-1.png') no-repeat center;
  325. background-size: contain;
  326. }
  327. .icon3 {
  328. background: url('../images/icon-3.png') no-repeat center;
  329. background-size: contain;
  330. }
  331. .musicTitleRight {
  332. .textRead,
  333. .textClose {
  334. padding: 7px 8px;
  335. background: #E8F4FF;
  336. border-radius: 13px;
  337. font-weight: 500;
  338. font-size: max(13px, 12Px);
  339. color: #0378EC;
  340. line-height: 18px;
  341. display: flex;
  342. align-items: center;
  343. cursor: pointer;
  344. }
  345. .icon {
  346. display: inline-block;
  347. margin-right: 5px;
  348. width: 15px;
  349. height: 15px;
  350. }
  351. .textRead {
  352. .icon {
  353. background: url('../images/icon-speak-sound.png');
  354. background-size: contain;
  355. }
  356. }
  357. .textClose {
  358. .icon {
  359. background: url('../images/icon-speak-close.png');
  360. background-size: contain;
  361. }
  362. }
  363. }
  364. }
  365. .musicContent {
  366. flex: 1;
  367. overflow-y: auto;
  368. height: 100%;
  369. padding: 0 27px;
  370. user-select: text;
  371. position: relative;
  372. cursor: pointer;
  373. ::selection {
  374. background-color: #E1F0FF;
  375. }
  376. &>img {
  377. width: 100%;
  378. }
  379. section,
  380. &>div {
  381. font-size: inherit !important;
  382. }
  383. }
  384. }
  385. .staffImgs {
  386. flex: 1;
  387. overflow-y: auto;
  388. height: 100%;
  389. padding: 0 30px;
  390. &>img {
  391. width: 100%;
  392. }
  393. }
  394. :global {
  395. .van-fade-enter-active,
  396. .van-fade-leave-active {
  397. transition: all 0.3s;
  398. }
  399. .van-fade-enter-from,
  400. .van-fade-leave-to {
  401. opacity: 0;
  402. }
  403. }
  404. .changeSizeSection {
  405. position: absolute;
  406. right: 10px;
  407. bottom: 50%;
  408. width: 35px;
  409. transform: translate(0, 50%);
  410. background: #fff;
  411. border-radius: 7px;
  412. display: flex;
  413. align-items: center;
  414. flex-direction: column;
  415. padding: 13px 0;
  416. .iconT {
  417. width: 15px;
  418. height: 15px;
  419. }
  420. .iconAddT,
  421. .iconPlusT {
  422. width: 23px;
  423. height: 23px;
  424. cursor: pointer;
  425. }
  426. .iconAddT {
  427. margin-top: 13px;
  428. margin-bottom: 8px;
  429. }
  430. .iconPlusT {
  431. margin-top: 8px;
  432. }
  433. :global {
  434. .n-slider {
  435. height: 125px;
  436. --n-handle-size: 15px !important;
  437. --n-rail-height: 0 !important;
  438. }
  439. .n-slider.n-slider--vertical .n-slider-rail {
  440. border-radius: 10px;
  441. }
  442. .n-slider .n-slider-rail .n-slider-rail__fill {
  443. border-radius: 10px;
  444. }
  445. .n-slider.n-slider--vertical .n-slider-handles {
  446. top: 3px !important;
  447. bottom: 3px !important;
  448. }
  449. }
  450. }
  451. .selectionCouser {
  452. display: flex;
  453. align-items: center;
  454. position: absolute;
  455. &.hide {
  456. opacity: 0;
  457. visibility: hidden;
  458. }
  459. .textStart,
  460. .textReadOnly {
  461. cursor: pointer;
  462. background: #1A8CFF;
  463. border-radius: 13px;
  464. font-weight: 600;
  465. font-size: max(13px, 12Px);
  466. color: #FFFFFF;
  467. line-height: 18px;
  468. display: inline-flex;
  469. align-items: center;
  470. padding: 3px 8px;
  471. flex-shrink: 0;
  472. .icon {
  473. margin-left: 4px;
  474. display: inline-block;
  475. }
  476. }
  477. .textStart {
  478. .icon {
  479. width: 8px;
  480. height: 10px;
  481. background: url('../images/icon-speak-arrow.png') no-repeat center;
  482. background-size: contain;
  483. }
  484. }
  485. .textReadOnly {
  486. margin-left: 10px;
  487. .icon {
  488. width: 9px;
  489. height: 9px;
  490. background: url('../images/icon-speak-line.png') no-repeat center;
  491. background-size: contain;
  492. }
  493. }
  494. }