space.editor.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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 figure.media.space-editor-playable-media-widget .ck-media__wrapper > video,
  136. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget .ck-media__wrapper > iframe {
  137. pointer-events: auto !important;
  138. }
  139. .space-editor-wrap .ck-content video.space-editor-playable-media {
  140. display: block;
  141. margin: 12px auto;
  142. cursor: pointer;
  143. }
  144. .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget {
  145. text-align: center;
  146. }
  147. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer,
  148. .space-editor-wrap .ck-content figure.media {
  149. width: 100%;
  150. margin: 14px 0;
  151. text-align: center;
  152. }
  153. .space-editor-wrap .ck-content .space-editor-pdf-frame,
  154. .space-editor-wrap .ck-content figure.media .space-editor-pdf-frame {
  155. display: block;
  156. width: 100%;
  157. height: 520px;
  158. min-height: 420px;
  159. border: 1px solid #dcdfe6;
  160. background: #f5f7fa;
  161. box-sizing: border-box;
  162. }
  163. .space-editor-wrap .ck-content figure.space-editor-pdf-viewer figcaption {
  164. margin-top: 8px;
  165. color: #606266;
  166. font-size: 13px;
  167. line-height: 1.6;
  168. }
  169. .space-editor-wrap .ck-content .space-editor-pdf-link {
  170. margin: 8px 0 14px;
  171. text-align: center !important;
  172. text-indent: 0 !important;
  173. }
  174. @media screen and (max-width: 768px) {
  175. .space-editor-toolstrip {
  176. column-gap: 4px;
  177. row-gap: 5px;
  178. padding: 6px;
  179. }
  180. .space-editor-toolstrip .space-editor-tool-btn.el-button--small {
  181. min-width: auto;
  182. padding: 7px 8px;
  183. }
  184. .space-editor-toolstrip .space-editor-tool-divider {
  185. display: none;
  186. }
  187. .space-editor-quality {
  188. width: 120px;
  189. }
  190. }
  191. .space-editor-preview-dialog .el-dialog__body {
  192. padding: 12px 18px 18px;
  193. }
  194. .space-editor-preview-dialog {
  195. width: calc(100vw - 32px) !important;
  196. max-width: calc(100vw - 32px);
  197. margin-bottom: 0;
  198. }
  199. .space-editor-preview-dialog .el-dialog__header {
  200. padding: 14px 18px 8px;
  201. }
  202. .space-editor-preview-toolbar {
  203. display: flex;
  204. align-items: center;
  205. justify-content: space-between;
  206. margin-bottom: 12px;
  207. }
  208. .space-editor-preview-stage {
  209. height: calc(100vh - 230px);
  210. min-height: 360px;
  211. max-height: 700px;
  212. overflow: auto;
  213. text-align: center;
  214. background: #f5f7fa;
  215. border: 1px solid #e4e7ed;
  216. padding: 16px;
  217. }
  218. .space-editor-preview-stage iframe {
  219. display: block;
  220. max-width: 100%;
  221. margin: 0 auto;
  222. background: #fff;
  223. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  224. }