answer-detail-styles.blade.php 5.7 KB

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