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.

390 lines
5.4 KiB

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