simplemde.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. .CodeMirror {
  2. height: auto;
  3. min-height: 300px;
  4. border: 1px solid #ddd;
  5. border-bottom-left-radius: 4px;
  6. border-bottom-right-radius: 4px;
  7. padding: 10px;
  8. font: inherit;
  9. z-index: 1;
  10. }
  11. .CodeMirror-scroll {
  12. min-height: 300px
  13. }
  14. .CodeMirror-fullscreen {
  15. background: #fff;
  16. position: fixed !important;
  17. top: 50px;
  18. left: 0;
  19. right: 0;
  20. bottom: 0;
  21. height: auto;
  22. z-index: 9;
  23. }
  24. .CodeMirror-sided {
  25. width: 50% !important;
  26. }
  27. .editor-toolbar {
  28. position: relative;
  29. opacity: .6;
  30. -webkit-user-select: none;
  31. -moz-user-select: none;
  32. -ms-user-select: none;
  33. -o-user-select: none;
  34. user-select: none;
  35. padding: 0 10px;
  36. border-top: 1px solid #bbb;
  37. border-left: 1px solid #bbb;
  38. border-right: 1px solid #bbb;
  39. border-top-left-radius: 4px;
  40. border-top-right-radius: 4px;
  41. }
  42. .editor-toolbar:after,
  43. .editor-toolbar:before {
  44. display: block;
  45. content: ' ';
  46. height: 1px;
  47. }
  48. .editor-toolbar:before {
  49. margin-bottom: 8px
  50. }
  51. .editor-toolbar:after {
  52. margin-top: 8px
  53. }
  54. .editor-toolbar:hover,
  55. .editor-wrapper input.title:focus,
  56. .editor-wrapper input.title:hover {
  57. opacity: .8
  58. }
  59. .editor-toolbar.fullscreen {
  60. width: 100%;
  61. height: 50px;
  62. overflow-x: auto;
  63. overflow-y: hidden;
  64. white-space: nowrap;
  65. padding-top: 10px;
  66. padding-bottom: 10px;
  67. box-sizing: border-box;
  68. background: #fff;
  69. border: 0;
  70. position: fixed;
  71. top: 0;
  72. left: 0;
  73. opacity: 1;
  74. z-index: 9;
  75. }
  76. .editor-toolbar.fullscreen::before {
  77. width: 20px;
  78. height: 50px;
  79. background: -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  80. background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 0)));
  81. background: -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  82. background: -o-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  83. background: -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  84. background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  85. position: fixed;
  86. top: 0;
  87. left: 0;
  88. margin: 0;
  89. padding: 0;
  90. }
  91. .editor-toolbar.fullscreen::after {
  92. width: 20px;
  93. height: 50px;
  94. background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  95. background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 1)));
  96. background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  97. background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  98. background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  99. background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  100. position: fixed;
  101. top: 0;
  102. right: 0;
  103. margin: 0;
  104. padding: 0;
  105. }
  106. .editor-toolbar a {
  107. display: inline-block;
  108. text-align: center;
  109. text-decoration: none!important;
  110. color: #2c3e50!important;
  111. width: 30px;
  112. height: 30px;
  113. margin: 0;
  114. border: 1px solid transparent;
  115. border-radius: 3px;
  116. cursor: pointer;
  117. }
  118. .editor-toolbar a.active,
  119. .editor-toolbar a:hover {
  120. background: #fcfcfc;
  121. border-color: #95a5a6;
  122. }
  123. .editor-toolbar a:before {
  124. line-height: 30px
  125. }
  126. .editor-toolbar i.separator {
  127. display: inline-block;
  128. width: 0;
  129. border-left: 1px solid #d9d9d9;
  130. border-right: 1px solid #fff;
  131. color: transparent;
  132. text-indent: -10px;
  133. margin: 0 6px;
  134. }
  135. .editor-toolbar a.fa-header-x:after {
  136. font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  137. font-size: 65%;
  138. vertical-align: text-bottom;
  139. position: relative;
  140. top: 2px;
  141. }
  142. .editor-toolbar a.fa-header-1:after {
  143. content: "1";
  144. }
  145. .editor-toolbar a.fa-header-2:after {
  146. content: "2";
  147. }
  148. .editor-toolbar a.fa-header-3:after {
  149. content: "3";
  150. }
  151. .editor-toolbar a.fa-header-bigger:after {
  152. content: "▲";
  153. }
  154. .editor-toolbar a.fa-header-smaller:after {
  155. content: "▼";
  156. }
  157. .editor-toolbar.disabled-for-preview a:not(.no-disable) {
  158. pointer-events: none;
  159. background: #fff;
  160. border-color: transparent;
  161. text-shadow: inherit;
  162. }
  163. @media only screen and (max-width: 700px) {
  164. .editor-toolbar a.no-mobile {
  165. display: none;
  166. }
  167. }
  168. .editor-statusbar {
  169. padding: 8px 10px;
  170. font-size: 12px;
  171. color: #959694;
  172. text-align: right;
  173. }
  174. .editor-statusbar span {
  175. display: inline-block;
  176. min-width: 4em;
  177. margin-left: 1em;
  178. }
  179. .editor-statusbar .lines:before {
  180. content: 'lines: '
  181. }
  182. .editor-statusbar .words:before {
  183. content: 'words: '
  184. }
  185. .editor-statusbar .characters:before {
  186. content: 'characters: '
  187. }
  188. .editor-preview {
  189. padding: 10px;
  190. position: absolute;
  191. width: 100%;
  192. height: 100%;
  193. top: 0;
  194. left: 0;
  195. background: #fafafa;
  196. z-index: 7;
  197. overflow: auto;
  198. display: none;
  199. box-sizing: border-box;
  200. }
  201. .editor-preview-side {
  202. padding: 10px;
  203. position: fixed;
  204. bottom: 0;
  205. width: 50%;
  206. top: 50px;
  207. right: 0;
  208. background: #fafafa;
  209. z-index: 9;
  210. overflow: auto;
  211. display: none;
  212. box-sizing: border-box;
  213. border: 1px solid #ddd;
  214. }
  215. .editor-preview-active-side {
  216. display: block
  217. }
  218. .editor-preview-active {
  219. display: block
  220. }
  221. .editor-preview>p,
  222. .editor-preview-side>p {
  223. margin-top: 0
  224. }
  225. .editor-preview pre,
  226. .editor-preview-side pre {
  227. background: #eee;
  228. margin-bottom: 10px;
  229. }
  230. .editor-preview table td,
  231. .editor-preview table th,
  232. .editor-preview-side table td,
  233. .editor-preview-side table th {
  234. border: 1px solid #ddd;
  235. padding: 5px;
  236. }
  237. .CodeMirror .CodeMirror-code .cm-tag {
  238. color: #63a35c;
  239. }
  240. .CodeMirror .CodeMirror-code .cm-attribute {
  241. color: #795da3;
  242. }
  243. .CodeMirror .CodeMirror-code .cm-string {
  244. color: #183691;
  245. }
  246. .CodeMirror .CodeMirror-selected {
  247. background: #d9d9d9;
  248. }
  249. .CodeMirror .CodeMirror-code .cm-header-1 {
  250. font-size: 200%;
  251. line-height: 200%;
  252. }
  253. .CodeMirror .CodeMirror-code .cm-header-2 {
  254. font-size: 160%;
  255. line-height: 160%;
  256. }
  257. .CodeMirror .CodeMirror-code .cm-header-3 {
  258. font-size: 125%;
  259. line-height: 125%;
  260. }
  261. .CodeMirror .CodeMirror-code .cm-header-4 {
  262. font-size: 110%;
  263. line-height: 110%;
  264. }
  265. .CodeMirror .CodeMirror-code .cm-comment {
  266. background: rgba(0, 0, 0, .05);
  267. border-radius: 2px;
  268. }
  269. .CodeMirror .CodeMirror-code .cm-link {
  270. color: #7f8c8d;
  271. }
  272. .CodeMirror .CodeMirror-code .cm-url {
  273. color: #aab2b3;
  274. }
  275. .CodeMirror .CodeMirror-code .cm-strikethrough {
  276. text-decoration: line-through;
  277. }
  278. .CodeMirror .CodeMirror-placeholder {
  279. opacity: .5;
  280. }