_editor.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. .editor-toolbar {
  2. z-index: 2;
  3. background-color: rgba(0,0,0,0.75);
  4. border: none;
  5. border-top-left-radius: 0;
  6. border-top-right-radius: 0;
  7. opacity: 1;
  8. position: fixed;
  9. top: 51px;
  10. left: 0;
  11. width: 100%;
  12. &:hover {
  13. opacity: 1;
  14. }
  15. a {
  16. color: #FFF !important;
  17. border: none;
  18. transition: background-color 0.4s ease;
  19. &.active, &:hover, &:focus {
  20. background-color: rgba(0,0,0,0.5);
  21. outline: none;
  22. }
  23. }
  24. i.separator {
  25. margin-top: 5px;
  26. border-left-color: #000;
  27. border-right-color: #AAA;
  28. }
  29. }
  30. .editor-modal-load {
  31. display: flex;
  32. align-items: center;
  33. opacity: 0;
  34. transition: opacity .5s ease;
  35. span {
  36. font-size: 12px;
  37. color: mc('blue', '500');
  38. }
  39. i {
  40. margin-left: 10px;
  41. width: 32px;
  42. height: 32px;
  43. display: flex;
  44. justify-content: center;
  45. align-items: center;
  46. &::before {
  47. content: " ";
  48. @include spinner(mc('blue', '500'),0.5s,24px);
  49. }
  50. }
  51. &.is-active {
  52. opacity: 1;
  53. }
  54. }
  55. #btn-editor-uploadimage {
  56. position: relative;
  57. overflow: hidden;
  58. > label {
  59. display: block;
  60. opacity: 0;
  61. position: absolute;
  62. top: 0;
  63. left: 0;
  64. width: 100%;
  65. height: 100%;
  66. cursor: pointer;
  67. input[type=file] {
  68. opacity: 0;
  69. position: absolute;
  70. top: -9999px;
  71. left: -9999px;
  72. }
  73. }
  74. }
  75. .editor-modal-imagechoices {
  76. display: flex;
  77. flex-wrap: wrap;
  78. align-items: flex-start;
  79. overflow: auto;
  80. overflow-x: hidden;
  81. > em {
  82. display: flex;
  83. align-items: center;
  84. padding: 25px;
  85. color: mc('grey', '500');
  86. > i {
  87. font-size: 32px;
  88. margin-right: 10px;
  89. color: mc('grey', '300');
  90. }
  91. }
  92. > figure {
  93. display: flex;
  94. flex-direction: column;
  95. background-color: #FAFAFA;
  96. border-radius: 5px;
  97. padding: 5px;
  98. width: 160px;
  99. min-height: 205px;
  100. margin: 0 5px 10px 5px;
  101. cursor: pointer;
  102. justify-content: center;
  103. align-items: center;
  104. transition: background-color 0.4s ease;
  105. > img {
  106. border: 1px solid #DDD;
  107. border-radius: 5px;
  108. padding: 2px;
  109. background-color: #FFF;
  110. margin: 0 0 5px 0;
  111. }
  112. > span {
  113. font-size: 12px;
  114. > strong {
  115. text-overflow: ellipsis;
  116. white-space: nowrap;
  117. overflow: hidden;
  118. display: block;
  119. width: 150px;
  120. text-align: center;
  121. }
  122. }
  123. &:hover {
  124. background-color: #DDD;
  125. }
  126. &.is-active {
  127. background-color: mc('green', '500');
  128. color: #FFF;
  129. > img {
  130. border-color: darken(mc('green', '500'), 10%);
  131. }
  132. > span > strong {
  133. color: #FFF;
  134. }
  135. }
  136. &.is-contextopen {
  137. background-color: mc('blue', '500');
  138. color: #FFF;
  139. > img {
  140. border-color: darken(mc('blue', '500'), 10%);
  141. }
  142. > span > strong {
  143. color: #FFF;
  144. }
  145. }
  146. }
  147. }
  148. .editor-modal-imagealign {
  149. .control > span {
  150. letter-spacing: 1px;
  151. text-transform: uppercase;
  152. color: #aeb1b5;
  153. font-size: 11px;
  154. }
  155. > .is-grouped {
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. }
  160. .button > .icon {
  161. margin: 0;
  162. }
  163. }
  164. .editor-modal-folderlist {
  165. height: 100%;
  166. overflow: auto;
  167. overflow-x: hidden;
  168. }
  169. .CodeMirror {
  170. border-left: none;
  171. border-right: none;
  172. padding-top: 52px;
  173. font-family: $core-font-monospace;
  174. }
  175. .CodeMirror .CodeMirror-code .cm-url {
  176. color: #00ACC1;
  177. }
  178. .CodeMirror .CodeMirror-code .cm-header-1 {
  179. color: #635c8c;
  180. font-size: 2em;
  181. font-weight: 400;
  182. }
  183. .CodeMirror .CodeMirror-code .cm-header-2 {
  184. color: #222324;
  185. font-size: 1.75em;
  186. font-weight: 300;
  187. }
  188. .CodeMirror .CodeMirror-code .cm-header-3 {
  189. color: #222324;
  190. font-size: 1.5em;
  191. font-weight: 300;
  192. }
  193. .editor-toolbar .fa {
  194. font-size: 14px;
  195. }
  196. .ace-container {
  197. position: relative;
  198. }
  199. .ace_scroller {
  200. width: 100%;
  201. }
  202. .ace_content {
  203. height: 100%;
  204. }
  205. #page-type-source .ace-container {
  206. min-height: 95vh;
  207. }
  208. #modal-editor-codeblock .ace-container {
  209. display: flex;
  210. align-items: stretch;
  211. padding: 0;
  212. position: relative;
  213. width: 100%;
  214. height: 100%;
  215. #codeblock-editor {
  216. width: 100%;
  217. height: 100%;
  218. min-height: 500px;
  219. }
  220. }
  221. #source-display, #codeblock-editor {
  222. position: absolute;
  223. top: 0;
  224. left: 0;
  225. bottom: 0;
  226. right: 0;
  227. }
  228. .modallayer {
  229. position: fixed;
  230. top: 100px;
  231. width: 100%;
  232. background-color: rgba(255,255,255,0.95);
  233. border-bottom: 1px solid mc('grey', '500');
  234. z-index: 6;
  235. padding: 20px;
  236. border-bottom: 1px solid #CCC;
  237. box-shadow: 0 2px 3px rgba(17,17,17,.1);
  238. display: none;
  239. > h3, .column > h3 {
  240. color: mc('grey', '700');
  241. font-size: 24px;
  242. font-weight: 300;
  243. }
  244. }
  245. .modallayer-content {
  246. }