components.scss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /******************** 这里放组件样式 ********************/
  2. /***** view *****/
  3. view{box-sizing: border-box;}
  4. /***** 对齐方式 *****/
  5. .ezy-tl{text-align: left;}
  6. .ezy-tc{text-align: center;}
  7. .ezy-tr{text-align: right;}
  8. /***** 超出省略 *****/
  9. // 文本超出省略号显示 (一行)
  10. @mixin single-line-ellipsis() {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  11. // 文本超出省略号显示 (多行)
  12. @mixin multi-line-ellipsis($rows: 3){-webkit-line-clamp:$rows;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;display: -webkit-box;white-space: normal !important;-webkit-box-orient: vertical;}
  13. /***** 页面背景图 *****/
  14. // no-repeat cover
  15. @mixin ezy-no-repeat-cover($position: center) {
  16. background-position: $position;background-size: cover;background-repeat: no-repeat;
  17. }
  18. // no-repeat contain
  19. @mixin ezy-no-repeat-contain($position: center) {
  20. background-position: $position;background-size: contain;background-repeat: no-repeat;
  21. }
  22. /***** 富文本处理 *****/
  23. @mixin ezy-rich-text() {
  24. div,p,span{margin: 0;padding: 0;}
  25. img{max-width: 100%;}
  26. }
  27. /***** 按钮 *****/
  28. // 按钮
  29. .phone-green-btn[type='default']{background-color: #3fd2a1;color: #fff;}
  30. .phone-white-btn[type='default']{background-color: #fff;color: #3fd2a1;border: 1rpx solid #3fd2a1;}
  31. .phone-white-btn[type='default']:after{display: none;}
  32. .phone-green-btn[type='default']:hover{background-color: #34c595;color: #fff;}
  33. /***** 标题栏 *****/
  34. // 三个元素
  35. .phone-navBar-box{
  36. display: flex;align-items: center;justify-content: space-between;background-color: #fff;
  37. padding: 0 20rpx 20rpx;box-sizing: border-box;position: relative;
  38. .nav-bar-icon{
  39. width: 24rpx;height: 38rpx;
  40. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  41. }
  42. .nav-bar-title{font-size: 36rpx;color: #333;}
  43. // 考试数字
  44. .nav-bar-other{
  45. font-size: 30rpx;color: #fff;margin-right: 2%;
  46. .key-note{color: #ffff01;}
  47. }
  48. // 文字按钮
  49. .text-btn{font-size: 26rpx;color: #666;padding-top: 4rpx;box-sizing: border-box;}
  50. }
  51. // 两个元素
  52. .icon-title-navBar-box,.icon-title-bjcolor-navBar-box{
  53. display: flex;align-items: center;justify-content: center;background-color: #fff;
  54. padding: 0 20rpx 20rpx;box-sizing: border-box;position: relative;
  55. .nav-bar-title{
  56. font-size: 36rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%;
  57. }
  58. .nav-bar-icon{
  59. width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: 12rpx;
  60. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  61. }
  62. }
  63. // 带背景色
  64. .icon-title-bjcolor-navBar-box{
  65. background-color: #3fd2a1;
  66. .nav-bar-title{color: #fff;}
  67. .nav-bar-icon{background-image: url("@/static/images/common/nav-white-bar-jt.svg");}
  68. }
  69. // 仅一个返回按钮
  70. .phone-nav-bar-icon{width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: var(--status-bar-height);
  71. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  72. }
  73. /***** 查询框 *****/
  74. .phone-search-box{
  75. width: 100%;height: 110rpx;background-color:#f4f6fa;
  76. padding: 20rpx 42rpx;box-sizing: border-box;
  77. position: relative;
  78. .search-input {
  79. height: 70rpx;line-height: 70rpx;font-size: 28rpx;background-color:#fff;
  80. border-radius: 35rpx;padding: 0 70rpx 0 20rpx;
  81. }
  82. .uni-input-placeholder{color:#a4a4a4;}
  83. .search-icon {
  84. width: 100rpx;height: 60rpx;line-height: 60rpx;text-align: center;
  85. position: absolute;right: 52rpx;top: 25rpx;
  86. background-color: #3fd2a1;
  87. border-radius: 40rpx;
  88. }
  89. }
  90. /***** 试题---题干 *****/
  91. .phone-shiti-question{
  92. font-size: 32rpx;color: #333;line-height: 1.6;margin-bottom: 24rpx;
  93. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;@include ezy-rich-text;
  94. display: flex;flex-direction: row;justify-content: flex-start;
  95. }
  96. /***** 单选题 *****/
  97. .phone-danxuan-box{
  98. margin: 0 10rpx;overflow: auto;height: calc(100vh - 420rpx - var(--status-bar-height));
  99. .danxuan-option-box{
  100. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  101. font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
  102. display: flex;
  103. .option-change{
  104. width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
  105. flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
  106. display: flex;align-items: center;justify-content: center;
  107. }
  108. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
  109. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
  110. }
  111. .danxuan-option-box.active .option-change{color: #FFF;background-color:#cbcbcb;border-color:#cbcbcb;}
  112. .danxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
  113. .danxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
  114. }
  115. /***** 判断题 *****/
  116. .phone-duoxuan-box{
  117. margin: 0 10rpx;
  118. .duoxuan-option-box{
  119. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  120. font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
  121. display: flex;
  122. .option-change{
  123. width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
  124. flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
  125. display: flex;align-items: center;justify-content: center;
  126. }
  127. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
  128. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
  129. }
  130. // active background-color:#0589e9;
  131. .duoxuan-option-box.active .option-change{color: #FFF;background-color:#cbcbcb;border-color:#cbcbcb;}
  132. .duoxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
  133. .duoxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
  134. }
  135. /***** 判断题 *****/
  136. .phone-panduan-box{
  137. margin: 0 10rpx;
  138. .panduan-option-box{
  139. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  140. font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
  141. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 16rpx;margin-bottom: 24rpx;
  142. text-align: justify;word-wrap: break-word;word-break: break-all;display: flex;
  143. .uni-radio-input{margin-right: 20rpx;}
  144. }
  145. }
  146. // active background-color:#0589e9;
  147. .option-question.active .uni-radio-input{color: #FFF;background-color:#cbcbcb!important;border-color:#cbcbcb!important;}
  148. .option-question.showError .uni-radio-input{color: #FFF;background-color:#ff5757!important;border-color:#ff5757!important;}
  149. .option-question.active_right .uni-radio-input{color: #FFF;background-color:#1ac136!important;border-color:#1ac136!important;}
  150. }
  151. /***** 填空题 *****/
  152. .phone-tiankong-box{
  153. .tiankong-option-box{
  154. padding:0 40rpx;box-sizing: border-box;margin-bottom: 36rpx;
  155. .option-question{font-size: 30rpx;color: #333;}
  156. .option-question-text{font-size: 30rpx;color: #333;margin-top: 16rpx;background: #f0f0f0;padding: 10px;border-radius: 4px;}
  157. }
  158. }
  159. /***** 考试须知 *****/
  160. .phone-ksxz-dialog{
  161. .uni-dialog-title{
  162. padding: 24rpx 0!important;font-size: 30rpx;border-bottom: 1px solid #f5f5f5;
  163. .uni-popup__info{color: #333!important;}
  164. }
  165. .uni-dialog-content{
  166. justify-content: flex-start!important;
  167. }
  168. .uni-dialog-button-text{color: #999!important;}
  169. .uni-dialog-button-text.uni-button-color{color: #3fd2a1!important;}
  170. .ksxz-content-box{
  171. font-size: 28rpx;color: #333;
  172. >view{margin-bottom: 12rpx;line-height: 1.6;}
  173. .ksms-row{margin-bottom: 12rpx;}
  174. .ksms-intro{color: #666;}
  175. }
  176. }