space.editor.css 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. .space-editor-wrap {
  2. width: 100%;
  3. }
  4. .space-editor-toolstrip {
  5. display: flex;
  6. align-items: center;
  7. align-content: center;
  8. flex-wrap: wrap;
  9. column-gap: 4px;
  10. row-gap: 6px;
  11. min-height: 40px;
  12. padding: 5px 8px;
  13. border: 1px solid #dcdfe6;
  14. border-bottom: 0;
  15. background: #fafafa;
  16. box-sizing: border-box;
  17. }
  18. .space-editor-toolstrip .el-button + .el-button {
  19. margin-left: 0;
  20. }
  21. .space-editor-toolstrip .space-editor-tool-btn.el-button--small {
  22. display: inline-flex;
  23. align-items: center;
  24. justify-content: center;
  25. min-width: 78px;
  26. height: 30px;
  27. margin: 0;
  28. padding: 8px 10px;
  29. border-color: #dcdfe6;
  30. border-radius: 2px;
  31. background: #fff;
  32. color: #606266;
  33. font-size: 12px;
  34. font-weight: 400;
  35. line-height: 1;
  36. white-space: nowrap;
  37. }
  38. .space-editor-toolstrip .space-editor-tool-btn.el-button--small [class^="el-icon-"],
  39. .space-editor-toolstrip .space-editor-tool-btn.el-button--small [class*=" el-icon-"] {
  40. margin-right: 4px;
  41. font-size: 14px;
  42. }
  43. .space-editor-toolstrip .space-editor-tool-btn.el-button--small:hover,
  44. .space-editor-toolstrip .space-editor-tool-btn.el-button--small:focus {
  45. border-color: #b3d8ff;
  46. background: #ecf5ff;
  47. color: #409eff;
  48. }
  49. .space-editor-toolstrip .space-editor-preview-btn.el-button--primary.is-plain {
  50. border-color: #b3d8ff;
  51. background: #ecf5ff;
  52. color: #409eff;
  53. }
  54. .space-editor-toolstrip .space-editor-preview-btn.el-button--primary.is-plain:hover,
  55. .space-editor-toolstrip .space-editor-preview-btn.el-button--primary.is-plain:focus {
  56. border-color: #409eff;
  57. background: #409eff;
  58. color: #fff;
  59. }
  60. .space-editor-toolstrip .space-editor-tool-divider {
  61. display: inline-block;
  62. width: 1px;
  63. height: 18px;
  64. margin: 0 2px;
  65. background: #dcdfe6;
  66. }
  67. .space-editor-toolstrip .el-input--small .el-input__inner {
  68. height: 30px;
  69. line-height: 28px;
  70. border-color: #dcdfe6;
  71. border-radius: 2px;
  72. background: #fff;
  73. color: #606266;
  74. }
  75. .space-editor-quality {
  76. position: relative;
  77. width: 126px;
  78. margin: 0 2px;
  79. }
  80. .space-editor-quality::before {
  81. content: "图片质量压缩";
  82. position: absolute;
  83. top: 50%;
  84. left: 12px;
  85. z-index: 2;
  86. color: #606266;
  87. font-size: 12px;
  88. line-height: 1;
  89. pointer-events: none;
  90. transform: translateY(-50%);
  91. }
  92. .space-editor-quality .el-input__inner {
  93. color: transparent;
  94. -webkit-text-fill-color: transparent;
  95. }
  96. .space-editor-upload-status {
  97. margin-left: 4px;
  98. font-size: 12px;
  99. line-height: 30px;
  100. color: #909399;
  101. white-space: nowrap;
  102. }
  103. .ck-toolbar__items .space-editor-upload-ck-button,
  104. .ck-toolbar__items .space-editor-video-upload-ck-button {
  105. border-top-right-radius: 0;
  106. border-bottom-right-radius: 0;
  107. margin-right: -1px;
  108. }
  109. .ck-toolbar__items .space-editor-video-upload-ck-button + .space-editor-pdf-upload-ck-button {
  110. border-radius: 0;
  111. }
  112. .ck-toolbar__items .space-editor-video-upload-ck-button + .space-editor-media-link-dropdown > .ck-button {
  113. border-top-left-radius: 0;
  114. border-bottom-left-radius: 0;
  115. }
  116. .ck-toolbar__items .space-editor-pdf-upload-ck-button + .space-editor-media-link-dropdown > .ck-button {
  117. border-top-left-radius: 0;
  118. border-bottom-left-radius: 0;
  119. }
  120. .space-editor-video-upload-icon,
  121. .space-editor-pdf-upload-icon {
  122. width: var(--ck-icon-size);
  123. height: var(--ck-icon-size);
  124. flex-shrink: 0;
  125. }
  126. .space-editor-video-upload-icon path,
  127. .space-editor-pdf-upload-icon path {
  128. fill: currentColor;
  129. }
  130. .space-editor-wrap .ck-content video.space-editor-playable-media,
  131. .space-editor-wrap .ck-content iframe.space-editor-playable-media {
  132. max-width: 100%;
  133. pointer-events: auto !important;
  134. }
  135. .space-editor-wrap .ck-content img,
  136. .space-editor-wrap .ck-content .image img {
  137. display: block;
  138. width: 100% !important;
  139. max-width: 100% !important;
  140. height: auto !important;
  141. margin: 18px 0;
  142. box-sizing: border-box;
  143. }
  144. .space-editor-wrap .ck-content .image {
  145. display: block;
  146. width: 100%;
  147. margin: 18px 0;
  148. text-align: left;
  149. }
  150. .space-editor-wrap .ck-content p:has(img),
  151. .space-editor-wrap .ck-content div:has(img),
  152. .space-editor-wrap .ck-content figure:has(img) {
  153. text-align: left !important;
  154. text-indent: 0 !important;
  155. }
  156. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget .ck-media__wrapper > video,
  157. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget .ck-media__wrapper > iframe {
  158. pointer-events: auto !important;
  159. }
  160. .space-editor-wrap .ck-content video.space-editor-playable-media {
  161. display: block;
  162. margin: 12px auto;
  163. cursor: pointer;
  164. }
  165. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget {
  166. text-align: center;
  167. }
  168. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer,
  169. .space-editor-wrap .ck-content figure.media {
  170. width: 100%;
  171. margin: 14px 0;
  172. text-align: center;
  173. }
  174. .space-editor-wrap .ck-content .space-editor-pdf-frame,
  175. .space-editor-wrap .ck-content figure.media .space-editor-pdf-frame {
  176. display: block;
  177. width: 100%;
  178. height: 520px;
  179. min-height: 420px;
  180. border: 1px solid #dcdfe6;
  181. background: #f5f7fa;
  182. box-sizing: border-box;
  183. }
  184. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer figcaption {
  185. margin-top: 8px;
  186. color: #606266;
  187. font-size: 13px;
  188. line-height: 1.6;
  189. }
  190. .space-editor-wrap .ck-content .space-editor-pdf-link {
  191. margin: 8px 0 14px;
  192. text-align: center !important;
  193. text-indent: 0 !important;
  194. }
  195. @media screen and (max-width: 768px) {
  196. .space-editor-toolstrip {
  197. column-gap: 4px;
  198. row-gap: 5px;
  199. padding: 6px;
  200. }
  201. .space-editor-toolstrip .space-editor-tool-btn.el-button--small {
  202. min-width: auto;
  203. padding: 7px 8px;
  204. }
  205. .space-editor-toolstrip .space-editor-tool-divider {
  206. display: none;
  207. }
  208. .space-editor-quality {
  209. width: 120px;
  210. }
  211. }
  212. .space-editor-preview-dialog .el-dialog__body {
  213. padding: 12px 18px 18px;
  214. }
  215. .space-editor-preview-dialog {
  216. width: calc(100vw - 32px) !important;
  217. max-width: calc(100vw - 32px);
  218. margin-bottom: 0;
  219. }
  220. .space-editor-preview-dialog .el-dialog__header {
  221. padding: 14px 18px 8px;
  222. }
  223. .space-editor-preview-toolbar {
  224. display: flex;
  225. align-items: center;
  226. justify-content: space-between;
  227. margin-bottom: 12px;
  228. }
  229. .space-editor-preview-stage {
  230. height: calc(100vh - 230px);
  231. min-height: 360px;
  232. max-height: 700px;
  233. overflow: auto;
  234. text-align: center;
  235. background: #f5f7fa;
  236. border: 1px solid #e4e7ed;
  237. padding: 16px;
  238. }
  239. .space-editor-preview-stage iframe {
  240. display: block;
  241. max-width: 100%;
  242. margin: 0 auto;
  243. background: #fff;
  244. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  245. }
  246. .article-info-pc-preview-stage {
  247. box-sizing: border-box;
  248. display: flex;
  249. flex-direction: column;
  250. align-items: center;
  251. height: 100%;
  252. min-height: 0;
  253. overflow: hidden;
  254. text-align: center;
  255. background: #f5f7fa;
  256. border: 1px solid #e4e7ed;
  257. padding: 16px;
  258. }
  259. .article-info-pc-preview-frame {
  260. display: block;
  261. width: 1200px;
  262. max-width: 100%;
  263. flex: 1 1 auto;
  264. min-height: 0;
  265. height: auto !important;
  266. margin: 0 auto;
  267. background: #fff;
  268. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  269. border: 0;
  270. }
  271. .urge-tbs iframe.article-info-pc-preview-frame,
  272. iframe.article-info-pc-preview-frame {
  273. width: 1200px;
  274. max-width: 100%;
  275. flex: 1 1 auto;
  276. min-height: 0;
  277. height: auto !important;
  278. }
  279. html.article-info-layer-page,
  280. html.article-info-layer-page body {
  281. height: 100%;
  282. overflow: hidden;
  283. }
  284. .preview-article-body .ck-content,
  285. .article-body .ck-content {
  286. width: 100%;
  287. margin: 0;
  288. padding: 0;
  289. }
  290. .preview-article-body .ck-content .image,
  291. .preview-article-body .ck-content figure.image,
  292. .article-body .ck-content .image,
  293. .article-body .ck-content figure.image {
  294. display: block !important;
  295. width: 100% !important;
  296. max-width: 100% !important;
  297. margin: 18px 0 !important;
  298. padding: 0 !important;
  299. text-align: left !important;
  300. }
  301. .preview-article-body .ck-content .image img,
  302. .preview-article-body .ck-content img,
  303. .article-body .ck-content .image img,
  304. .article-body .ck-content img {
  305. display: block !important;
  306. width: 100% !important;
  307. max-width: 100% !important;
  308. height: auto !important;
  309. margin: 18px 0 !important;
  310. box-sizing: border-box;
  311. }
  312. .preview-article-body img,
  313. .preview-article-body .article-body img,
  314. .article-body img {
  315. display: block;
  316. width: 100% !important;
  317. max-width: 100% !important;
  318. height: auto !important;
  319. margin: 18px 0;
  320. box-sizing: border-box;
  321. }
  322. .preview-article-body figure.image,
  323. .preview-article-body figure:has(img),
  324. .article-body figure.image,
  325. .article-body figure:has(img) {
  326. display: block !important;
  327. width: 100% !important;
  328. max-width: 100% !important;
  329. margin: 18px 0;
  330. text-align: left !important;
  331. }
  332. .preview-article-body p:has(img),
  333. .preview-article-body div:has(img),
  334. .preview-article-body figure:has(img),
  335. .article-body p:has(img),
  336. .article-body div:has(img),
  337. .article-body figure:has(img) {
  338. text-align: left !important;
  339. text-indent: 0 !important;
  340. }
  341. /* 后台文章信息查看页正文图片对齐标准 */
  342. .article-info-content img {
  343. display: block;
  344. width: 100% !important;
  345. max-width: 100% !important;
  346. height: auto !important;
  347. margin: 18px 0 !important;
  348. box-sizing: border-box;
  349. }
  350. .article-info-content p:has(img),
  351. .article-info-content div:has(img),
  352. .article-info-content figure:has(img) {
  353. text-align: left !important;
  354. text-indent: 0 !important;
  355. }
  356. .article-info-content figure.image {
  357. display: block;
  358. width: 100%;
  359. margin: 18px 0;
  360. text-align: left;
  361. }
  362. .article-info-content figure.image img {
  363. margin: 0 !important;
  364. }