editor.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. body .form-control, .wmd-input, .wmd-preview {
  2. font-family: Georgia, sans-serif;
  3. }
  4. blockquote {
  5. border-left: 2px dotted #888;
  6. padding-left: 5px;
  7. background: #F6F7F9;
  8. }
  9. .wmd-panel {
  10. float: left;
  11. }
  12. .wmd-button-bar {
  13. background-color: #F6F7F9;
  14. padding: 5px 0;
  15. margin-bottom: 10px;
  16. width: 100%;
  17. border: 1px solid #CFDAE5;
  18. border-radius:5px;
  19. display: block;
  20. float: left;
  21. }
  22. .dark-mode .wmd-button-bar {
  23. background-color: #292d32;
  24. border-color: #292d32 !important;
  25. }
  26. .wmd-button-bar:hover {
  27. border: 1px solid #CCCCCC;
  28. }
  29. .wmd-input {
  30. min-height: 300px;
  31. }
  32. .wmd-preview {
  33. background-color: #E4EBF1;
  34. float: left;
  35. padding: 2%;
  36. }
  37. .wmd-preview table {
  38. margin: 20px 0;
  39. }
  40. .wmd-preview td, .wmd-preview th {
  41. border-right: 1px solid #ccc;
  42. padding: 8px 12px;
  43. }
  44. .wmd-preview td:last-child, .wmd-preview th:last-child {
  45. border-right: none;
  46. }
  47. .wmd-preview td {
  48. border-top: 1px solid #ccc;
  49. }
  50. .wmd-button-row {
  51. position: relative;
  52. margin: 0px;
  53. padding: 0px;
  54. }
  55. .wmd-spacer {
  56. width: 1px;
  57. height: 20px;
  58. background-color: Silver;
  59. list-style: none;
  60. float: left;
  61. margin: 5px;
  62. }
  63. .wmd-button {
  64. list-style: none;
  65. cursor: pointer;
  66. float: left;
  67. }
  68. .wmd-button > span {
  69. background-repeat: no-repeat;
  70. background-position: 0px 0px;
  71. display: inline-block;
  72. }
  73. .dark-mode .wmd-button > span.btn-light {
  74. color: #fff;
  75. background-color: #292d32;
  76. border-color: #292d32;
  77. box-shadow: none;
  78. }
  79. .dark-mode .wmd-button > span.btn-light:not(.disabled):hover {
  80. background-color: #171a1d;
  81. border-color: #343a40;
  82. }
  83. .wmd-spacer1 {
  84. left: 50px;
  85. }
  86. .wmd-spacer2 {
  87. left: 175px;
  88. }
  89. .wmd-spacer3 {
  90. left: 300px;
  91. }
  92. .wmd-prompt-background {
  93. background-color: Black;
  94. }
  95. .wmd-prompt-dialog {
  96. border: 1px solid #999999;
  97. background-color: #F5F5F5;
  98. }
  99. .wmd-prompt-dialog > div {
  100. font-size: 0.8em;
  101. font-family: arial, helvetica, sans-serif;
  102. }
  103. .wmd-prompt-dialog > form > input[type="text"] {
  104. border: 1px solid #999999;
  105. color: black;
  106. }
  107. .wmd-prompt-dialog > form > input[type="button"] {
  108. border: 1px solid #888888;
  109. font-family: trebuchet MS, helvetica, sans-serif;
  110. font-size: 0.8em;
  111. font-weight: bold;
  112. }
  113. #wmd-maximize-button, #wmd-minimize-button {
  114. float: right;
  115. }
  116. div.fullscreen-editor {
  117. position: fixed;
  118. top: 0;
  119. bottom: 0;
  120. left: 0;
  121. right: 0;
  122. width: 100%;
  123. height: 100%;
  124. display: flex;
  125. flex-direction: column;
  126. }
  127. div.fullscreen-editor > textarea {
  128. flex: 1;
  129. margin-bottom: 10px;
  130. }
  131. div.fullscreen-wrapper > div#preview-col,
  132. div.fullscreen-editor > a,
  133. div.fullscreen-editor > br,
  134. div.fullscreen-editor > details,
  135. div.fullscreen-editor > label,
  136. div.fullscreen-editor > input[type="submit"] {
  137. display: none;
  138. }
  139. pre {
  140. margin: 1em 0;
  141. overflow: auto;
  142. background: #F1F1FF;
  143. }
  144. pre code {
  145. color: #333333;
  146. display: block;
  147. font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
  148. font-size: 14px;
  149. padding: 5px 10px;
  150. }
  151. @media all and (max-width: 980px) {
  152. .nav {
  153. width: 100%;
  154. padding: 2%;
  155. }
  156. .wmd-panel, .wmd-preview {
  157. width: 96%;
  158. float: left;
  159. padding: 2%;
  160. }
  161. pre {
  162. white-space: pre-wrap;
  163. word-wrap: break-word;
  164. }
  165. }
  166. .notice {
  167. position: fixed;
  168. bottom: 20px;
  169. right: 20px;
  170. padding: 10px 20px;
  171. background-color: #f0f9ff;
  172. border: 1px solid #e0e0e0;
  173. border-radius: 5px;
  174. box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  175. font-size: 14px;
  176. color: #333;
  177. z-index: 999;
  178. display: flex;
  179. align-items: center;
  180. display: none;
  181. }
  182. .notice.error {
  183. background-color: #fdd;
  184. }
  185. /* drag and drop uploading */
  186. /*btn blue #007bff, hover darker #0069d9*/
  187. .vs-dropzone {
  188. border: 2px dashed #007bff;
  189. border-radius: .5rem;
  190. padding: 2rem;
  191. text-align: center;
  192. color: #6c757d;
  193. cursor: pointer;
  194. transition: background .2s ease-in-out;
  195. margin-bottom: 1rem;
  196. }
  197. .vs-dropzone.dragover {
  198. background: #e9f5ff;
  199. border-color: #0069d9;
  200. color: #0069d9;
  201. }
  202. /* image uploader modal gallery */
  203. .cover-container {
  204. display: grid;
  205. grid-gap: 8px;
  206. grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  207. grid-auto-rows: 140px;
  208. grid-auto-flow: row dense;
  209. max-height: 65vh;
  210. overflow: auto;
  211. }
  212. .cover-item {
  213. position: relative;
  214. display: flex;
  215. flex-direction: column;
  216. justify-content: center;
  217. align-items: center;
  218. background: #e0e0e0;
  219. background: #eee url('data:image/svg+xml,\ <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" fill-opacity=".125" >\ <rect x="200" width="200" height="200" />\ <rect y="200" width="200" height="200" />\ </svg>');
  220. background-size: 16px 16px;
  221. grid-column-start: auto;
  222. grid-row-start: auto;
  223. border-top-right-radius: 2px;
  224. border: 1px solid #bbb;
  225. }
  226. .img-thumbnail{
  227. max-height: 100%;
  228. /* unset other things from adminlte.min.css */
  229. background-color: unset;
  230. border: unset;
  231. border-radius: unset;
  232. box-shadow: unset;
  233. }