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.

273 lines
3.8 KiB

  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. 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: $blue;
  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($blue,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. max-height: 450px;
  80. overflow: auto;
  81. overflow-x: hidden;
  82. > figure {
  83. display: flex;
  84. flex-direction: column;
  85. background-color: #FAFAFA;
  86. border-radius: 5px;
  87. padding: 5px;
  88. width: 160px;
  89. min-height: 205px;
  90. margin: 0 5px 10px 5px;
  91. cursor: pointer;
  92. justify-content: center;
  93. align-items: center;
  94. transition: background-color 0.4s ease;
  95. > img {
  96. border: 1px solid #DDD;
  97. border-radius: 5px;
  98. padding: 2px;
  99. background-color: #FFF;
  100. margin: 0 0 5px 0;
  101. }
  102. > span {
  103. font-size: 12px;
  104. > strong {
  105. text-overflow: ellipsis;
  106. white-space: nowrap;
  107. overflow: hidden;
  108. display: block;
  109. width: 150px;
  110. text-align: center;
  111. }
  112. }
  113. &:hover {
  114. background-color: #DDD;
  115. }
  116. &.is-active {
  117. background-color: $primary;
  118. color: #FFF;
  119. > img {
  120. border-color: darken($primary, 10%);
  121. }
  122. > span > strong {
  123. color: #FFF;
  124. }
  125. }
  126. &.is-contextopen {
  127. background-color: $warning;
  128. color: #FFF;
  129. > img {
  130. border-color: darken($warning, 10%);
  131. }
  132. > span > strong {
  133. color: #FFF;
  134. }
  135. }
  136. }
  137. }
  138. .editor-modal-imagealign {
  139. .control > span {
  140. letter-spacing: 1px;
  141. text-transform: uppercase;
  142. color: #aeb1b5;
  143. font-size: 11px;
  144. }
  145. > .is-grouped {
  146. display: flex;
  147. align-items: center;
  148. justify-content: center;
  149. }
  150. .button > .icon {
  151. margin: 0;
  152. }
  153. }
  154. .editor-modal-folderlist {
  155. height: 358px;
  156. overflow: auto;
  157. overflow-x: hidden;
  158. }
  159. .CodeMirror {
  160. border-left: none;
  161. border-right: none;
  162. padding-top: 52px;
  163. }
  164. .CodeMirror .CodeMirror-code .cm-url {
  165. color: #00ACC1;
  166. }
  167. .CodeMirror .CodeMirror-code .cm-header-1 {
  168. color: #635c8c;
  169. font-size: 2em;
  170. font-weight: 400;
  171. }
  172. .CodeMirror .CodeMirror-code .cm-header-2 {
  173. color: #222324;
  174. font-size: 1.75em;
  175. font-weight: 300;
  176. }
  177. .CodeMirror .CodeMirror-code .cm-header-3 {
  178. color: #222324;
  179. font-size: 1.5em;
  180. font-weight: 300;
  181. }
  182. .editor-toolbar .fa {
  183. font-size: 14px;
  184. }
  185. .ace-container {
  186. position: relative;
  187. }
  188. #page-type-source .ace-container {
  189. min-height: 95vh;
  190. }
  191. #modal-editor-codeblock .ace-container {
  192. height: 400px;
  193. }
  194. #source-display, #codeblock-editor {
  195. position: absolute;
  196. top: 0;
  197. left: 0;
  198. bottom: 0;
  199. right: 0;
  200. }
  201. .modallayer {
  202. position: fixed;
  203. top: 100px;
  204. width: 100%;
  205. background-color: rgba(255,255,255,0.95);
  206. border-bottom: 1px solid $grey-light;
  207. z-index: 6;
  208. padding: 20px;
  209. border-bottom: 1px solid #CCC;
  210. box-shadow: 0 2px 3px rgba(17,17,17,.1);
  211. display: none;
  212. > h3, .column > h3 {
  213. color: $grey-dark;
  214. font-size: 24px;
  215. font-weight: 300;
  216. }
  217. }
  218. .modallayer-content {
  219. }