answer-card.wxss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. @font-face {
  2. font-family: 'iconfont';
  3. /* project id 1204021 */
  4. src: url("//at.alicdn.com/t/font_1204021_al4fs65ukh6.eot");
  5. src: url("//at.alicdn.com/t/font_1204021_al4fs65ukh6.eot?#iefix") format("embedded-opentype"), url("//at.alicdn.com/t/font_1204021_al4fs65ukh6.woff2") format("woff2"), url("//at.alicdn.com/t/font_1204021_al4fs65ukh6.woff") format("woff"), url("//at.alicdn.com/t/font_1204021_al4fs65ukh6.ttf") format("truetype"), url("//at.alicdn.com/t/font_1204021_al4fs65ukh6.svg#iconfont") format("svg");
  6. }
  7. .iconfont {
  8. font-family: "iconfont" !important;
  9. font-size: 16px;
  10. font-style: normal;
  11. -webkit-font-smoothing: antialiased;
  12. -moz-osx-font-smoothing: grayscale;
  13. }
  14. .icon_right::before {
  15. content: "\e62f";
  16. }
  17. .icon_error::before {
  18. content: "\ed1e";
  19. }
  20. .plv-mp-answer-card-wrap {
  21. height: 100%;
  22. border-top-left-radius: 16rpx;
  23. border-top-right-radius: 16rpx;
  24. color: #5C5C5C;
  25. font-size: 32rpx;
  26. box-sizing: border-box;
  27. font-family: Helvetica, sans-serif;
  28. display: none;
  29. }
  30. .plv-mp-answer-card-question {
  31. position: absolute;
  32. width: 100%;
  33. height: 100%;
  34. bottom: 0;
  35. background-color: #fff;
  36. border-top-left-radius: 16rpx;
  37. border-top-right-radius: 16rpx;
  38. overflow: hidden;
  39. }
  40. .plv-mp-answer-card-question__top {
  41. position: relative;
  42. height: 98rpx;
  43. vertical-align: middle;
  44. line-height: 98rpx;
  45. border-bottom: 2rpx solid #EDEDEF;
  46. overflow: hidden;
  47. }
  48. .plv-mp-answer-card-question__top__text {
  49. font-size: 32rpx;
  50. color: #333;
  51. text-align: center;
  52. display: block;
  53. }
  54. .plv-mp-answer-card-question__top__close {
  55. position: absolute;
  56. width: 46rpx;
  57. height: 46rpx;
  58. right: 32rpx;
  59. top: 50%;
  60. transform: translateY(-50%);
  61. }
  62. .plv-mp-answer-card-question__top__back {
  63. position: absolute;
  64. width: 56rpx;
  65. height: 56rpx;
  66. top: 49rpx;
  67. margin-top: -28rpx;
  68. margin-left: 32rpx;
  69. }
  70. .plv-mp-answer-card-question__top .ansResult {
  71. padding: 10rpx 20rpx 10rpx 20rpx;
  72. color: #fff;
  73. border-radius: 44rpx;
  74. letter-spacing: 2rpx;
  75. }
  76. .plv-mp-answer-card-question__top .noAnswer {
  77. background: #c1c1c1;
  78. }
  79. .plv-mp-answer-card-question__top .correctAnswer {
  80. background: #61d3b7;
  81. }
  82. .plv-mp-answer-card-question__top .wrongAnswer {
  83. background: #ff5c69;
  84. }
  85. .plv-mp-answer-card-question__middle__wrap {
  86. padding: 38rpx 48rpx;
  87. }
  88. .plv-mp-answer-card-question__middle__title {
  89. color: #333;
  90. font-size: 32rpx;
  91. letter-spacing: 2rpx;
  92. font-weight: 600;
  93. }
  94. .plv-mp-answer-card-question__middle__multiTips {
  95. padding-left: 16rpx;
  96. }
  97. .plv-mp-answer-card-question__middle__choice {
  98. border-radius: 40rpx;
  99. padding: 16rpx 32rpx;
  100. border: 2rpx solid #cfd8dc;
  101. letter-spacing: 2rpx;
  102. color: #333;
  103. font-size: 28rpx;
  104. box-sizing: border-box;
  105. }
  106. .plv-mp-answer-card-question__middle__choice__vote {
  107. position: absolute;
  108. left: 0;
  109. bottom: 0;
  110. height: 80rpx;
  111. border-radius: 40rpx;
  112. width: 50%;
  113. background-color: #C0E3FF;
  114. }
  115. .plv-mp-answer-card-question__middle__choice__num {
  116. position: absolute;
  117. bottom: 0;
  118. right: 40rpx;
  119. }
  120. .plv-mp-answer-card-question__middle__choice__num__text {
  121. color: #3082FE;
  122. display: inline;
  123. }
  124. .plv-mp-answer-card-question__middle__result {
  125. border: none;
  126. background-color: #edf1f7;
  127. }
  128. .plv-mp-answer-card-question__middle__arrow {
  129. width: 0;
  130. height: 0;
  131. border-left: 30px solid transparent;
  132. border-right: 30px solid transparent;
  133. border-bottom: 30px solid #fff;
  134. }
  135. .plv-mp-answer-card-question__middle__score {
  136. display: flex;
  137. justify-content: center;
  138. padding: 30rpx 0;
  139. }
  140. .plv-mp-answer-card-question__middle__score__choice {
  141. display: inline-block;
  142. width: 92rpx;
  143. height: 92rpx;
  144. text-align: center;
  145. vertical-align: middle;
  146. line-height: 92rpx;
  147. border: 1px solid #eaeaea;
  148. border-radius: 20rpx;
  149. margin: 0 24rpx;
  150. }
  151. .plv-mp-answer-card-question__middle__score__tips {
  152. padding-top: 10px;
  153. }
  154. .plv-mp-answer-card-question__middle__quick {
  155. display: flex;
  156. justify-content: space-around;
  157. padding: 88rpx 0;
  158. }
  159. .plv-mp-answer-card-question__middle__quick__choice {
  160. width: 88rpx;
  161. height: 88rpx;
  162. text-align: center;
  163. vertical-align: middle;
  164. line-height: 88rpx;
  165. border: 2rpx solid #eaeaea;
  166. border-radius: 44rpx;
  167. }
  168. .plv-mp-answer-card-question__middle .icon_choice {
  169. position: absolute;
  170. display: none;
  171. top: 54rpx;
  172. right: 20rpx;
  173. }
  174. .plv-mp-answer-card-question__middle .choiceRight {
  175. color: #3082FE;
  176. background-color: #c0e3ff;
  177. }
  178. .plv-mp-answer-card-question__middle .choiceIconRight {
  179. display: block;
  180. color: #fff;
  181. }
  182. .plv-mp-answer-card-question__middle .choiceWrong {
  183. color: #E45B5B;
  184. background-color: #ffe3e3;
  185. }
  186. .plv-mp-answer-card-question__middle .choiceIconWrong {
  187. display: block;
  188. color: #ff5c69;
  189. }
  190. .plv-mp-answer-card-question__bottom {
  191. padding: 16rpx 48rpx 28rpx 48rpx;
  192. }
  193. .plv-mp-answer-card-question .plv-mp-answer-card-choice {
  194. position: relative;
  195. overflow: hidden;
  196. margin-top: 40rpx;
  197. }
  198. .plv-mp-answer-card-question .plv-mp-answer-card-choice-icon {
  199. width: 32rpx;
  200. height: 32rpx;
  201. position: absolute;
  202. right: 32rpx;
  203. top: 50%;
  204. transform: translateY(-50%);
  205. }
  206. .plv-mp-answer-card-question__bottom__btn {
  207. background-color: #3082FE;
  208. color: #CCCCCC;
  209. font-size: 32rpx;
  210. overflow: visible;
  211. height: 96rpx;
  212. line-height: 96rpx;
  213. border-radius: 48rpx;
  214. text-align: center;
  215. border: solid 2rpx #EDEDEF;
  216. position: relative;
  217. opacity: .6;
  218. }
  219. .plv-mp-answer-card-question__bottom__btn__duration {
  220. position: absolute;
  221. right: 48rpx;
  222. top: 0;
  223. height: 100%;
  224. overflow: hidden;
  225. }
  226. .plv-mp-answer-card-question__bottom__btn__duration__icon {
  227. width: 32rpx;
  228. height: 32rpx;
  229. opacity: .8;
  230. display: inline-block;
  231. margin: 32rpx 0;
  232. }
  233. .plv-mp-answer-card-question__bottom__btn__duration__time {
  234. float: right;
  235. color: #fff;
  236. opacity: .8;
  237. font-size: 28rpx;
  238. height: 28rpx;
  239. line-height: 28rpx;
  240. margin: 34rpx 0 34rpx 16rpx;
  241. }
  242. .active > .plv-mp-answer-card-question__bottom__btn {
  243. background-color: #3082FE;
  244. color: #fff;
  245. opacity: 1;
  246. }
  247. .choiceActive {
  248. border: 2rpx solid #3082FE;
  249. }
  250. .plv-mp-answer-card-score {
  251. text-align: center;
  252. }
  253. .plv-mp-answer-card-score__icon {
  254. width: 120rpx;
  255. height: 120rpx;
  256. margin-top: 40rpx;
  257. }
  258. .plv-mp-answer-card-score__tip {
  259. color: #333;
  260. font-size: 32rpx;
  261. margin-top: 40rpx;
  262. }
  263. .plv-mp-answer-card-score__title {
  264. color: #666;
  265. font-size: 28rpx;
  266. margin-top: 40rpx;
  267. }
  268. .plv-mp-answer-card-score__score {
  269. color: #333;
  270. font-size: 32rpx;
  271. margin-top: 16rpx;
  272. overflow: hidden;
  273. }
  274. .plv-mp-answer-card-score__score__num {
  275. color: #3082FE;
  276. font-size: 48rpx;
  277. display: inline-block;
  278. position: relative;
  279. font-weight: bold;
  280. }
  281. .score {
  282. display: inline-block;
  283. color: #fff;
  284. }
  285. .plv-mp-answer-card-modal {
  286. position: absolute;
  287. width: 100%;
  288. height: 100%;
  289. z-index: 9999;
  290. top: 0;
  291. }
  292. .show {
  293. display: block;
  294. }
  295. .line {
  296. height: 1px;
  297. background: rgba(0, 0, 0, 0.1);
  298. }
  299. .plv-mp-answer-card-question-result-tip {
  300. text-align: center;
  301. font-size: 32rpx;
  302. position: relative;
  303. }
  304. .plv-mp-answer-card-question-result-tip__icon {
  305. width: 120rpx;
  306. height: 120rpx;
  307. margin-top: 166rpx;
  308. }
  309. .plv-mp-answer-card-question-result-tip__tip {
  310. color: #333333;
  311. margin-top: 46rpx;
  312. font-size: 32rpx;
  313. }
  314. .plv-mp-answer-card-question-result-tip__btn {
  315. width: 654rpx;
  316. height: 96rpx;
  317. position: fixed;
  318. left: 50%;
  319. bottom: 40rpx;
  320. border-radius: 48rpx;
  321. margin-left: -327rpx;
  322. background-color: #3082FE;
  323. color: #FFFFFF;
  324. line-height: 96rpx;
  325. }