components.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. /******************** 这里存放通用组件样式 ********************/
  2. /********** uni-app基础组件 **********/
  3. /*** lli-button--primary ***/
  4. // lli-primary
  5. .lli-btn {
  6. background-color: $uni-primary;
  7. color:#ffffff;
  8. }
  9. // lli-primary-hover
  10. .button-hover.lli-btn{
  11. background-color: $lli-btn-hover;
  12. color: hsla(0,0%,100%,.6);
  13. }
  14. // lli-primary-disabled
  15. .lli-btn[disabled]:not([type]){
  16. background-color: $lli-btn-disabled;
  17. color: hsla(0,0%,100%,.6);
  18. }
  19. // lli-primary-loading
  20. .lli-btn[loading]{
  21. background-color: $uni-primary;
  22. color: hsla(0,0%,100%,.6);
  23. }
  24. /*** lli-button--plain ***/
  25. //lli-primary-plain
  26. .lli-btn[plain]{
  27. border-color: $uni-primary;
  28. color: $uni-primary;
  29. }
  30. // lli-primary-plain
  31. .button-hover.lli-btn[plain]{
  32. border-color: $lli-btn-disabled;
  33. color: $lli-btn-disabled;
  34. }
  35. // lli-primary-disabled
  36. .lli-btn[plain][disabled]:not([type]){
  37. background-color: #f7f7f7;
  38. color: rgba(0, 0, 0, 0.3);
  39. }
  40. .lli-btn[plain][loading]{
  41. background-color: transparent;
  42. border-color: $lli-btn-disabled;
  43. color: $lli-btn-disabled;
  44. }
  45. /***** 项目中组件 *****/
  46. // view
  47. view{box-sizing: border-box;}
  48. // 对齐方式
  49. .lli-tl{text-align: left;}
  50. .lli-tc{text-align: center;}
  51. .lli-tr{text-align: right;}
  52. /*****describe:考试-单选题-组件 author: TX date:2024-06-24*****/
  53. .mta-question-radio {
  54. margin: 24px 20px 0 20px;
  55. //max-height: calc(100vh - 160px);
  56. overflow-y: auto;
  57. word-break: break-word;
  58. white-space: pre-wrap;
  59. font-family: "PingFang SC, element-icons, Helvetica Neue, Helvetica, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, Arial, sans-serif";
  60. color: #333;
  61. .row1-col-num{
  62. flex-shrink: 0;
  63. }
  64. .row1 {
  65. &-col {
  66. display: flex;
  67. justify-content: flex-start;
  68. flex-direction: row;
  69. &-num {
  70. margin-right: 5px;
  71. }
  72. }
  73. }
  74. &__group {
  75. margin: 18px 16px 0 16px;
  76. &.showError {
  77. .van-radio {
  78. .isActive {
  79. background-color: red;
  80. }
  81. }
  82. }
  83. .van-radio {
  84. position: relative;
  85. margin-bottom: 24px;
  86. color: #666;
  87. font-size: 14px;
  88. .radio-item {
  89. background-color: #fff;
  90. width: 20px;
  91. display: inline-block;
  92. border-radius: 50%;
  93. font-size: 14px;
  94. line-height: 20px;
  95. text-align: center;
  96. border: 1px solid #ccc;
  97. position: absolute;
  98. top: 0px;
  99. left: 0;
  100. }
  101. .van-radio__label {
  102. margin-left: 30px;
  103. line-height: 22px;
  104. .radio-text {
  105. text-align: justify;
  106. }
  107. }
  108. .isActive {
  109. color: #fff;
  110. background-color: #0856e6;
  111. border: none;
  112. }
  113. }
  114. }
  115. img {
  116. max-width: 100%
  117. }
  118. }
  119. /*****describe:考试-多选题-组件 author: TX date:2024-06-24*****/
  120. .mta-question-checkbox {
  121. margin: 24px 20px 0 20px;
  122. //max-height: calc(100vh - 160px);
  123. overflow-y: auto;
  124. word-break: break-word;
  125. color: #333;
  126. .row1-col-num{
  127. flex-shrink: 0;
  128. }
  129. .row1 {
  130. &-col {
  131. display: flex;
  132. justify-content: flex-start;
  133. flex-direction: row;
  134. &-num {
  135. margin-right: 5px;
  136. }
  137. }
  138. }
  139. &__group {
  140. margin: 18px 16px 0 16px;
  141. &.showError {
  142. .van-checkbox {
  143. .isActive {
  144. background-color: red;
  145. }
  146. }
  147. }
  148. .van-checkbox {
  149. position: relative;
  150. margin-bottom: 24px;
  151. color: #666;
  152. font-size: 14px;
  153. .checkbox-item {
  154. background-color: #fff;
  155. width: 20px;
  156. display: inline-block;
  157. //border-radius: 50%; // describe: 修改bug区分单选和多选 author: Wgy date:2019-09-18
  158. font-size: 14px;
  159. line-height: 20px;
  160. text-align: center;
  161. border: 1px solid #ccc;
  162. position: absolute;
  163. top: 0px;
  164. left: 0;
  165. }
  166. .van-checkbox__label {
  167. margin-left: 30px;
  168. line-height: 22px;
  169. .radio-text {
  170. text-align: justify;
  171. }
  172. }
  173. .isActive {
  174. color: #fff;
  175. background-color: #0856e6;
  176. border: none;
  177. }
  178. }
  179. }
  180. img {
  181. max-width: 100%
  182. }
  183. }
  184. /*****describe:考试-判断题-组件 author: TX date:2024-06-24*****/
  185. .mta-question-panduan {
  186. margin: 24px 20px 0 20px;
  187. //max-height: calc(100vh - 160px);
  188. overflow-y: auto;
  189. word-break: break-word;
  190. color: #333;
  191. .row1-col-num{
  192. flex-shrink: 0;
  193. }
  194. .row1 {
  195. &-col {
  196. display: flex;
  197. justify-content: flex-start;
  198. flex-direction: row;
  199. &-num {
  200. margin-right: 5px;
  201. }
  202. }
  203. }
  204. &__group {
  205. /*margin-left: 5px;*/
  206. margin: 18px 16px 0 16px;
  207. &.showError {
  208. .van-radio {
  209. .van-radio__icon--checked .van-icon {
  210. background-color: red;
  211. }
  212. }
  213. }
  214. .van-radio {
  215. position: relative;
  216. margin-bottom: 24px;
  217. color: #666;
  218. font-size: 14px;
  219. .radio-item {
  220. background-color: #fff;
  221. width: 20px;
  222. display: inline-block;
  223. border-radius: 50%;
  224. font-size: 14px;
  225. line-height: 20px;
  226. text-align: center;
  227. border: 1px solid #ccc;
  228. position: absolute;
  229. top: 0;
  230. left: 0;
  231. }
  232. .van-radio__label {
  233. margin-left: 30px;
  234. .radio-text {
  235. text-align: justify;
  236. }
  237. }
  238. .van-radio__icon--checked .van-icon {
  239. background: #0856e6;
  240. border-color:#0856e6;
  241. }
  242. }
  243. }
  244. .van-radio__icon--disabled.van-radio__icon--checked .van-icon {
  245. color: #ffffff;
  246. background: #0856e6;
  247. border-color:#0856e6;
  248. }
  249. img {
  250. max-width: 100%
  251. }
  252. }
  253. /*****describe:考试-填空题-组件 author: TX date:2024-06-24*****/
  254. .mta-question-tiankong {
  255. margin: 24px 20px 0 20px;
  256. text-align: justify;
  257. //max-height: calc(100vh - 160px);
  258. overflow-y: auto;
  259. word-break: break-word;
  260. color: #333;
  261. .row1-col-num{
  262. flex-shrink: 0;
  263. }
  264. &-wrap.showError {
  265. .van-field__control {
  266. color: red;
  267. }
  268. }
  269. .row1 {
  270. &-col {
  271. display: flex;
  272. justify-content: flex-start;
  273. flex-direction: row;
  274. &-num {
  275. margin-right: 5px;
  276. }
  277. }
  278. }
  279. &-content {
  280. line-height: 28px;
  281. margin-bottom: 10px;
  282. }
  283. .mta-tiankong-input {
  284. line-height: 22px;
  285. box-sizing: border-box;
  286. min-width: 0;
  287. margin: 0;
  288. padding: 0;
  289. color: #323233;
  290. text-align: left;
  291. border: 0;
  292. resize: none;
  293. background: #FFF;
  294. border-radius: 4px;
  295. padding-left: 8px;
  296. }
  297. .noContent {
  298. //background-color: @components-color;
  299. border: 1px solid #ccc;
  300. &::-webkit-input-placeholder {
  301. color: #FFF;
  302. }
  303. }
  304. img {
  305. max-width: 100%
  306. }
  307. .tiankong-box {
  308. }
  309. }
  310. /*****describe:考试-简答题-组件 author: TX date:2024-06-24*****/
  311. .mta-question-jianda {
  312. margin: 24px 20px 0px 20px;
  313. //max-height: calc(100vh - 160px);
  314. overflow-y: auto;
  315. word-break: break-word;
  316. color: #333;
  317. .row1-col-num{
  318. flex-shrink: 0;
  319. }
  320. .row1 {
  321. &-col {
  322. display: flex;
  323. justify-content: flex-start;
  324. flex-direction: row;
  325. &-num {
  326. margin-right: 5px;
  327. }
  328. }
  329. }
  330. .row2 {
  331. margin: 16px 16px 26px 16px;
  332. &-col {
  333. .van-field {
  334. border-radius: 4px;
  335. }
  336. }
  337. }
  338. .noContent {
  339. //background-color: @components-color;
  340. border: 1px solid #ccc;
  341. .van-field__control {
  342. &::-webkit-input-placeholder {
  343. color: #fff;
  344. }
  345. }
  346. }
  347. .van-field--disabled .van-field__control, .van-field__right-icon {
  348. color: #333;
  349. }
  350. img {
  351. max-width: 100%
  352. }
  353. .upload-image {
  354. .my-ul {
  355. .van-icon-delete{
  356. margin: 0 10px;
  357. }
  358. }
  359. //图片最大数量提示
  360. .photo-tip{
  361. color: #999;
  362. font-size: 10px;
  363. margin: 0;
  364. padding: 0;
  365. width: 100%;
  366. }
  367. .van-button--normal{
  368. margin: 16px 0;
  369. }
  370. }
  371. }
  372. /*****describe:考试-阅读题-组件 author: TX date:2024-06-24*****/
  373. .mta-question-yuedu {
  374. margin: 24px 20px 0px 20px;
  375. //max-height: calc(100vh - 160px);
  376. overflow-y: auto;
  377. word-break: break-word;
  378. color: #333;
  379. // 浮层
  380. .button-next-tip{
  381. position: absolute;bottom:36px;right:0;pointer-events: none;
  382. i{display:inline-block; border-width:10px; border-style:solid dashed dashed; border-color:#646566 transparent transparent ;font-size:0; line-height:0;right: 12px;position: absolute;}
  383. p{background: #646566;color: #fff;border-radius: 10px;margin: 0;padding: 16px;width: 130px;text-align: center;}
  384. }
  385. // 置灰隐藏
  386. .swiper-button-disabled .button-next-tip{display: none;}
  387. // 关闭按钮
  388. .button-next-em{width: 22px;height: 22px;position: absolute;right: 4px;top: -80px;background-image: url("../../assets/images/icons/close.svg");background-repeat: no-repeat;background-position: center;z-index: 9;}
  389. .row1-col-num{
  390. flex-shrink: 0;
  391. }
  392. .yuedu-question-row {
  393. max-height: 50%;
  394. overflow-y: auto;
  395. &-num {
  396. margin-right: 5px;
  397. /*margin-top: 14px;*/
  398. }
  399. &-col {
  400. display: flex;
  401. justify-content: flex-start;
  402. flex-direction: row;
  403. word-break: break-all;
  404. margin: 24px 20px 0 20px;
  405. }
  406. }
  407. .yuedu-content-row {
  408. max-height: 50%;
  409. &-main {
  410. width: 100%;
  411. height: 100%;
  412. }
  413. &-swiper {
  414. width: 100%;
  415. height: 100%;
  416. overflow-y: auto;
  417. .swiper-button-prev {
  418. height: 20px;
  419. width: 26px;
  420. top: 60%
  421. }
  422. .swiper-button-next {
  423. height: 20px;
  424. width: 26px;
  425. top: 60%
  426. }
  427. .swiper-button-next,.swiper-button-prev{
  428. outline: none;
  429. &:active,&:focus-visible,&:hover,&:focus,&:visited,&:focus-within,&:target{outline: none;}
  430. }
  431. }
  432. }
  433. img {
  434. max-width: 100%
  435. }
  436. }
  437. /*****音频播放器 author: TX date:2024-06-24*****/
  438. .MtaBusAudioPlayerBox{
  439. position: relative;
  440. .st-aplayer{
  441. //position: relative;
  442. }
  443. .audio-mask {
  444. width: 30px;
  445. height: 30px;
  446. background: transparent;
  447. z-index: 99;
  448. position: absolute;
  449. top: 10px;
  450. right: 20px;
  451. }
  452. }
  453. /*****分类组件 author: TX date:2024-06-24*****/
  454. .lli-status-box{
  455. display: flex;justify-content: space-around;background: #fff;
  456. border-bottom:1px solid #f2f1f2;padding: 15px 10px;
  457. label{text-align: center;color: #333333;position: relative;}
  458. label.click:before{content: '';position: absolute;height: 2px;width: 80%;bottom: -15px;font-size: 14px;
  459. background-color: $uni-primary;
  460. left: 10%;border-radius: 2px;}
  461. }