detail.module.less 10 KB

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