_editor.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. .editor-toolbar {
  2. z-index: 2;
  3. background-color: rgba(0,0,0,0.65);
  4. border: none;
  5. border-top-left-radius: 0;
  6. border-top-right-radius: 0;
  7. opacity: 1;
  8. position: fixed;
  9. top: 52px;
  10. left: 0;
  11. width: 100%;
  12. &:hover {
  13. opacity: 1;
  14. }
  15. a {
  16. color: #FFF !important;
  17. &.active, &:hover {
  18. background-color: rgba(0,0,0,0.5);
  19. border-color: #888;
  20. }
  21. }
  22. i.separator {
  23. margin-top: 5px;
  24. border-left-color: #000;
  25. border-right-color: #AAA;
  26. }
  27. }
  28. .editor-modal-load {
  29. display: flex;
  30. align-items: center;
  31. opacity: 0;
  32. transition: opacity .5s ease;
  33. span {
  34. font-size: 12px;
  35. color: $blue;
  36. }
  37. i {
  38. margin-left: 10px;
  39. width: 32px;
  40. height: 32px;
  41. display: flex;
  42. justify-content: center;
  43. align-items: center;
  44. &::before {
  45. content: " ";
  46. @include spinner($blue,0.5s,24px);
  47. }
  48. }
  49. &.is-active {
  50. opacity: 1;
  51. }
  52. }
  53. .editor-modal-imagechoices {
  54. display: flex;
  55. flex-wrap: wrap;
  56. align-items: flex-start;
  57. max-height: 450px;
  58. overflow: auto;
  59. overflow-x: hidden;
  60. > figure {
  61. display: flex;
  62. flex-direction: column;
  63. background-color: #FAFAFA;
  64. border-radius: 5px;
  65. padding: 5px;
  66. width: 160px;
  67. min-height: 205px;
  68. margin: 0 5px 10px 5px;
  69. cursor: pointer;
  70. justify-content: center;
  71. align-items: center;
  72. transition: background-color 0.4s ease;
  73. > img {
  74. border: 1px solid #DDD;
  75. border-radius: 5px;
  76. padding: 2px;
  77. background-color: #FFF;
  78. margin: 0 0 5px 0;
  79. }
  80. > span {
  81. font-size: 12px;
  82. > strong {
  83. text-overflow: ellipsis;
  84. white-space: nowrap;
  85. overflow: hidden;
  86. display: block;
  87. width: 150px;
  88. text-align: center;
  89. }
  90. }
  91. &:hover {
  92. background-color: #DDD;
  93. }
  94. &.is-active {
  95. background-color: $primary;
  96. color: #FFF;
  97. > img {
  98. border-color: darken($primary, 10%);
  99. }
  100. > span > strong {
  101. color: #FFF;
  102. }
  103. }
  104. }
  105. }
  106. .editor-modal-imagealign {
  107. .control > span {
  108. letter-spacing: 1px;
  109. text-transform: uppercase;
  110. color: #aeb1b5;
  111. font-size: 11px;
  112. }
  113. > .is-grouped {
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. }
  118. .button > .icon {
  119. margin: 0;
  120. }
  121. }
  122. .editor-modal-folderlist {
  123. height: 358px;
  124. overflow: auto;
  125. overflow-x: hidden;
  126. }
  127. .CodeMirror {
  128. border-left: none;
  129. border-right: none;
  130. padding-top: 52px;
  131. }
  132. .CodeMirror .CodeMirror-code .cm-url {
  133. color: #00ACC1;
  134. }
  135. .CodeMirror .CodeMirror-code .cm-header-1 {
  136. color: #635c8c;
  137. font-size: 2em;
  138. font-weight: 400;
  139. }
  140. .CodeMirror .CodeMirror-code .cm-header-2 {
  141. color: #222324;
  142. font-size: 1.75em;
  143. font-weight: 300;
  144. }
  145. .CodeMirror .CodeMirror-code .cm-header-3 {
  146. color: #222324;
  147. font-size: 1.5em;
  148. font-weight: 300;
  149. }
  150. .editor-toolbar .fa {
  151. font-size: 14px;
  152. }
  153. .ace-container {
  154. position: relative;
  155. }
  156. #page-type-source .ace-container {
  157. min-height: 95vh;
  158. }
  159. #modal-editor-codeblock .ace-container {
  160. height: 400px;
  161. }
  162. #source-display, #codeblock-editor {
  163. position: absolute;
  164. top: 0;
  165. left: 0;
  166. bottom: 0;
  167. right: 0;
  168. }
  169. .modallayer {
  170. position: fixed;
  171. top: 100px;
  172. width: 100%;
  173. background-color: rgba(255,255,255,0.95);
  174. border-bottom: 1px solid $grey-light;
  175. z-index: 6;
  176. padding: 20px;
  177. border-bottom: 1px solid #CCC;
  178. box-shadow: 0 2px 3px rgba(17,17,17,.1);
  179. display: none;
  180. > h3, .column > h3 {
  181. color: $grey-dark;
  182. font-size: 24px;
  183. font-weight: 300;
  184. }
  185. }
  186. .modallayer-content {
  187. }