WritingCard.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. .card {
  2. // B5 176mm*250mm
  3. max-width: 156mm;
  4. margin: 0 auto;
  5. padding: 0 10mm;
  6. font-family: "Times New Roman", "SimSun" !important;
  7. zoom: 0.74;
  8. }
  9. @mixin bd($pos: border, $style: solid, $color: #000) {
  10. position: relative;
  11. &:after {
  12. display: block;
  13. position: absolute;
  14. content: "";
  15. left: 0px;
  16. top: 0px;
  17. z-index: -1;
  18. width: 200%;
  19. height: 200%;
  20. -webkit-transform-origin: 0 0;
  21. transform-origin: 0 0;
  22. -webkit-transform: scale(0.5, 0.5);
  23. transform: scale(0.5, 0.5);
  24. #{$pos}: 1px $style $color;
  25. }
  26. }
  27. .page {
  28. padding: 5.6mm 0 3mm;
  29. position: relative;
  30. height: 221.773mm;
  31. .content {}
  32. .title {
  33. display: -webkit-flex;
  34. display: flex;
  35. -webkit-flex-direction: column;
  36. flex-direction: column;
  37. -webkit-align-items: center;
  38. align-items: center;
  39. padding-top: 50mm;
  40. margin-bottom: 8mm;
  41. .card-name {
  42. width: 40pt;
  43. font-size: 30pt;
  44. font-weight: bold;
  45. }
  46. .card-en-name {
  47. font-size: 21pt;
  48. font-weight: bold;
  49. margin-top: 6mm;
  50. }
  51. .title-line {
  52. width: 100%;
  53. background-color: #000;
  54. margin-top: 4mm;
  55. margin-bottom: 2mm;
  56. @include bd(border-bottom);
  57. }
  58. .title-text {
  59. font-size: 9pt;
  60. }
  61. }
  62. .guide-text {
  63. font-size: 12pt;
  64. text-align: justify;
  65. line-height: 5.5mm;
  66. span {
  67. font-weight: bold;
  68. }
  69. .guide-text-en {
  70. margin-bottom: 4mm;
  71. }
  72. }
  73. .point {
  74. position: absolute;
  75. width: 6mm;
  76. height: 3mm;
  77. background-color: #000;
  78. }
  79. .point-1 {
  80. top: 0;
  81. left: 8.4mm;
  82. }
  83. .point-2 {
  84. top: 0;
  85. left: 33%;
  86. }
  87. .point-2-back {
  88. top: 0;
  89. right: 33%;
  90. }
  91. .point-3 {
  92. top: 0;
  93. right: 8.4mm;
  94. }
  95. .point-4 {
  96. bottom: -3.2mm;
  97. left: 8.4mm;
  98. }
  99. .point-5 {
  100. bottom: -3.2mm;
  101. right: 8.4mm;
  102. }
  103. }
  104. // 信息栏公用样式
  105. .info-block {
  106. display: -webkit-flex;
  107. display: flex;
  108. -webkit-align-items: center;
  109. align-items: center;
  110. margin-bottom: 5mm;
  111. @include bd();
  112. .info-left {
  113. @include bd(border-right);
  114. .info {
  115. width: 100%;
  116. height: 18mm;
  117. padding: 1mm 0;
  118. font-size: 10.5pt;
  119. display: -webkit-flex;
  120. display: flex;
  121. -webkit-flex-wrap: wrap;
  122. flex-wrap: wrap;
  123. .info-item {
  124. width: 50%;
  125. display: -webkit-flex;
  126. display: flex;
  127. -webkit-align-items: center;
  128. align-items: center;
  129. -webkit-justify-content: center;
  130. justify-content: center;
  131. position: relative;
  132. .info-item-label {
  133. display: block;
  134. width: 20mm;
  135. text-align: right;
  136. }
  137. i {
  138. display: block;
  139. height: 4mm;
  140. width: 40mm;
  141. text-align: center;
  142. @include bd(border-bottom);
  143. box-sizing: border-box;
  144. }
  145. .small-text {
  146. position: absolute;
  147. right: 4.5mm;
  148. top: 4.5mm;
  149. font-size: 6pt;
  150. color: #888;
  151. }
  152. }
  153. }
  154. .tips {
  155. font-size: 9pt;
  156. display: -webkit-flex;
  157. display: flex;
  158. @include bd();
  159. // @include bd(border-top);
  160. // @include bd(border-bottom);
  161. &:after {
  162. border-left: none;
  163. border-right: none;
  164. }
  165. .tips-left {
  166. width: 8mm;
  167. display: -webkit-flex;
  168. display: flex;
  169. -webkit-align-items: center;
  170. align-items: center;
  171. text-align: center;
  172. @include bd(border-right);
  173. }
  174. .tips-right {
  175. padding: 1mm 2mm;
  176. line-height: 4mm;
  177. text-align: justify;
  178. .tips-list {
  179. display: -webkit-flex;
  180. display: flex;
  181. i {
  182. margin-right: 0.5mm;
  183. }
  184. p {
  185. span {
  186. font-weight: bold;
  187. }
  188. }
  189. }
  190. }
  191. }
  192. .example {
  193. height: 10mm;
  194. font-size: 9pt;
  195. display: -webkit-flex;
  196. display: flex;
  197. -webkit-justify-content: space-around;
  198. justify-content: space-around;
  199. .correct {
  200. display: -webkit-flex;
  201. display: flex;
  202. -webkit-align-items: center;
  203. align-items: center;
  204. .correct-text {
  205. margin-right: 1mm;
  206. }
  207. .four-line-grid {
  208. width: 15mm;
  209. height: 6mm;
  210. box-sizing: border-box;
  211. @include bd(border, dashed, #ddd);
  212. display: -webkit-flex;
  213. display: flex;
  214. -webkit-align-items: center;
  215. align-items: center;
  216. .line {
  217. width: 100%;
  218. height: 2mm;
  219. box-sizing: border-box;
  220. position: relative;
  221. @include bd(border-top, dashed, #ddd);
  222. &:after {
  223. border-bottom: 1px solid #888;
  224. }
  225. .write {
  226. position: absolute;
  227. top: -1.2mm;
  228. left: 2.2mm;
  229. font-size: 12pt;
  230. }
  231. }
  232. }
  233. }
  234. .sign {
  235. display: -webkit-flex;
  236. display: flex;
  237. -webkit-align-items: center;
  238. align-items: center;
  239. .sign-icon {
  240. width: 4.2mm;
  241. height: 2mm;
  242. margin-left: 1mm;
  243. margin-right: 3mm;
  244. @include bd();
  245. }
  246. }
  247. }
  248. }
  249. .info-right {
  250. width: 32mm;
  251. display: -webkit-flex;
  252. display: flex;
  253. -webkit-justify-content: center;
  254. justify-content: center;
  255. img {
  256. width: 16mm;
  257. height: 16mm;
  258. }
  259. }
  260. }
  261. .writing-area {
  262. height: auto;
  263. .content {
  264. padding: 2mm;
  265. @include bd();
  266. }
  267. .info-item {
  268. display: -webkit-flex;
  269. display: flex;
  270. -webkit-align-items: center;
  271. align-items: center;
  272. -webkit-justify-content: center;
  273. justify-content: center;
  274. position: absolute;
  275. top: -5.6mm;
  276. left: 20mm;
  277. .info-item-label {
  278. display: block;
  279. width: 20mm;
  280. text-align: right;
  281. }
  282. i {
  283. display: block;
  284. height: 4mm;
  285. width: 40mm;
  286. text-align: center;
  287. @include bd(border-bottom);
  288. box-sizing: border-box;
  289. }
  290. }
  291. ol {
  292. li {
  293. position: relative;
  294. margin-bottom: 2mm;
  295. .number {
  296. position: absolute;
  297. top: 2.7mm;
  298. right: -6mm;
  299. font-size: 9pt;
  300. color: #888;
  301. }
  302. &:last-child {
  303. margin-bottom: 0;
  304. }
  305. }
  306. }
  307. .four-line-grid {
  308. width: 100%;
  309. height: 9mm;
  310. box-sizing: border-box;
  311. @include bd(border, dashed, #ddd);
  312. display: -webkit-flex;
  313. display: flex;
  314. -webkit-align-items: center;
  315. align-items: center;
  316. .line {
  317. width: 100%;
  318. height: 3mm;
  319. box-sizing: border-box;
  320. @include bd(border-top, dashed, #ddd);
  321. &:after {
  322. border-bottom: 1px solid #888;
  323. }
  324. }
  325. }
  326. }
  327. // 批改后题目样式
  328. .report {
  329. .title {
  330. text-align: center;
  331. line-height: 6.5mm;
  332. .card-en-name {
  333. font-size: 16pt;
  334. font-weight: bold;
  335. }
  336. .card-name {
  337. font-size: 16pt;
  338. font-weight: bold;
  339. }
  340. .date {
  341. font-size: 9pt;
  342. }
  343. }
  344. .info-block {
  345. margin-bottom: 0;
  346. .tips {
  347. &:after {
  348. border-bottom: none;
  349. }
  350. }
  351. }
  352. .report-content {
  353. font-size: 12pt;
  354. .dynamic-text {
  355. text-align: justify;
  356. line-height: 5.5mm;
  357. margin: 5mm 0;
  358. p {
  359. span {
  360. font-weight: bold;
  361. }
  362. }
  363. .dynamic-text-en {
  364. margin-bottom: 1mm;
  365. }
  366. }
  367. .part {
  368. .part-title {
  369. height: 10mm;
  370. width: 100mm;
  371. margin: 0 auto;
  372. line-height: 10mm;
  373. color: #fff;
  374. font-weight: bolder;
  375. text-align: center;
  376. position: relative;
  377. margin-bottom: 4mm;
  378. img {
  379. width: 100%;
  380. position: absolute;
  381. top: 0;
  382. left: 0;
  383. z-index: -1;
  384. }
  385. .part-title-left {
  386. width: 45mm;
  387. height: 12mm;
  388. font-size: 13.5pt;
  389. position: absolute;
  390. left: 8mm;
  391. top: -1.5mm;
  392. .title-icon {
  393. position: relative;
  394. height: inherit;
  395. line-height: 12mm;
  396. img {
  397. width: 45mm;
  398. height: 12mm;
  399. }
  400. }
  401. }
  402. .part-title-right {
  403. font-size: 9pt;
  404. width: 50%;
  405. float: right;
  406. span {
  407. font-size: 13.5pt;
  408. margin-right: 1mm;
  409. }
  410. }
  411. }
  412. .part-content {
  413. .part-item {
  414. margin-bottom: 4mm;
  415. .item-title {
  416. color: aqua;
  417. font-weight: bold;
  418. margin-bottom: 2mm;
  419. display: -webkit-flex;
  420. display: flex;
  421. -webkit-align-items: center;
  422. align-items: center;
  423. page-break-inside: avoid;
  424. img {
  425. width: 5mm;
  426. margin-right: 2mm;
  427. margin-bottom: 0.5mm;
  428. }
  429. }
  430. .item-content {
  431. text-align: justify;
  432. line-height: 6mm;
  433. }
  434. }
  435. }
  436. .score {
  437. display: -webkit-flex;
  438. display: flex;
  439. -webkit-justify-content: space-around;
  440. justify-content: space-around;
  441. .score-block {
  442. text-align: center;
  443. .score-color {
  444. color: aqua;
  445. }
  446. .score-bar {
  447. width: 20mm;
  448. height: 2mm;
  449. box-sizing: border-box;
  450. border: 1px solid aqua;
  451. border-radius: 4mm;
  452. margin: 1mm 0 2mm;
  453. .score-core {
  454. height: 100%;
  455. border-radius: 4mm;
  456. background-color: aqua;
  457. }
  458. }
  459. }
  460. }
  461. .comment-sentence {
  462. margin-bottom: 2mm;
  463. .comment-txt {
  464. padding-left: 2mm;
  465. }
  466. }
  467. .highlight-summary {}
  468. .writing-template {}
  469. .cardinal-word {}
  470. .multiple-expression {}
  471. .part-speech {}
  472. .translation {}
  473. .trans-list {
  474. list-style-type: decimal;
  475. list-style-position: inside;
  476. page-break-inside: avoid;
  477. i {
  478. display: block;
  479. width: 100%;
  480. margin-top: 5mm;
  481. @include bd(border-bottom);
  482. &:after {
  483. position: unset;
  484. }
  485. }
  486. li {
  487. padding-bottom: 2mm;
  488. }
  489. }
  490. .lr-list {
  491. display: -webkit-flex;
  492. display: flex;
  493. -webkit-flex-wrap: wrap;
  494. flex-wrap: wrap;
  495. -webkit-justify-content: space-between;
  496. justify-content: space-between;
  497. li {
  498. width: 45%;
  499. }
  500. }
  501. }
  502. }
  503. }