space.editor.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. width: 104px;
  77. margin: 0 2px;
  78. }
  79. .space-editor-upload-status {
  80. margin-left: 4px;
  81. font-size: 12px;
  82. line-height: 30px;
  83. color: #909399;
  84. white-space: nowrap;
  85. }
  86. .ck-toolbar__items .space-editor-video-upload-ck-button {
  87. border-top-right-radius: 0;
  88. border-bottom-right-radius: 0;
  89. margin-right: -1px;
  90. }
  91. .ck-toolbar__items .space-editor-video-upload-ck-button + .space-editor-media-link-dropdown > .ck-button {
  92. border-top-left-radius: 0;
  93. border-bottom-left-radius: 0;
  94. }
  95. .space-editor-video-upload-icon {
  96. width: var(--ck-icon-size);
  97. height: var(--ck-icon-size);
  98. flex-shrink: 0;
  99. }
  100. .space-editor-video-upload-icon path {
  101. fill: currentColor;
  102. }
  103. @media screen and (max-width: 768px) {
  104. .space-editor-toolstrip {
  105. column-gap: 4px;
  106. row-gap: 5px;
  107. padding: 6px;
  108. }
  109. .space-editor-toolstrip .space-editor-tool-btn.el-button--small {
  110. min-width: auto;
  111. padding: 7px 8px;
  112. }
  113. .space-editor-toolstrip .space-editor-tool-divider {
  114. display: none;
  115. }
  116. .space-editor-quality {
  117. width: 100px;
  118. }
  119. }
  120. .space-editor-preview-dialog .el-dialog__body {
  121. padding: 12px 18px 18px;
  122. }
  123. .space-editor-preview-dialog {
  124. max-width: calc(100vw - 48px);
  125. margin-bottom: 0;
  126. }
  127. .space-editor-preview-dialog .el-dialog__header {
  128. padding: 14px 18px 8px;
  129. }
  130. .space-editor-preview-toolbar {
  131. display: flex;
  132. align-items: center;
  133. justify-content: space-between;
  134. margin-bottom: 12px;
  135. }
  136. .space-editor-preview-stage {
  137. height: calc(100vh - 230px);
  138. min-height: 360px;
  139. max-height: 700px;
  140. overflow: auto;
  141. text-align: center;
  142. background: #f5f7fa;
  143. border: 1px solid #e4e7ed;
  144. padding: 16px;
  145. }
  146. .space-editor-preview-stage iframe {
  147. display: block;
  148. max-width: 100%;
  149. margin: 0 auto;
  150. background: #fff;
  151. box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  152. }