index.module.less 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 750px;
  5. background: #F1F5FF;
  6. border-radius: 0 0 12Px 12Px;
  7. padding-left: 27px;
  8. .iconBack {
  9. width: 36px;
  10. height: 36px;
  11. }
  12. .separator {
  13. width: 9px;
  14. height: 15px;
  15. margin: 0 16px;
  16. }
  17. }
  18. .containerDetail {
  19. display: flex;
  20. flex-direction: column;
  21. height: 75vh;
  22. // background: #F1F5FF;
  23. border-radius: 0 0 12Px 12Px;
  24. padding-left: 27px;
  25. &.detailPreview {
  26. height: 100%;
  27. background-color: #fff;
  28. // max-width: 1024px;
  29. margin: 0 auto;
  30. border-radius: 0;
  31. padding-left: 0;
  32. .contentWrap {
  33. width: 80%;
  34. margin: 0 auto;
  35. position: initial;
  36. }
  37. .changeSizeSection {
  38. right: 85px;
  39. }
  40. }
  41. }
  42. .wrap {
  43. padding-top: 15px;
  44. flex: 1;
  45. transition: padding .3s;
  46. overflow: hidden;
  47. &.wrapBottom {
  48. padding-bottom: 108px;
  49. }
  50. }
  51. .contentWrap {
  52. position: relative;
  53. flex: 1;
  54. display: flex;
  55. padding: 0 55px 0 0;
  56. overflow: hidden;
  57. gap: 0 16px;
  58. }
  59. .content {
  60. display: flex;
  61. flex-direction: column;
  62. height: 100%;
  63. border-radius: 20px;
  64. // max-height: 90vh;
  65. }
  66. .contentWrap {
  67. :global {
  68. .n-scrollbar-container {
  69. max-height: 100%;
  70. }
  71. }
  72. .scrollBar {
  73. margin: 17px 0;
  74. padding: 0 17px;
  75. // max-height: calc(100% - 64px - 52px - 36px);
  76. &.empty {
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. }
  81. }
  82. .directoryList {
  83. width: 350px;
  84. background: #FFFFFF;
  85. border-radius: 17px;
  86. flex-shrink: 0;
  87. height: 100%;
  88. overflow-x: hidden;
  89. overflow-y: auto;
  90. &::-webkit-scrollbar {
  91. width: 0;
  92. display: none;
  93. }
  94. }
  95. .treeParent {
  96. transition: height 1s ease-in-out;
  97. }
  98. .treeChild {
  99. line-height: 54px;
  100. }
  101. .treeItem {
  102. position: relative;
  103. display: flex;
  104. align-items: center;
  105. line-height: 54px;
  106. border-radius: 10px;
  107. padding: 0 0 0 15px;
  108. cursor: pointer;
  109. border-radius: 10px;
  110. font-size: max(15px, 13Px);
  111. // &:hover {
  112. // background: #EAEDF2;
  113. // }
  114. .title {
  115. padding-left: 8px;
  116. color: rgba(0, 0, 0, .5);
  117. display: flex;
  118. align-items: center;
  119. .dir {
  120. flex-shrink: 0;
  121. display: inline-block;
  122. width: 16px;
  123. height: 18px;
  124. background: url('../../../prepare-lessons/components/directory-main/images/icon-d.png') no-repeat center;
  125. background-size: contain;
  126. margin-right: 6px;
  127. }
  128. p {
  129. overflow: hidden;
  130. white-space: nowrap;
  131. text-overflow: ellipsis;
  132. max-width: 180px !important;
  133. }
  134. &.titleSelect {
  135. color: var(--n-color);
  136. font-weight: bold;
  137. .dir {
  138. background: url('../../../prepare-lessons/components/directory-main/images/icon-d-active.png') no-repeat center;
  139. background-size: contain;
  140. }
  141. }
  142. }
  143. .arrow {
  144. display: inline-block;
  145. width: 14px;
  146. height: 15px;
  147. background: url('../../../prepare-lessons/components/directory-main/images/arrow-default.png') no-repeat center;
  148. background-size: contain;
  149. &.arrowSelect {
  150. background: url('../../../prepare-lessons/components/directory-main/images/arrow-active.png') no-repeat center;
  151. background-size: contain;
  152. }
  153. }
  154. .childArrow {
  155. width: 12px;
  156. }
  157. &.childItem {
  158. padding-left: 30px;
  159. font-size: max(13px, 12Px);
  160. margin: 0 10px;
  161. .title {
  162. color: #131415;
  163. max-width: 180px;
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. white-space: nowrap;
  167. display: block;
  168. }
  169. }
  170. &.childSelect {
  171. background: #EAEDF2;
  172. .title {
  173. color: var(--n-color);
  174. font-weight: bold;
  175. }
  176. }
  177. }
  178. }
  179. .musicStaff {
  180. // display: flex;
  181. // flex-direction: column;
  182. position: relative;
  183. // left: -8px;
  184. flex: 1;
  185. background-color: #fff;
  186. border-radius: 16px;
  187. // height: 100%;
  188. z-index: 1;
  189. overflow: hidden;
  190. padding: 54px 0 27px 27px;
  191. &::-webkit-scrollbar {
  192. width: 0;
  193. display: none;
  194. }
  195. .empty {
  196. :global {
  197. .n-spin-content {
  198. min-height: 100%;
  199. display: flex;
  200. align-items: center;
  201. justify-content: center;
  202. }
  203. }
  204. }
  205. :global {
  206. .n-spin-container {
  207. overflow-y: auto;
  208. height: 100%;
  209. }
  210. }
  211. .musicTitle {
  212. padding: 27px 27px 13px;
  213. font-size: 20px;
  214. font-weight: 600;
  215. color: #000000;
  216. line-height: 30px;
  217. text-align: center;
  218. }
  219. .musicContent {
  220. flex: 1;
  221. // overflow-y: auto;
  222. // height: 100%;
  223. // padding: 27px;
  224. padding-right: 27px;
  225. position: relative;
  226. user-select: text;
  227. position: relative;
  228. ::selection {
  229. background-color: #E1F0FF;
  230. }
  231. &:focus-visible {
  232. border: none !important;
  233. outline: none !important;
  234. ;
  235. }
  236. :global {
  237. .highlight {
  238. color: #0378EC;
  239. background-color: #E1F0FF;
  240. }
  241. .speak-label {
  242. cursor: pointer;
  243. }
  244. }
  245. &>img {
  246. width: 100%;
  247. }
  248. section,
  249. &>div {
  250. font-size: inherit !important;
  251. }
  252. }
  253. }
  254. .changeSizeSection {
  255. position: absolute;
  256. right: 10px;
  257. bottom: 50%;
  258. width: 35px;
  259. transform: translate(0, 50%);
  260. background: #fff;
  261. border-radius: 7px;
  262. display: flex;
  263. align-items: center;
  264. flex-direction: column;
  265. padding: 13px 0;
  266. .iconT {
  267. width: 15px;
  268. height: 15px;
  269. }
  270. .iconAddT,
  271. .iconPlusT {
  272. width: 23px;
  273. height: 23px;
  274. cursor: pointer;
  275. }
  276. .iconAddT {
  277. margin-top: 13px;
  278. margin-bottom: 8px;
  279. }
  280. .iconPlusT {
  281. margin-top: 8px;
  282. }
  283. :global {
  284. .n-slider {
  285. height: 125px;
  286. --n-handle-size: 15px !important;
  287. --n-rail-height: 0 !important;
  288. }
  289. .n-slider.n-slider--vertical .n-slider-rail {
  290. border-radius: 10px;
  291. }
  292. .n-slider .n-slider-rail .n-slider-rail__fill {
  293. border-radius: 10px;
  294. }
  295. .n-slider.n-slider--vertical .n-slider-handles {
  296. top: 3px !important;
  297. bottom: 3px !important;
  298. }
  299. }
  300. }
  301. .btnGroup {
  302. padding: 20px 0;
  303. :global {
  304. .n-button {
  305. height: 47px;
  306. min-width: 156px;
  307. }
  308. }
  309. }
  310. .treeParentSelected {
  311. background-color: #F8F8F8;
  312. border-radius: 8px;
  313. padding-bottom: 10px;
  314. .parentItem {
  315. // border-bottom: 1px solid #E7E8E8;
  316. position: relative;
  317. margin-bottom: 10px;
  318. &::after {
  319. content: '';
  320. position: absolute;
  321. bottom: 0;
  322. left: 0;
  323. display: block;
  324. width: 100%;
  325. height: 1px;
  326. background-color: #E7E8E8;
  327. }
  328. }
  329. }
  330. .checkbox {
  331. position: absolute;
  332. right: 20px;
  333. }
  334. .childItem {
  335. .checkbox {
  336. right: 10px;
  337. }
  338. }
  339. .musicTitleRight {
  340. position: absolute;
  341. top: 15px;
  342. right: 15px;
  343. z-index: 9;
  344. .textRead,
  345. .textClose {
  346. padding: 7px 8px;
  347. background: #E8F4FF;
  348. border-radius: 13px;
  349. font-weight: 500;
  350. font-size: max(13px, 12Px);
  351. color: #0378EC;
  352. line-height: 18px;
  353. display: flex;
  354. align-items: center;
  355. cursor: pointer;
  356. }
  357. .icon {
  358. display: inline-block;
  359. margin-right: 5px;
  360. width: 15px;
  361. height: 15px;
  362. }
  363. .textRead {
  364. .icon {
  365. background: url('../../../content-information/images/icon-speak-sound.png');
  366. background-size: contain;
  367. }
  368. }
  369. .textClose {
  370. .icon {
  371. background: url('../../../content-information/images/icon-speak-close.png');
  372. background-size: contain;
  373. }
  374. }
  375. }
  376. .selectionCouser {
  377. display: flex;
  378. align-items: center;
  379. position: absolute;
  380. &.hide {
  381. opacity: 0;
  382. visibility: hidden;
  383. }
  384. .textStart,
  385. .textReadOnly {
  386. cursor: pointer;
  387. background: #1A8CFF;
  388. border-radius: 13px;
  389. font-weight: 600;
  390. font-size: max(13px, 12Px);
  391. color: #FFFFFF;
  392. line-height: 18px;
  393. display: inline-flex;
  394. align-items: center;
  395. padding: 3px 8px;
  396. flex-shrink: 0;
  397. .icon {
  398. margin-left: 4px;
  399. display: inline-block;
  400. }
  401. }
  402. .textStart {
  403. .icon {
  404. width: 8px;
  405. height: 10px;
  406. background: url('../../../content-information/images/icon-speak-arrow.png') no-repeat center;
  407. background-size: contain;
  408. }
  409. }
  410. .textReadOnly {
  411. margin-left: 10px;
  412. .icon {
  413. width: 9px;
  414. height: 9px;
  415. background: url('../../../content-information/images/icon-speak-line.png') no-repeat center;
  416. background-size: contain;
  417. }
  418. }
  419. }