You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

361 lines
4.9 KiB

  1. .editor-toolbar {
  2. z-index: 2;
  3. background-color: mc('indigo', '900');
  4. border: none;
  5. border-top-left-radius: 0;
  6. border-top-right-radius: 0;
  7. opacity: 1;
  8. position: fixed;
  9. top: 50px;
  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-image-upload, #btn-editor-file-upload {
  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-image-choices {
  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-file-choices {
  149. overflow: auto;
  150. overflow-x: hidden;
  151. > em {
  152. display: flex;
  153. align-items: center;
  154. padding: 25px;
  155. color: mc('grey', '500');
  156. > i {
  157. font-size: 32px;
  158. margin-right: 10px;
  159. color: mc('grey', '300');
  160. }
  161. }
  162. > figure {
  163. display: flex;
  164. background-color: #FAFAFA;
  165. border-radius: 3px;
  166. padding: 5px;
  167. height: 34px;
  168. margin: 0 0 5px 0;
  169. cursor: pointer;
  170. justify-content: flex-start;
  171. align-items: center;
  172. transition: background-color 0.4s ease;
  173. > i {
  174. width: 16px;
  175. }
  176. > span {
  177. font-size: 14px;
  178. flex: 0 1 auto;
  179. padding: 0 15px;
  180. color: mc('grey', '600');
  181. &:first-of-type {
  182. flex: 1 0 auto;
  183. color: mc('grey', '800');
  184. }
  185. &:last-of-type {
  186. width: 100px;
  187. }
  188. }
  189. &:hover {
  190. background-color: #DDD;
  191. }
  192. &.is-active {
  193. background-color: mc('green', '500');
  194. color: #FFF;
  195. > span, strong {
  196. color: #FFF;
  197. }
  198. }
  199. &.is-contextopen {
  200. background-color: mc('blue', '500');
  201. color: #FFF;
  202. > span, strong {
  203. color: #FFF;
  204. }
  205. }
  206. }
  207. }
  208. .editor-modal-imagealign {
  209. .control > span {
  210. letter-spacing: 1px;
  211. text-transform: uppercase;
  212. color: #aeb1b5;
  213. font-size: 11px;
  214. }
  215. > .is-grouped {
  216. display: flex;
  217. align-items: center;
  218. justify-content: center;
  219. }
  220. .button > .icon {
  221. margin: 0;
  222. }
  223. }
  224. .editor-modal-folderlist {
  225. height: 100%;
  226. overflow: auto;
  227. overflow-x: hidden;
  228. }
  229. // CODE MIRROR
  230. .CodeMirror {
  231. border-left: none;
  232. border-right: none;
  233. padding-top: 52px;
  234. font-family: $core-font-monospace;
  235. }
  236. .CodeMirror .CodeMirror-code .cm-url {
  237. color: #00ACC1;
  238. }
  239. .CodeMirror .CodeMirror-code .cm-header-1 {
  240. color: #635c8c;
  241. font-size: 2em;
  242. font-weight: 400;
  243. }
  244. .CodeMirror .CodeMirror-code .cm-header-2 {
  245. color: #222324;
  246. font-size: 1.75em;
  247. font-weight: 300;
  248. }
  249. .CodeMirror .CodeMirror-code .cm-header-3 {
  250. color: #222324;
  251. font-size: 1.5em;
  252. font-weight: 300;
  253. }
  254. .editor-toolbar .fa {
  255. font-size: 14px;
  256. }
  257. // ACE EDITOR
  258. .ace-container {
  259. position: relative;
  260. }
  261. /*.ace_scroller {
  262. width: 100%;
  263. }
  264. .ace_content {
  265. height: 100%;
  266. }*/
  267. #page-type-source .ace-container {
  268. min-height: 95vh;
  269. }
  270. #modal-editor-codeblock .ace-container {
  271. display: flex;
  272. align-items: stretch;
  273. padding: 0;
  274. position: relative;
  275. width: 100%;
  276. height: 100%;
  277. }
  278. #source-display, #codeblock-editor {
  279. position: absolute;
  280. top: 0;
  281. left: 0;
  282. bottom: 0;
  283. right: 0;
  284. }