index.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. page {
  28. background-color: #f9f9f9;
  29. height: 100%;
  30. }
  31. .dayQuestion {
  32. padding: 40rpx;
  33. color: #000;
  34. }
  35. .dayQuestion .title {
  36. font-size: 60rpx;
  37. font-weight: 900;
  38. }
  39. .dayQuestion .subTitle {
  40. margin: 20rpx 0;
  41. color: #666;
  42. }
  43. .dayQuestion .tip {
  44. width: 100%;
  45. height: 100rpx;
  46. background-color: #eeecec;
  47. border-radius: 20rpx;
  48. display: flex;
  49. justify-content: space-between;
  50. align-items: center;
  51. padding: 0 20rpx;
  52. margin: 50rpx 0;
  53. }
  54. .dayQuestion .question .option {
  55. display: flex;
  56. align-items: center;
  57. margin: 30rpx 0;
  58. }
  59. .dayQuestion .question .option .number {
  60. margin-right: 20rpx;
  61. width: 40rpx;
  62. height: 40rpx;
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. font-weight: 600;
  67. border: 1px solid #f8572c;
  68. border-radius: 50%;
  69. color: #f8572c;
  70. }
  71. .dayQuestion .question .option .active {
  72. border: 1px solid #3c9cff;
  73. background-color: #3c9cff;
  74. color: #fff;
  75. }
  76. .dayQuestion .question .option .trueResult {
  77. border: 1px solid #22c134;
  78. background-color: #22c134;
  79. color: #fff;
  80. }
  81. .dayQuestion .question .option .trueOption {
  82. color: #22c134;
  83. }
  84. .dayQuestion .question .option .falseResult {
  85. border: 1px solid #ff4d4f;
  86. background-color: #ff4d4f;
  87. color: #fff;
  88. }
  89. .dayQuestion .question .option .falseOption {
  90. color: #ff4d4f;
  91. }
  92. .dayQuestion .submitBtn {
  93. width: 200rpx;
  94. margin: 100rpx auto;
  95. }
  96. .dayQuestion .answerBox {
  97. width: 100%;
  98. height: 200rpx;
  99. background-color: #fff;
  100. border-radius: 20rpx;
  101. overflow: hidden;
  102. box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.2);
  103. }
  104. .dayQuestion .answerBox .resultBox {
  105. display: flex;
  106. align-items: center;
  107. height: 40%;
  108. padding: 0 20rpx;
  109. }
  110. .dayQuestion .answerBox .resultBox .sign {
  111. width: 30rpx;
  112. height: 30rpx;
  113. color: #fff;
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. margin-right: 20rpx;
  118. border-radius: 50%;
  119. background-color: #22c134;
  120. }
  121. .dayQuestion .answerBox .resultBox .result {
  122. color: #22c134;
  123. font-weight: 600;
  124. }
  125. .dayQuestion .answerBox .resultBox .falseSign {
  126. background-color: #ff4d4f;
  127. }
  128. .dayQuestion .answerBox .resultBox .falseResult {
  129. color: #ff4d4f;
  130. }
  131. .dayQuestion .answerBox .detailBox {
  132. height: 60%;
  133. display: flex;
  134. box-sizing: border-box;
  135. border-top: 4rpx solid #f9f9f9;
  136. }
  137. .dayQuestion .answerBox .detailBox .true_result,
  138. .dayQuestion .answerBox .detailBox .user_result {
  139. width: 50%;
  140. box-sizing: border-box;
  141. display: flex;
  142. flex-direction: column;
  143. justify-content: space-around;
  144. align-items: center;
  145. }
  146. .dayQuestion .answerBox .detailBox .true_result .result,
  147. .dayQuestion .answerBox .detailBox .user_result .result {
  148. font-weight: 600;
  149. color: #22c134;
  150. }
  151. .dayQuestion .answerBox .detailBox .true_result .falseResult,
  152. .dayQuestion .answerBox .detailBox .user_result .falseResult {
  153. color: #ff4d4f;
  154. }
  155. .dayQuestion .answerBox .detailBox .true_result {
  156. border-right: 4rpx solid #f9f9f9;
  157. }
  158. .dayQuestion .analysis {
  159. background-color: #fff;
  160. border-radius: 20rpx;
  161. box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.2);
  162. margin-top: 20rpx;
  163. margin-bottom: 160rpx;
  164. padding: 20rpx 12rpx;
  165. }
  166. .dayQuestion .analysis .analysis_title {
  167. margin-bottom: 20rpx;
  168. font-size: 32rpx;
  169. font-weight: 600;
  170. color: #333;
  171. }