space.editor.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. .space-editor-wrap {
  2. width: 100%;
  3. }
  4. .space-form-infor.space-form-article {
  5. padding: 12px 16px;
  6. }
  7. .space-form-infor.space-form-article .el-form {
  8. margin-top: 8px;
  9. }
  10. .space-form-infor.space-form-article .article-right .el-form-item__label {
  11. float: none;
  12. display: block;
  13. width: auto !important;
  14. padding: 0 0 4px;
  15. text-align: left;
  16. font-size: 13px;
  17. line-height: 1.2;
  18. }
  19. .space-form-infor.space-form-article .article-right .el-form-item__content {
  20. margin-left: 0 !important;
  21. }
  22. .space-form-infor.space-form-article .article-right .el-date-editor.el-input {
  23. width: 100%;
  24. }
  25. .space-editor-wrap .ck-toolbar > .ck-toolbar__items {
  26. flex-wrap: wrap !important;
  27. }
  28. .space-editor-toolstrip {
  29. display: flex;
  30. align-items: center;
  31. align-content: center;
  32. flex-wrap: wrap;
  33. column-gap: 4px;
  34. row-gap: 6px;
  35. min-height: 40px;
  36. padding: 5px 8px;
  37. border: 1px solid #dcdfe6;
  38. border-bottom: 0;
  39. background: #fafafa;
  40. box-sizing: border-box;
  41. }
  42. .space-editor-toolstrip .el-button + .el-button {
  43. margin-left: 0;
  44. }
  45. .space-editor-toolstrip .space-editor-tool-btn.el-button--small {
  46. display: inline-flex;
  47. align-items: center;
  48. justify-content: center;
  49. min-width: 78px;
  50. height: 30px;
  51. margin: 0;
  52. padding: 8px 10px;
  53. border-color: #dcdfe6;
  54. border-radius: 2px;
  55. background: #fff;
  56. color: #606266;
  57. font-size: 12px;
  58. font-weight: 400;
  59. line-height: 1;
  60. white-space: nowrap;
  61. }
  62. .space-editor-toolstrip .space-editor-tool-btn.el-button--small [class^="el-icon-"],
  63. .space-editor-toolstrip .space-editor-tool-btn.el-button--small [class*=" el-icon-"] {
  64. margin-right: 4px;
  65. font-size: 14px;
  66. }
  67. .space-editor-toolstrip .space-editor-tool-btn.el-button--small:hover,
  68. .space-editor-toolstrip .space-editor-tool-btn.el-button--small:focus {
  69. border-color: #b3d8ff;
  70. background: #ecf5ff;
  71. color: #409eff;
  72. }
  73. .space-editor-toolstrip .space-editor-preview-btn.el-button--primary.is-plain {
  74. border-color: #b3d8ff;
  75. background: #ecf5ff;
  76. color: #409eff;
  77. }
  78. .space-editor-toolstrip .space-editor-preview-btn.el-button--primary.is-plain:hover,
  79. .space-editor-toolstrip .space-editor-preview-btn.el-button--primary.is-plain:focus {
  80. border-color: #409eff;
  81. background: #409eff;
  82. color: #fff;
  83. }
  84. .space-editor-toolstrip .space-editor-tool-divider {
  85. display: inline-block;
  86. width: 1px;
  87. height: 18px;
  88. margin: 0 2px;
  89. background: #dcdfe6;
  90. }
  91. .space-editor-toolstrip .el-input--small .el-input__inner {
  92. height: 30px;
  93. line-height: 28px;
  94. border-color: #dcdfe6;
  95. border-radius: 2px;
  96. background: #fff;
  97. color: #606266;
  98. }
  99. .space-editor-quality {
  100. position: relative;
  101. width: 126px;
  102. margin: 0 2px;
  103. }
  104. .space-editor-quality::before {
  105. content: "图片质量压缩";
  106. position: absolute;
  107. top: 50%;
  108. left: 12px;
  109. z-index: 2;
  110. color: #606266;
  111. font-size: 12px;
  112. line-height: 1;
  113. pointer-events: none;
  114. transform: translateY(-50%);
  115. }
  116. .space-editor-quality .el-input__inner {
  117. color: transparent;
  118. -webkit-text-fill-color: transparent;
  119. }
  120. .space-editor-upload-status {
  121. margin-left: 4px;
  122. font-size: 12px;
  123. line-height: 30px;
  124. color: #909399;
  125. white-space: nowrap;
  126. }
  127. .ck-toolbar__items .space-editor-upload-ck-button,
  128. .ck-toolbar__items .space-editor-video-upload-ck-button {
  129. border-top-right-radius: 0;
  130. border-bottom-right-radius: 0;
  131. margin-right: -1px;
  132. }
  133. .ck-toolbar__items .space-editor-video-upload-ck-button + .space-editor-pdf-upload-ck-button {
  134. border-radius: 0;
  135. }
  136. .ck-toolbar__items .space-editor-video-upload-ck-button + .space-editor-media-link-dropdown > .ck-button {
  137. border-top-left-radius: 0;
  138. border-bottom-left-radius: 0;
  139. }
  140. .ck-toolbar__items .space-editor-pdf-upload-ck-button + .space-editor-media-link-dropdown > .ck-button {
  141. border-top-left-radius: 0;
  142. border-bottom-left-radius: 0;
  143. }
  144. .space-editor-video-upload-icon,
  145. .space-editor-pdf-upload-icon {
  146. width: var(--ck-icon-size);
  147. height: var(--ck-icon-size);
  148. flex-shrink: 0;
  149. }
  150. .space-editor-video-upload-icon path,
  151. .space-editor-pdf-upload-icon path {
  152. fill: currentColor;
  153. }
  154. .space-editor-wrap .ck-content video.space-editor-playable-media,
  155. .space-editor-wrap .ck-content iframe.space-editor-playable-media {
  156. max-width: 100%;
  157. pointer-events: auto !important;
  158. }
  159. .space-editor-wrap .ck-content img,
  160. .space-editor-wrap .ck-content .image img {
  161. display: block;
  162. width: 100% !important;
  163. max-width: 100% !important;
  164. height: auto !important;
  165. margin: 18px 0;
  166. box-sizing: border-box;
  167. }
  168. .space-editor-wrap .ck-content .image {
  169. display: block;
  170. width: 100%;
  171. margin: 18px 0;
  172. text-align: left;
  173. }
  174. .space-editor-wrap .ck-content p:has(img),
  175. .space-editor-wrap .ck-content div:has(img),
  176. .space-editor-wrap .ck-content figure:has(img) {
  177. text-align: left !important;
  178. text-indent: 0 !important;
  179. }
  180. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget .ck-media__wrapper > video,
  181. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget .ck-media__wrapper > iframe {
  182. pointer-events: auto !important;
  183. }
  184. .space-editor-wrap .ck-content video.space-editor-playable-media {
  185. display: block;
  186. margin: 12px auto;
  187. cursor: pointer;
  188. }
  189. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget {
  190. text-align: center;
  191. }
  192. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer,
  193. .space-editor-wrap .ck-content figure.space-editor-video-viewer,
  194. .space-editor-wrap .ck-content figure.media {
  195. width: 100%;
  196. margin: 14px 0;
  197. text-align: center;
  198. }
  199. .space-editor-wrap .ck-content figure.space-editor-video-viewer {
  200. background: #111827;
  201. border: 1px solid #dcdfe6;
  202. box-sizing: border-box;
  203. overflow: hidden;
  204. }
  205. .space-editor-wrap .ck-content figure.space-editor-video-viewer .space-editor-video-frame,
  206. .space-editor-wrap .ck-content figure.space-editor-video-viewer video {
  207. display: block;
  208. width: 100%;
  209. max-width: 100%;
  210. background: #000;
  211. box-sizing: border-box;
  212. pointer-events: auto !important;
  213. }
  214. .space-editor-wrap .ck-content .space-editor-pdf-frame,
  215. .space-editor-wrap .ck-content figure.media .space-editor-pdf-frame {
  216. display: block;
  217. width: 100%;
  218. height: 520px;
  219. min-height: 420px;
  220. border: 1px solid #dcdfe6;
  221. background: #f5f7fa;
  222. box-sizing: border-box;
  223. pointer-events: none;
  224. }
  225. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer figcaption {
  226. margin-top: 8px;
  227. color: #606266;
  228. font-size: 13px;
  229. line-height: 1.6;
  230. pointer-events: auto;
  231. }
  232. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer.space-editor-pdf-selected {
  233. outline: 2px solid #3080fe;
  234. outline-offset: 2px;
  235. }
  236. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer.space-editor-pdf-selected .space-editor-pdf-shell {
  237. border-color: #3080fe;
  238. }
  239. .space-editor-wrap .ck-content .space-editor-pdf-link {
  240. margin: 8px 0 14px;
  241. text-align: center !important;
  242. text-indent: 0 !important;
  243. }
  244. .space-editor-wrap {
  245. position: relative;
  246. }
  247. .space-editor-pdf-secure-tools {
  248. display: inline-flex;
  249. align-items: center;
  250. gap: 10px;
  251. margin-left: 4px;
  252. }
  253. .space-editor-pdf-secure-label-text {
  254. font-size: 12px;
  255. color: #606266;
  256. white-space: nowrap;
  257. }
  258. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar {
  259. display: none;
  260. align-items: center;
  261. justify-content: space-between;
  262. gap: 12px;
  263. min-height: 40px;
  264. padding: 6px 12px;
  265. background: #323639;
  266. color: #f1f3f4;
  267. border-bottom: 1px solid #1f2124;
  268. box-sizing: border-box;
  269. }
  270. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar-left,
  271. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar-right {
  272. display: inline-flex;
  273. align-items: center;
  274. gap: 10px;
  275. min-width: 0;
  276. }
  277. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-title {
  278. font-size: 12px;
  279. font-weight: 600;
  280. color: #e8eaed;
  281. }
  282. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-name {
  283. font-size: 12px;
  284. color: #bdc1c6;
  285. white-space: nowrap;
  286. overflow: hidden;
  287. text-overflow: ellipsis;
  288. max-width: 280px;
  289. }
  290. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar .space-editor-pdf-secure-label {
  291. color: #f1f3f4;
  292. }
  293. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar .space-editor-pdf-download-original {
  294. color: #8ab4f8;
  295. font-size: 12px;
  296. text-decoration: none;
  297. white-space: nowrap;
  298. }
  299. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar .space-editor-pdf-download-original:hover {
  300. text-decoration: underline;
  301. }
  302. .space-editor-pdf-float-toolbar {
  303. position: absolute;
  304. z-index: 20;
  305. display: flex;
  306. align-items: center;
  307. justify-content: space-between;
  308. height: 56px;
  309. padding: 0 12px;
  310. background: #323639;
  311. color: #f1f3f4;
  312. box-sizing: border-box;
  313. pointer-events: auto;
  314. }
  315. .space-editor-wrap .ck-content .space-editor-pdf-shell {
  316. position: relative;
  317. width: 100%;
  318. border: 1px solid #dcdfe6;
  319. background: #f5f7fa;
  320. box-sizing: border-box;
  321. overflow: hidden;
  322. }
  323. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-overlay {
  324. position: absolute;
  325. top: 0;
  326. left: 0;
  327. right: 0;
  328. z-index: 6;
  329. display: flex;
  330. align-items: center;
  331. justify-content: space-between;
  332. height: 56px;
  333. padding: 0 12px;
  334. background: #323639;
  335. color: #f1f3f4;
  336. box-sizing: border-box;
  337. pointer-events: auto;
  338. }
  339. .space-editor-wrap .ck-content .space-editor-pdf-select-layer {
  340. position: absolute;
  341. top: 56px;
  342. left: 0;
  343. right: 0;
  344. bottom: 0;
  345. z-index: 5;
  346. cursor: pointer;
  347. background: transparent;
  348. pointer-events: auto;
  349. }
  350. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer.space-editor-pdf-selected .space-editor-pdf-select-layer {
  351. background: rgba(48, 128, 254, 0.08);
  352. }
  353. .space-editor-wrap .ck-content .space-editor-pdf-preview-error {
  354. position: absolute;
  355. top: 56px;
  356. left: 0;
  357. right: 0;
  358. bottom: 0;
  359. z-index: 8;
  360. display: none;
  361. align-items: center;
  362. justify-content: center;
  363. padding: 24px;
  364. color: #f56c6c;
  365. font-size: 14px;
  366. line-height: 1.6;
  367. text-align: center;
  368. background: #f5f7fa;
  369. box-sizing: border-box;
  370. pointer-events: none;
  371. }
  372. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-title {
  373. font-size: 12px;
  374. color: #e8eaed;
  375. opacity: 0.85;
  376. }
  377. .space-editor-wrap .ck-content .space-editor-pdf-toolbar {
  378. display: flex;
  379. align-items: center;
  380. justify-content: space-between;
  381. height: 36px;
  382. padding: 0 10px;
  383. background: #323639;
  384. color: #f1f3f4;
  385. }
  386. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-left,
  387. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-right {
  388. display: flex;
  389. align-items: center;
  390. gap: 10px;
  391. }
  392. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-right {
  393. margin-left: auto;
  394. }
  395. .space-editor-wrap .ck-content .space-editor-pdf-secure-switch {
  396. display: inline-flex;
  397. align-items: center;
  398. gap: 6px;
  399. margin: 0;
  400. font-size: 12px;
  401. color: #e8eaed;
  402. cursor: pointer;
  403. user-select: none;
  404. }
  405. .space-editor-wrap .ck-content .space-editor-pdf-secure-switch input {
  406. margin: 0;
  407. cursor: pointer;
  408. }
  409. .space-editor-wrap .ck-content .space-editor-pdf-download-original {
  410. color: #8ab4f8;
  411. font-size: 12px;
  412. text-decoration: none;
  413. white-space: nowrap;
  414. }
  415. .space-editor-wrap .ck-content .space-editor-pdf-download-original:hover {
  416. text-decoration: underline;
  417. }
  418. .space-editor-wrap .ck-content .space-editor-pdf-fullscreen-btn {
  419. border: none;
  420. background: transparent;
  421. color: #8ab4f8;
  422. font-size: 12px;
  423. cursor: pointer;
  424. padding: 0;
  425. white-space: nowrap;
  426. }
  427. .space-editor-wrap .ck-content .space-editor-pdf-fullscreen-btn:hover {
  428. text-decoration: underline;
  429. }
  430. .space-editor-wrap .ck-content .space-editor-pdf-shell .space-editor-pdf-frame {
  431. border: 0;
  432. min-height: 480px;
  433. height: 520px;
  434. }
  435. @media screen and (max-width: 768px) {
  436. .space-editor-toolstrip {
  437. column-gap: 4px;
  438. row-gap: 5px;
  439. padding: 6px;
  440. }
  441. .space-editor-toolstrip .space-editor-tool-btn.el-button--small {
  442. min-width: auto;
  443. padding: 7px 8px;
  444. }
  445. .space-editor-toolstrip .space-editor-tool-divider {
  446. display: none;
  447. }
  448. .space-editor-quality {
  449. width: 120px;
  450. }
  451. }
  452. .space-editor-preview-dialog .el-dialog__body {
  453. padding: 12px 18px 18px;
  454. }
  455. .space-editor-preview-dialog {
  456. width: calc(100vw - 32px) !important;
  457. max-width: calc(100vw - 32px);
  458. margin-bottom: 0;
  459. }
  460. .space-editor-preview-dialog .el-dialog__header {
  461. padding: 14px 18px 8px;
  462. }
  463. .space-editor-preview-toolbar {
  464. display: flex;
  465. align-items: center;
  466. justify-content: space-between;
  467. margin-bottom: 12px;
  468. }
  469. .space-editor-preview-stage {
  470. height: calc(100vh - 230px);
  471. min-height: 360px;
  472. max-height: 700px;
  473. overflow: auto;
  474. text-align: center;
  475. background: #f5f7fa;
  476. border: 1px solid #e4e7ed;
  477. padding: 16px;
  478. }
  479. .space-editor-preview-stage iframe {
  480. display: block;
  481. max-width: 100%;
  482. margin: 0 auto;
  483. background: #fff;
  484. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  485. }
  486. .article-info-pc-preview-stage {
  487. box-sizing: border-box;
  488. display: flex;
  489. flex-direction: column;
  490. align-items: center;
  491. height: 100%;
  492. min-height: 0;
  493. overflow: hidden;
  494. text-align: center;
  495. background: #f5f7fa;
  496. border: 1px solid #e4e7ed;
  497. padding: 16px;
  498. }
  499. .article-info-pc-preview-frame {
  500. display: block;
  501. width: 1200px;
  502. max-width: 100%;
  503. flex: 1 1 auto;
  504. min-height: 0;
  505. height: auto !important;
  506. margin: 0 auto;
  507. background: #fff;
  508. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  509. border: 0;
  510. }
  511. .urge-tbs iframe.article-info-pc-preview-frame,
  512. iframe.article-info-pc-preview-frame {
  513. width: 1200px;
  514. max-width: 100%;
  515. flex: 1 1 auto;
  516. min-height: 0;
  517. height: auto !important;
  518. }
  519. html.article-info-layer-page,
  520. html.article-info-layer-page body {
  521. height: 100%;
  522. overflow: hidden;
  523. }
  524. .preview-article-body .ck-content,
  525. .article-body .ck-content {
  526. width: 100%;
  527. margin: 0;
  528. padding: 0;
  529. }
  530. .preview-article-body .ck-content .image,
  531. .preview-article-body .ck-content figure.image,
  532. .article-body .ck-content .image,
  533. .article-body .ck-content figure.image {
  534. display: block !important;
  535. width: 100% !important;
  536. max-width: 100% !important;
  537. margin: 18px 0 !important;
  538. padding: 0 !important;
  539. text-align: left !important;
  540. }
  541. .preview-article-body .ck-content .image img,
  542. .preview-article-body .ck-content img,
  543. .article-body .ck-content .image img,
  544. .article-body .ck-content img {
  545. display: block !important;
  546. width: 100% !important;
  547. max-width: 100% !important;
  548. height: auto !important;
  549. margin: 18px 0 !important;
  550. box-sizing: border-box;
  551. }
  552. .preview-article-body img,
  553. .preview-article-body .article-body img,
  554. .article-body img {
  555. display: block;
  556. width: 100% !important;
  557. max-width: 100% !important;
  558. height: auto !important;
  559. margin: 18px 0;
  560. box-sizing: border-box;
  561. }
  562. .preview-article-body figure.image,
  563. .preview-article-body figure:has(img),
  564. .article-body figure.image,
  565. .article-body figure:has(img) {
  566. display: block !important;
  567. width: 100% !important;
  568. max-width: 100% !important;
  569. margin: 18px 0;
  570. text-align: left !important;
  571. }
  572. .preview-article-body p:has(img),
  573. .preview-article-body div:has(img),
  574. .preview-article-body figure:has(img),
  575. .article-body p:has(img),
  576. .article-body div:has(img),
  577. .article-body figure:has(img) {
  578. text-align: left !important;
  579. text-indent: 0 !important;
  580. }
  581. /* 后台文章信息查看页正文图片对齐标准 */
  582. .article-info-content img {
  583. display: block;
  584. width: 100% !important;
  585. max-width: 100% !important;
  586. height: auto !important;
  587. margin: 18px 0 !important;
  588. box-sizing: border-box;
  589. }
  590. .article-info-content p:has(img),
  591. .article-info-content div:has(img),
  592. .article-info-content figure:has(img) {
  593. text-align: left !important;
  594. text-indent: 0 !important;
  595. }
  596. .article-info-content figure.image {
  597. display: block;
  598. width: 100%;
  599. margin: 18px 0;
  600. text-align: left;
  601. }
  602. .article-info-content figure.image img {
  603. margin: 0 !important;
  604. }
  605. /* Fandol 仿宋:GPL + 字体嵌入例外,许可证见 /main/ffkj-portal/fonts/FandolFang-COPYING.txt */
  606. @font-face{font-family:'仿宋';src:url('/main/ffkj-portal/fonts/FandolFang-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
  607. @font-face{font-family:'FangSong';src:url('/main/ffkj-portal/fonts/FandolFang-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
  608. @font-face{font-family:'FangSong_GB2312';src:url('/main/ffkj-portal/fonts/FandolFang-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
  609. @font-face{font-family:'仿宋_GB2312';src:url('/main/ffkj-portal/fonts/FandolFang-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
  610. @font-face{font-family:'STFangsong';src:url('/main/ffkj-portal/fonts/FandolFang-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}