index.module.less 7.5 KB

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