space.editor.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  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.media {
  194. width: 100%;
  195. margin: 14px 0;
  196. text-align: center;
  197. }
  198. .space-editor-wrap .ck-content .space-editor-pdf-frame,
  199. .space-editor-wrap .ck-content figure.media .space-editor-pdf-frame {
  200. display: block;
  201. width: 100%;
  202. height: 520px;
  203. min-height: 420px;
  204. border: 1px solid #dcdfe6;
  205. background: #f5f7fa;
  206. box-sizing: border-box;
  207. pointer-events: none;
  208. }
  209. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer figcaption {
  210. margin-top: 8px;
  211. color: #606266;
  212. font-size: 13px;
  213. line-height: 1.6;
  214. pointer-events: auto;
  215. }
  216. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer.space-editor-pdf-selected {
  217. outline: 2px solid #3080fe;
  218. outline-offset: 2px;
  219. }
  220. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer.space-editor-pdf-selected .space-editor-pdf-shell {
  221. border-color: #3080fe;
  222. }
  223. .space-editor-wrap .ck-content .space-editor-pdf-link {
  224. margin: 8px 0 14px;
  225. text-align: center !important;
  226. text-indent: 0 !important;
  227. }
  228. .space-editor-wrap {
  229. position: relative;
  230. }
  231. .space-editor-pdf-secure-tools {
  232. display: inline-flex;
  233. align-items: center;
  234. gap: 10px;
  235. margin-left: 4px;
  236. }
  237. .space-editor-pdf-secure-label-text {
  238. font-size: 12px;
  239. color: #606266;
  240. white-space: nowrap;
  241. }
  242. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar {
  243. display: none;
  244. align-items: center;
  245. justify-content: space-between;
  246. gap: 12px;
  247. min-height: 40px;
  248. padding: 6px 12px;
  249. background: #323639;
  250. color: #f1f3f4;
  251. border-bottom: 1px solid #1f2124;
  252. box-sizing: border-box;
  253. }
  254. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar-left,
  255. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar-right {
  256. display: inline-flex;
  257. align-items: center;
  258. gap: 10px;
  259. min-width: 0;
  260. }
  261. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-title {
  262. font-size: 12px;
  263. font-weight: 600;
  264. color: #e8eaed;
  265. }
  266. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-name {
  267. font-size: 12px;
  268. color: #bdc1c6;
  269. white-space: nowrap;
  270. overflow: hidden;
  271. text-overflow: ellipsis;
  272. max-width: 280px;
  273. }
  274. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar .space-editor-pdf-secure-label {
  275. color: #f1f3f4;
  276. }
  277. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar .space-editor-pdf-download-original {
  278. color: #8ab4f8;
  279. font-size: 12px;
  280. text-decoration: none;
  281. white-space: nowrap;
  282. }
  283. .space-editor-wrap .ck-editor .space-editor-pdf-ck-secure-bar .space-editor-pdf-download-original:hover {
  284. text-decoration: underline;
  285. }
  286. .space-editor-pdf-float-toolbar {
  287. position: absolute;
  288. z-index: 20;
  289. display: flex;
  290. align-items: center;
  291. justify-content: space-between;
  292. height: 56px;
  293. padding: 0 12px;
  294. background: #323639;
  295. color: #f1f3f4;
  296. box-sizing: border-box;
  297. pointer-events: auto;
  298. }
  299. .space-editor-wrap .ck-content .space-editor-pdf-shell {
  300. position: relative;
  301. width: 100%;
  302. border: 1px solid #dcdfe6;
  303. background: #f5f7fa;
  304. box-sizing: border-box;
  305. overflow: hidden;
  306. }
  307. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-overlay {
  308. position: absolute;
  309. top: 0;
  310. left: 0;
  311. right: 0;
  312. z-index: 6;
  313. display: flex;
  314. align-items: center;
  315. justify-content: space-between;
  316. height: 56px;
  317. padding: 0 12px;
  318. background: #323639;
  319. color: #f1f3f4;
  320. box-sizing: border-box;
  321. pointer-events: auto;
  322. }
  323. .space-editor-wrap .ck-content .space-editor-pdf-select-layer {
  324. position: absolute;
  325. top: 56px;
  326. left: 0;
  327. right: 0;
  328. bottom: 0;
  329. z-index: 5;
  330. cursor: pointer;
  331. background: transparent;
  332. pointer-events: auto;
  333. }
  334. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer.space-editor-pdf-selected .space-editor-pdf-select-layer {
  335. background: rgba(48, 128, 254, 0.08);
  336. }
  337. .space-editor-wrap .ck-content .space-editor-pdf-preview-error {
  338. position: absolute;
  339. top: 56px;
  340. left: 0;
  341. right: 0;
  342. bottom: 0;
  343. z-index: 8;
  344. display: none;
  345. align-items: center;
  346. justify-content: center;
  347. padding: 24px;
  348. color: #f56c6c;
  349. font-size: 14px;
  350. line-height: 1.6;
  351. text-align: center;
  352. background: #f5f7fa;
  353. box-sizing: border-box;
  354. pointer-events: none;
  355. }
  356. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-title {
  357. font-size: 12px;
  358. color: #e8eaed;
  359. opacity: 0.85;
  360. }
  361. .space-editor-wrap .ck-content .space-editor-pdf-toolbar {
  362. display: flex;
  363. align-items: center;
  364. justify-content: space-between;
  365. height: 36px;
  366. padding: 0 10px;
  367. background: #323639;
  368. color: #f1f3f4;
  369. }
  370. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-left,
  371. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-right {
  372. display: flex;
  373. align-items: center;
  374. gap: 10px;
  375. }
  376. .space-editor-wrap .ck-content .space-editor-pdf-toolbar-right {
  377. margin-left: auto;
  378. }
  379. .space-editor-wrap .ck-content .space-editor-pdf-secure-switch {
  380. display: inline-flex;
  381. align-items: center;
  382. gap: 6px;
  383. margin: 0;
  384. font-size: 12px;
  385. color: #e8eaed;
  386. cursor: pointer;
  387. user-select: none;
  388. }
  389. .space-editor-wrap .ck-content .space-editor-pdf-secure-switch input {
  390. margin: 0;
  391. cursor: pointer;
  392. }
  393. .space-editor-wrap .ck-content .space-editor-pdf-download-original {
  394. color: #8ab4f8;
  395. font-size: 12px;
  396. text-decoration: none;
  397. white-space: nowrap;
  398. }
  399. .space-editor-wrap .ck-content .space-editor-pdf-download-original:hover {
  400. text-decoration: underline;
  401. }
  402. .space-editor-wrap .ck-content .space-editor-pdf-fullscreen-btn {
  403. border: none;
  404. background: transparent;
  405. color: #8ab4f8;
  406. font-size: 12px;
  407. cursor: pointer;
  408. padding: 0;
  409. white-space: nowrap;
  410. }
  411. .space-editor-wrap .ck-content .space-editor-pdf-fullscreen-btn:hover {
  412. text-decoration: underline;
  413. }
  414. .space-editor-wrap .ck-content .space-editor-pdf-shell .space-editor-pdf-frame {
  415. border: 0;
  416. min-height: 480px;
  417. height: 520px;
  418. }
  419. @media screen and (max-width: 768px) {
  420. .space-editor-toolstrip {
  421. column-gap: 4px;
  422. row-gap: 5px;
  423. padding: 6px;
  424. }
  425. .space-editor-toolstrip .space-editor-tool-btn.el-button--small {
  426. min-width: auto;
  427. padding: 7px 8px;
  428. }
  429. .space-editor-toolstrip .space-editor-tool-divider {
  430. display: none;
  431. }
  432. .space-editor-quality {
  433. width: 120px;
  434. }
  435. }
  436. .space-editor-preview-dialog .el-dialog__body {
  437. padding: 12px 18px 18px;
  438. }
  439. .space-editor-preview-dialog {
  440. width: calc(100vw - 32px) !important;
  441. max-width: calc(100vw - 32px);
  442. margin-bottom: 0;
  443. }
  444. .space-editor-preview-dialog .el-dialog__header {
  445. padding: 14px 18px 8px;
  446. }
  447. .space-editor-preview-toolbar {
  448. display: flex;
  449. align-items: center;
  450. justify-content: space-between;
  451. margin-bottom: 12px;
  452. }
  453. .space-editor-preview-stage {
  454. height: calc(100vh - 230px);
  455. min-height: 360px;
  456. max-height: 700px;
  457. overflow: auto;
  458. text-align: center;
  459. background: #f5f7fa;
  460. border: 1px solid #e4e7ed;
  461. padding: 16px;
  462. }
  463. .space-editor-preview-stage iframe {
  464. display: block;
  465. max-width: 100%;
  466. margin: 0 auto;
  467. background: #fff;
  468. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  469. }
  470. .article-info-pc-preview-stage {
  471. box-sizing: border-box;
  472. display: flex;
  473. flex-direction: column;
  474. align-items: center;
  475. height: 100%;
  476. min-height: 0;
  477. overflow: hidden;
  478. text-align: center;
  479. background: #f5f7fa;
  480. border: 1px solid #e4e7ed;
  481. padding: 16px;
  482. }
  483. .article-info-pc-preview-frame {
  484. display: block;
  485. width: 1200px;
  486. max-width: 100%;
  487. flex: 1 1 auto;
  488. min-height: 0;
  489. height: auto !important;
  490. margin: 0 auto;
  491. background: #fff;
  492. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  493. border: 0;
  494. }
  495. .urge-tbs iframe.article-info-pc-preview-frame,
  496. iframe.article-info-pc-preview-frame {
  497. width: 1200px;
  498. max-width: 100%;
  499. flex: 1 1 auto;
  500. min-height: 0;
  501. height: auto !important;
  502. }
  503. html.article-info-layer-page,
  504. html.article-info-layer-page body {
  505. height: 100%;
  506. overflow: hidden;
  507. }
  508. .preview-article-body .ck-content,
  509. .article-body .ck-content {
  510. width: 100%;
  511. margin: 0;
  512. padding: 0;
  513. }
  514. .preview-article-body .ck-content .image,
  515. .preview-article-body .ck-content figure.image,
  516. .article-body .ck-content .image,
  517. .article-body .ck-content figure.image {
  518. display: block !important;
  519. width: 100% !important;
  520. max-width: 100% !important;
  521. margin: 18px 0 !important;
  522. padding: 0 !important;
  523. text-align: left !important;
  524. }
  525. .preview-article-body .ck-content .image img,
  526. .preview-article-body .ck-content img,
  527. .article-body .ck-content .image img,
  528. .article-body .ck-content img {
  529. display: block !important;
  530. width: 100% !important;
  531. max-width: 100% !important;
  532. height: auto !important;
  533. margin: 18px 0 !important;
  534. box-sizing: border-box;
  535. }
  536. .preview-article-body img,
  537. .preview-article-body .article-body img,
  538. .article-body img {
  539. display: block;
  540. width: 100% !important;
  541. max-width: 100% !important;
  542. height: auto !important;
  543. margin: 18px 0;
  544. box-sizing: border-box;
  545. }
  546. .preview-article-body figure.image,
  547. .preview-article-body figure:has(img),
  548. .article-body figure.image,
  549. .article-body figure:has(img) {
  550. display: block !important;
  551. width: 100% !important;
  552. max-width: 100% !important;
  553. margin: 18px 0;
  554. text-align: left !important;
  555. }
  556. .preview-article-body p:has(img),
  557. .preview-article-body div:has(img),
  558. .preview-article-body figure:has(img),
  559. .article-body p:has(img),
  560. .article-body div:has(img),
  561. .article-body figure:has(img) {
  562. text-align: left !important;
  563. text-indent: 0 !important;
  564. }
  565. /* 后台文章信息查看页正文图片对齐标准 */
  566. .article-info-content img {
  567. display: block;
  568. width: 100% !important;
  569. max-width: 100% !important;
  570. height: auto !important;
  571. margin: 18px 0 !important;
  572. box-sizing: border-box;
  573. }
  574. .article-info-content p:has(img),
  575. .article-info-content div:has(img),
  576. .article-info-content figure:has(img) {
  577. text-align: left !important;
  578. text-indent: 0 !important;
  579. }
  580. .article-info-content figure.image {
  581. display: block;
  582. width: 100%;
  583. margin: 18px 0;
  584. text-align: left;
  585. }
  586. .article-info-content figure.image img {
  587. margin: 0 !important;
  588. }