answer-detail-styles.blade.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. column-fill: auto;
  121. }
  122. .answer-detail-item {
  123. break-inside: auto;
  124. page-break-inside: auto;
  125. margin-bottom: 7px;
  126. font-size: 12px;
  127. line-height: 1.52;
  128. text-align: left;
  129. }
  130. .answer-detail-item .qno {
  131. font-size: 12px;
  132. font-weight: 700;
  133. margin-right: 2px;
  134. }
  135. .answer-detail-item .detail-grade-box {
  136. display: inline-block;
  137. width: 11px;
  138. height: 11px;
  139. border: 1px solid #333;
  140. box-sizing: border-box;
  141. background: #fff;
  142. vertical-align: middle;
  143. }
  144. .answer-detail-item .entry-line {
  145. display: block;
  146. font-weight: 400;
  147. }
  148. .answer-detail-item .entry-head {
  149. display: inline;
  150. white-space: normal;
  151. font-weight: 700;
  152. }
  153. .answer-detail-item .answer-only,
  154. .answer-detail-item .analysis-tag {
  155. font-weight: 700;
  156. margin-right: 4px;
  157. }
  158. .answer-detail-item .answer-only {
  159. word-break: break-word;
  160. overflow-wrap: break-word;
  161. }
  162. .answer-detail-item .analysis-tag {
  163. white-space: nowrap;
  164. }
  165. .answer-detail-item .solution-only {
  166. color: #242424;
  167. font-weight: 400;
  168. display: inline;
  169. word-break: normal;
  170. overflow-wrap: break-word;
  171. line-height: 1.58;
  172. }
  173. .answer-detail-item .solution-only p,
  174. .answer-detail-item .solution-only div {
  175. margin: 0;
  176. display: inline;
  177. font-size: inherit !important;
  178. line-height: inherit !important;
  179. }
  180. .answer-detail-item .solution-only img {
  181. display: block;
  182. max-width: 162px;
  183. max-height: 108px;
  184. width: auto;
  185. height: auto;
  186. margin: 4px 0;
  187. object-fit: contain;
  188. }
  189. .answer-detail-item,
  190. .answer-detail-item div,
  191. .answer-detail-item p,
  192. .answer-detail-item strong {
  193. font-size: 12px !important;
  194. line-height: 1.54 !important;
  195. }
  196. .answer-detail-item .katex {
  197. font-size: 1em !important;
  198. vertical-align: 0;
  199. display: inline;
  200. }
  201. /* 不覆盖 KaTeX 内部排版,避免分数上下叠压 */
  202. .answer-detail-item .katex,
  203. .answer-detail-item .katex * {
  204. line-height: normal !important;
  205. }
  206. .answer-detail-item .katex .mfrac {
  207. margin-left: 0.01em;
  208. margin-right: 0.01em;
  209. }
  210. .answer-detail-item .katex .mfrac .frac-line {
  211. margin-top: 0.07em;
  212. margin-bottom: 0.07em;
  213. }
  214. .answer-detail-item .katex .sqrt .vlist-t {
  215. padding-top: 0.02em;
  216. }
  217. .answer-detail-item .katex-display {
  218. margin: 0.34em 0 !important;
  219. padding-left: 0.25em;
  220. border-left: 1px solid #ececec;
  221. display: block !important;
  222. clear: both;
  223. }
  224. .answer-detail-item .solution-only br {
  225. line-height: 1.4;
  226. }
  227. .answer-detail-item .solution-step {
  228. display: inline-block;
  229. margin: 2px 0;
  230. }
  231. .answer-detail-item .step-box {
  232. display: inline-flex;
  233. align-items: center;
  234. margin-right: 6px;
  235. vertical-align: middle;
  236. }
  237. .answer-detail-item .step-label {
  238. display: inline;
  239. vertical-align: middle;
  240. }