index.module.less 7.9 KB

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