detail.module.less 10 KB

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