answer-detail-styles.blade.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. .answer-detail-page {
  2. max-width: 720px;
  3. margin: 0 auto;
  4. padding: 0 12px;
  5. }
  6. .answer-quick {
  7. border: 1px solid #d8d8d8;
  8. border-radius: 4px;
  9. padding: 7px 8px;
  10. margin-bottom: 8px;
  11. font-size: 12px;
  12. line-height: 1.32;
  13. background: #fcfcfc;
  14. }
  15. .answer-quick-label {
  16. font-weight: 700;
  17. margin-bottom: 5px;
  18. }
  19. .answer-quick-flow {
  20. display: flex;
  21. flex-wrap: wrap;
  22. gap: 4px 6px;
  23. }
  24. .answer-quick-flow-ordered {
  25. justify-content: flex-start;
  26. align-items: flex-start;
  27. }
  28. .answer-quick-item {
  29. display: inline-flex;
  30. align-items: center;
  31. white-space: normal;
  32. word-break: normal;
  33. overflow-wrap: normal;
  34. line-height: 1.2;
  35. border: 1px dashed #e3e3e3;
  36. border-radius: 3px;
  37. padding: 2px 6px;
  38. background: #fff;
  39. margin: 0;
  40. flex: 0 1 auto;
  41. max-width: 100%;
  42. vertical-align: middle;
  43. box-sizing: border-box;
  44. min-height: 30px;
  45. font-size: 12px;
  46. }
  47. .answer-quick-item-compact {
  48. text-align: center;
  49. line-height: 1;
  50. display: inline-flex;
  51. align-items: center;
  52. min-height: 30px;
  53. }
  54. .answer-quick-item-compact .katex {
  55. vertical-align: middle;
  56. font-size: 1em;
  57. }
  58. .answer-quick-item .katex {
  59. vertical-align: middle;
  60. }
  61. /* 速查公式全部走流式,不使用块级公式排版 */
  62. .answer-quick .katex-display {
  63. display: inline-flex !important;
  64. align-items: center;
  65. margin: 0 0.03em !important;
  66. vertical-align: middle;
  67. }
  68. .answer-quick .katex-display > .katex {
  69. display: inline-block !important;
  70. vertical-align: middle;
  71. }
  72. .answer-quick .katex {
  73. vertical-align: middle;
  74. white-space: nowrap;
  75. }
  76. .answer-quick .katex * {
  77. white-space: nowrap;
  78. }
  79. .answer-quick-item-long {
  80. text-align: left;
  81. line-height: 1.2;
  82. display: inline-flex;
  83. align-items: center;
  84. flex-wrap: wrap;
  85. max-width: 100%;
  86. vertical-align: top;
  87. font-size: 12px;
  88. min-height: 30px;
  89. padding: 1px 4px;
  90. border-color: #e7e7e7;
  91. }
  92. .answer-quick-item-long .katex {
  93. font-size: 1em;
  94. vertical-align: middle;
  95. }
  96. .answer-quick-item-long .katex-display {
  97. margin: 0 0.03em !important;
  98. }
  99. .answer-quick-item-extended {
  100. text-align: left;
  101. align-items: center;
  102. width: auto;
  103. max-width: 100%;
  104. min-height: 30px;
  105. padding-top: 2px;
  106. padding-bottom: 2px;
  107. line-height: 1.2;
  108. }
  109. .answer-quick-item strong {
  110. font-weight: 700;
  111. margin-right: 1px;
  112. white-space: nowrap;
  113. display: inline-flex;
  114. align-items: center;
  115. align-self: center;
  116. }
  117. .answer-detail-two-cols {
  118. column-count: 2;
  119. column-gap: 20px;
  120. /* 减少分页时某一列提前留白的问题 */
  121. column-fill: balance;
  122. }
  123. .answer-detail-item {
  124. break-inside: auto !important;
  125. page-break-inside: auto !important;
  126. margin-bottom: 7px;
  127. font-size: 12px;
  128. line-height: 1.52;
  129. text-align: left;
  130. orphans: 2;
  131. widows: 2;
  132. }
  133. .answer-detail-item .qno {
  134. font-size: 12px;
  135. font-weight: 700;
  136. margin-right: 2px;
  137. }
  138. .answer-detail-item .detail-grade-box {
  139. display: inline-block;
  140. width: 11px;
  141. height: 11px;
  142. border: 1px solid #333;
  143. box-sizing: border-box;
  144. background: #fff;
  145. vertical-align: middle;
  146. }
  147. .answer-detail-item .entry-line {
  148. display: block;
  149. font-weight: 400;
  150. }
  151. .answer-detail-item .entry-answer-line {
  152. font-weight: 700;
  153. margin-bottom: 1px;
  154. }
  155. .answer-detail-item .entry-analysis-line {
  156. display: block;
  157. margin-top: 1px;
  158. }
  159. .answer-detail-item .answer-only,
  160. .answer-detail-item .analysis-tag {
  161. font-weight: 700;
  162. margin-right: 4px;
  163. }
  164. .answer-detail-item .answer-only {
  165. word-break: break-word;
  166. overflow-wrap: break-word;
  167. }
  168. .answer-detail-item .analysis-tag {
  169. white-space: nowrap;
  170. display: inline-block;
  171. margin-right: 4px;
  172. font-weight: 700;
  173. vertical-align: top;
  174. }
  175. .answer-detail-item .solution-only {
  176. color: #242424;
  177. font-weight: 400;
  178. display: inline;
  179. word-break: normal;
  180. overflow-wrap: break-word;
  181. line-height: 1.58;
  182. }
  183. .answer-detail-item .solution-only p,
  184. .answer-detail-item .solution-only div {
  185. margin: 0;
  186. display: inline;
  187. font-size: inherit !important;
  188. line-height: inherit !important;
  189. }
  190. .answer-detail-item .solution-only img {
  191. display: block;
  192. max-width: 162px;
  193. max-height: 108px;
  194. width: auto;
  195. height: auto;
  196. margin: 4px 0;
  197. object-fit: contain;
  198. }
  199. .answer-detail-item,
  200. .answer-detail-item div,
  201. .answer-detail-item p,
  202. .answer-detail-item strong {
  203. font-size: 12px !important;
  204. line-height: 1.54 !important;
  205. }
  206. .answer-detail-item .katex {
  207. font-size: 1em !important;
  208. vertical-align: 0;
  209. display: inline;
  210. }
  211. /* 不覆盖 KaTeX 内部排版,避免分数上下叠压 */
  212. .answer-detail-item .katex,
  213. .answer-detail-item .katex * {
  214. line-height: normal !important;
  215. }
  216. .answer-detail-item .katex .mfrac {
  217. margin-left: 0.01em;
  218. margin-right: 0.01em;
  219. }
  220. .answer-detail-item .katex .mfrac .frac-line {
  221. margin-top: 0.07em;
  222. margin-bottom: 0.07em;
  223. }
  224. .answer-detail-item .katex .sqrt .vlist-t {
  225. padding-top: 0.02em;
  226. }
  227. .answer-detail-item .katex-display {
  228. margin: 0.34em 0 !important;
  229. padding-left: 0.25em;
  230. border-left: 1px solid #ececec;
  231. display: block !important;
  232. clear: both;
  233. }
  234. .answer-detail-item .solution-only br {
  235. line-height: 1.4;
  236. }
  237. .answer-detail-item .solution-step {
  238. display: inline;
  239. margin: 2px 0;
  240. break-inside: auto;
  241. page-break-inside: auto;
  242. -webkit-column-break-inside: auto;
  243. }
  244. .answer-detail-item .step-box {
  245. display: inline-flex;
  246. align-items: center;
  247. margin-right: 6px;
  248. vertical-align: middle;
  249. }
  250. .answer-detail-item .step-label {
  251. display: inline;
  252. vertical-align: middle;
  253. }