simplemde.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. /**
  2. * simplemde v1.11.2
  3. * Copyright Next Step Webs, Inc.
  4. * @link https://github.com/NextStepWebs/simplemde-markdown-editor
  5. * @license MIT
  6. */
  7. /* BASICS */
  8. .CodeMirror {
  9. /* Set height, width, borders, and global font properties here */
  10. font-family: monospace;
  11. height: 300px;
  12. color: black;
  13. }
  14. /* PADDING */
  15. .CodeMirror-lines {
  16. padding: 4px 0; /* Vertical padding around content */
  17. }
  18. .CodeMirror pre {
  19. padding: 0 4px; /* Horizontal padding of content */
  20. }
  21. .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
  22. background-color: white; /* The little square between H and V scrollbars */
  23. }
  24. /* GUTTER */
  25. .CodeMirror-gutters {
  26. border-right: 1px solid #ddd;
  27. background-color: #f7f7f7;
  28. white-space: nowrap;
  29. }
  30. .CodeMirror-linenumbers {}
  31. .CodeMirror-linenumber {
  32. padding: 0 3px 0 5px;
  33. min-width: 20px;
  34. text-align: right;
  35. color: #999;
  36. white-space: nowrap;
  37. }
  38. .CodeMirror-guttermarker { color: black; }
  39. .CodeMirror-guttermarker-subtle { color: #999; }
  40. /* CURSOR */
  41. .CodeMirror-cursor {
  42. border-left: 1px solid black;
  43. border-right: none;
  44. width: 0;
  45. }
  46. /* Shown when moving in bi-directional text */
  47. .CodeMirror div.CodeMirror-secondarycursor {
  48. border-left: 1px solid silver;
  49. }
  50. .cm-fat-cursor .CodeMirror-cursor {
  51. width: auto;
  52. border: 0 !important;
  53. background: #7e7;
  54. }
  55. .cm-fat-cursor div.CodeMirror-cursors {
  56. z-index: 1;
  57. }
  58. .cm-animate-fat-cursor {
  59. width: auto;
  60. border: 0;
  61. -webkit-animation: blink 1.06s steps(1) infinite;
  62. -moz-animation: blink 1.06s steps(1) infinite;
  63. animation: blink 1.06s steps(1) infinite;
  64. background-color: #7e7;
  65. }
  66. @-moz-keyframes blink {
  67. 0% {}
  68. 50% { background-color: transparent; }
  69. 100% {}
  70. }
  71. @-webkit-keyframes blink {
  72. 0% {}
  73. 50% { background-color: transparent; }
  74. 100% {}
  75. }
  76. @keyframes blink {
  77. 0% {}
  78. 50% { background-color: transparent; }
  79. 100% {}
  80. }
  81. /* Can style cursor different in overwrite (non-insert) mode */
  82. .CodeMirror-overwrite .CodeMirror-cursor {}
  83. .cm-tab { display: inline-block; text-decoration: inherit; }
  84. .CodeMirror-ruler {
  85. border-left: 1px solid #ccc;
  86. position: absolute;
  87. }
  88. /* DEFAULT THEME */
  89. .cm-s-default .cm-header {color: blue;}
  90. .cm-s-default .cm-quote {color: #090;}
  91. .cm-negative {color: #d44;}
  92. .cm-positive {color: #292;}
  93. .cm-header, .cm-strong {font-weight: bold;}
  94. .cm-em {font-style: italic;}
  95. .cm-link {text-decoration: underline;}
  96. .cm-strikethrough {text-decoration: line-through;}
  97. .cm-s-default .cm-keyword {color: #708;}
  98. .cm-s-default .cm-atom {color: #219;}
  99. .cm-s-default .cm-number {color: #164;}
  100. .cm-s-default .cm-def {color: #00f;}
  101. .cm-s-default .cm-variable,
  102. .cm-s-default .cm-punctuation,
  103. .cm-s-default .cm-property,
  104. .cm-s-default .cm-operator {}
  105. .cm-s-default .cm-variable-2 {color: #05a;}
  106. .cm-s-default .cm-variable-3 {color: #085;}
  107. .cm-s-default .cm-comment {color: #a50;}
  108. .cm-s-default .cm-string {color: #a11;}
  109. .cm-s-default .cm-string-2 {color: #f50;}
  110. .cm-s-default .cm-meta {color: #555;}
  111. .cm-s-default .cm-qualifier {color: #555;}
  112. .cm-s-default .cm-builtin {color: #30a;}
  113. .cm-s-default .cm-bracket {color: #997;}
  114. .cm-s-default .cm-tag {color: #170;}
  115. .cm-s-default .cm-attribute {color: #00c;}
  116. .cm-s-default .cm-hr {color: #999;}
  117. .cm-s-default .cm-link {color: #00c;}
  118. .cm-s-default .cm-error {color: #f00;}
  119. .cm-invalidchar {color: #f00;}
  120. .CodeMirror-composing { border-bottom: 2px solid; }
  121. /* Default styles for common addons */
  122. div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
  123. div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
  124. .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
  125. .CodeMirror-activeline-background {background: #e8f2ff;}
  126. /* STOP */
  127. /* The rest of this file contains styles related to the mechanics of
  128. the editor. You probably shouldn't touch them. */
  129. .CodeMirror {
  130. position: relative;
  131. overflow: hidden;
  132. background: white;
  133. }
  134. .CodeMirror-scroll {
  135. overflow: scroll !important; /* Things will break if this is overridden */
  136. /* 30px is the magic margin used to hide the element's real scrollbars */
  137. /* See overflow: hidden in .CodeMirror */
  138. margin-bottom: -30px; margin-right: -30px;
  139. padding-bottom: 30px;
  140. height: 100%;
  141. outline: none; /* Prevent dragging from highlighting the element */
  142. position: relative;
  143. }
  144. .CodeMirror-sizer {
  145. position: relative;
  146. border-right: 30px solid transparent;
  147. }
  148. /* The fake, visible scrollbars. Used to force redraw during scrolling
  149. before actual scrolling happens, thus preventing shaking and
  150. flickering artifacts. */
  151. .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
  152. position: absolute;
  153. z-index: 6;
  154. display: none;
  155. }
  156. .CodeMirror-vscrollbar {
  157. right: 0; top: 0;
  158. overflow-x: hidden;
  159. overflow-y: scroll;
  160. }
  161. .CodeMirror-hscrollbar {
  162. bottom: 0; left: 0;
  163. overflow-y: hidden;
  164. overflow-x: scroll;
  165. }
  166. .CodeMirror-scrollbar-filler {
  167. right: 0; bottom: 0;
  168. }
  169. .CodeMirror-gutter-filler {
  170. left: 0; bottom: 0;
  171. }
  172. .CodeMirror-gutters {
  173. position: absolute; left: 0; top: 0;
  174. min-height: 100%;
  175. z-index: 3;
  176. }
  177. .CodeMirror-gutter {
  178. white-space: normal;
  179. height: 100%;
  180. display: inline-block;
  181. vertical-align: top;
  182. margin-bottom: -30px;
  183. /* Hack to make IE7 behave */
  184. *zoom:1;
  185. *display:inline;
  186. }
  187. .CodeMirror-gutter-wrapper {
  188. position: absolute;
  189. z-index: 4;
  190. background: none !important;
  191. border: none !important;
  192. }
  193. .CodeMirror-gutter-background {
  194. position: absolute;
  195. top: 0; bottom: 0;
  196. z-index: 4;
  197. }
  198. .CodeMirror-gutter-elt {
  199. position: absolute;
  200. cursor: default;
  201. z-index: 4;
  202. }
  203. .CodeMirror-gutter-wrapper {
  204. -webkit-user-select: none;
  205. -moz-user-select: none;
  206. user-select: none;
  207. }
  208. .CodeMirror-lines {
  209. cursor: text;
  210. min-height: 1px; /* prevents collapsing before first draw */
  211. }
  212. .CodeMirror pre {
  213. /* Reset some styles that the rest of the page might have set */
  214. -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
  215. border-width: 0;
  216. background: transparent;
  217. font-family: inherit;
  218. font-size: inherit;
  219. margin: 0;
  220. white-space: pre;
  221. word-wrap: normal;
  222. line-height: inherit;
  223. color: inherit;
  224. z-index: 2;
  225. position: relative;
  226. overflow: visible;
  227. -webkit-tap-highlight-color: transparent;
  228. -webkit-font-variant-ligatures: none;
  229. font-variant-ligatures: none;
  230. }
  231. .CodeMirror-wrap pre {
  232. word-wrap: break-word;
  233. white-space: pre-wrap;
  234. word-break: normal;
  235. }
  236. .CodeMirror-linebackground {
  237. position: absolute;
  238. left: 0; right: 0; top: 0; bottom: 0;
  239. z-index: 0;
  240. }
  241. .CodeMirror-linewidget {
  242. position: relative;
  243. z-index: 2;
  244. overflow: auto;
  245. }
  246. .CodeMirror-widget {}
  247. .CodeMirror-code {
  248. outline: none;
  249. }
  250. /* Force content-box sizing for the elements where we expect it */
  251. .CodeMirror-scroll,
  252. .CodeMirror-sizer,
  253. .CodeMirror-gutter,
  254. .CodeMirror-gutters,
  255. .CodeMirror-linenumber {
  256. -moz-box-sizing: content-box;
  257. box-sizing: content-box;
  258. }
  259. .CodeMirror-measure {
  260. position: absolute;
  261. width: 100%;
  262. height: 0;
  263. overflow: hidden;
  264. visibility: hidden;
  265. }
  266. .CodeMirror-cursor { position: absolute; }
  267. .CodeMirror-measure pre { position: static; }
  268. div.CodeMirror-cursors {
  269. visibility: hidden;
  270. position: relative;
  271. z-index: 3;
  272. }
  273. div.CodeMirror-dragcursors {
  274. visibility: visible;
  275. }
  276. .CodeMirror-focused div.CodeMirror-cursors {
  277. visibility: visible;
  278. }
  279. .CodeMirror-selected { background: #d9d9d9; }
  280. .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
  281. .CodeMirror-crosshair { cursor: crosshair; }
  282. .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
  283. .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
  284. .cm-searching {
  285. background: #ffa;
  286. background: rgba(255, 255, 0, .4);
  287. }
  288. /* IE7 hack to prevent it from returning funny offsetTops on the spans */
  289. .CodeMirror span { *vertical-align: text-bottom; }
  290. /* Used to force a border model for a node */
  291. .cm-force-border { padding-right: .1px; }
  292. @media print {
  293. /* Hide the cursor when printing */
  294. .CodeMirror div.CodeMirror-cursors {
  295. visibility: hidden;
  296. }
  297. }
  298. /* See issue #2901 */
  299. .cm-tab-wrap-hack:after { content: ''; }
  300. /* Help users use markselection to safely style text background */
  301. span.CodeMirror-selectedtext { background: none; }
  302. .CodeMirror {
  303. height: auto;
  304. min-height: 300px;
  305. border: 1px solid #ddd;
  306. border-bottom-left-radius: 4px;
  307. border-bottom-right-radius: 4px;
  308. padding: 10px;
  309. font: inherit;
  310. z-index: 1;
  311. }
  312. .CodeMirror-scroll {
  313. min-height: 300px
  314. }
  315. .CodeMirror-fullscreen {
  316. background: #fff;
  317. position: fixed !important;
  318. top: 50px;
  319. left: 0;
  320. right: 0;
  321. bottom: 0;
  322. height: auto;
  323. z-index: 9;
  324. }
  325. .CodeMirror-sided {
  326. width: 50% !important;
  327. }
  328. .editor-toolbar {
  329. position: relative;
  330. opacity: .6;
  331. -webkit-user-select: none;
  332. -moz-user-select: none;
  333. -ms-user-select: none;
  334. -o-user-select: none;
  335. user-select: none;
  336. padding: 0 10px;
  337. border-top: 1px solid #bbb;
  338. border-left: 1px solid #bbb;
  339. border-right: 1px solid #bbb;
  340. border-top-left-radius: 4px;
  341. border-top-right-radius: 4px;
  342. }
  343. .editor-toolbar:after,
  344. .editor-toolbar:before {
  345. display: block;
  346. content: ' ';
  347. height: 1px;
  348. }
  349. .editor-toolbar:before {
  350. margin-bottom: 8px
  351. }
  352. .editor-toolbar:after {
  353. margin-top: 8px
  354. }
  355. .editor-toolbar:hover,
  356. .editor-wrapper input.title:focus,
  357. .editor-wrapper input.title:hover {
  358. opacity: .8
  359. }
  360. .editor-toolbar.fullscreen {
  361. width: 100%;
  362. height: 50px;
  363. overflow-x: auto;
  364. overflow-y: hidden;
  365. white-space: nowrap;
  366. padding-top: 10px;
  367. padding-bottom: 10px;
  368. box-sizing: border-box;
  369. background: #fff;
  370. border: 0;
  371. position: fixed;
  372. top: 0;
  373. left: 0;
  374. opacity: 1;
  375. z-index: 9;
  376. }
  377. .editor-toolbar.fullscreen::before {
  378. width: 20px;
  379. height: 50px;
  380. background: -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  381. background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 0)));
  382. background: -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  383. background: -o-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  384. background: -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  385. background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  386. position: fixed;
  387. top: 0;
  388. left: 0;
  389. margin: 0;
  390. padding: 0;
  391. }
  392. .editor-toolbar.fullscreen::after {
  393. width: 20px;
  394. height: 50px;
  395. background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  396. background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 1)));
  397. background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  398. background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  399. background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  400. background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  401. position: fixed;
  402. top: 0;
  403. right: 0;
  404. margin: 0;
  405. padding: 0;
  406. }
  407. .editor-toolbar a {
  408. display: inline-block;
  409. text-align: center;
  410. text-decoration: none!important;
  411. color: #2c3e50!important;
  412. width: 30px;
  413. height: 30px;
  414. margin: 0;
  415. border: 1px solid transparent;
  416. border-radius: 3px;
  417. cursor: pointer;
  418. }
  419. .editor-toolbar a.active,
  420. .editor-toolbar a:hover {
  421. background: #fcfcfc;
  422. border-color: #95a5a6;
  423. }
  424. .editor-toolbar a:before {
  425. line-height: 30px
  426. }
  427. .editor-toolbar i.separator {
  428. display: inline-block;
  429. width: 0;
  430. border-left: 1px solid #d9d9d9;
  431. border-right: 1px solid #fff;
  432. color: transparent;
  433. text-indent: -10px;
  434. margin: 0 6px;
  435. }
  436. .editor-toolbar a.fa-header-x:after {
  437. font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  438. font-size: 65%;
  439. vertical-align: text-bottom;
  440. position: relative;
  441. top: 2px;
  442. }
  443. .editor-toolbar a.fa-header-1:after {
  444. content: "1";
  445. }
  446. .editor-toolbar a.fa-header-2:after {
  447. content: "2";
  448. }
  449. .editor-toolbar a.fa-header-3:after {
  450. content: "3";
  451. }
  452. .editor-toolbar a.fa-header-bigger:after {
  453. content: "▲";
  454. }
  455. .editor-toolbar a.fa-header-smaller:after {
  456. content: "▼";
  457. }
  458. .editor-toolbar.disabled-for-preview a:not(.no-disable) {
  459. pointer-events: none;
  460. background: #fff;
  461. border-color: transparent;
  462. text-shadow: inherit;
  463. }
  464. @media only screen and (max-width: 700px) {
  465. .editor-toolbar a.no-mobile {
  466. display: none;
  467. }
  468. }
  469. .editor-statusbar {
  470. padding: 8px 10px;
  471. font-size: 12px;
  472. color: #959694;
  473. text-align: right;
  474. }
  475. .editor-statusbar span {
  476. display: inline-block;
  477. min-width: 4em;
  478. margin-left: 1em;
  479. }
  480. .editor-statusbar .lines:before {
  481. content: 'lines: '
  482. }
  483. .editor-statusbar .words:before {
  484. content: 'words: '
  485. }
  486. .editor-statusbar .characters:before {
  487. content: 'characters: '
  488. }
  489. .editor-preview {
  490. padding: 10px;
  491. position: absolute;
  492. width: 100%;
  493. height: 100%;
  494. top: 0;
  495. left: 0;
  496. background: #fafafa;
  497. z-index: 7;
  498. overflow: auto;
  499. display: none;
  500. box-sizing: border-box;
  501. }
  502. .editor-preview-side {
  503. padding: 10px;
  504. position: fixed;
  505. bottom: 0;
  506. width: 50%;
  507. top: 50px;
  508. right: 0;
  509. background: #fafafa;
  510. z-index: 9;
  511. overflow: auto;
  512. display: none;
  513. box-sizing: border-box;
  514. border: 1px solid #ddd;
  515. }
  516. .editor-preview-active-side {
  517. display: block
  518. }
  519. .editor-preview-active {
  520. display: block
  521. }
  522. .editor-preview>p,
  523. .editor-preview-side>p {
  524. margin-top: 0
  525. }
  526. .editor-preview pre,
  527. .editor-preview-side pre {
  528. background: #eee;
  529. margin-bottom: 10px;
  530. }
  531. .editor-preview table td,
  532. .editor-preview table th,
  533. .editor-preview-side table td,
  534. .editor-preview-side table th {
  535. border: 1px solid #ddd;
  536. padding: 5px;
  537. }
  538. .CodeMirror .CodeMirror-code .cm-tag {
  539. color: #63a35c;
  540. }
  541. .CodeMirror .CodeMirror-code .cm-attribute {
  542. color: #795da3;
  543. }
  544. .CodeMirror .CodeMirror-code .cm-string {
  545. color: #183691;
  546. }
  547. .CodeMirror .CodeMirror-selected {
  548. background: #d9d9d9;
  549. }
  550. .CodeMirror .CodeMirror-code .cm-header-1 {
  551. font-size: 200%;
  552. line-height: 200%;
  553. }
  554. .CodeMirror .CodeMirror-code .cm-header-2 {
  555. font-size: 160%;
  556. line-height: 160%;
  557. }
  558. .CodeMirror .CodeMirror-code .cm-header-3 {
  559. font-size: 125%;
  560. line-height: 125%;
  561. }
  562. .CodeMirror .CodeMirror-code .cm-header-4 {
  563. font-size: 110%;
  564. line-height: 110%;
  565. }
  566. .CodeMirror .CodeMirror-code .cm-comment {
  567. background: rgba(0, 0, 0, .05);
  568. border-radius: 2px;
  569. }
  570. .CodeMirror .CodeMirror-code .cm-link {
  571. color: #7f8c8d;
  572. }
  573. .CodeMirror .CodeMirror-code .cm-url {
  574. color: #aab2b3;
  575. }
  576. .CodeMirror .CodeMirror-code .cm-strikethrough {
  577. text-decoration: line-through;
  578. }
  579. .CodeMirror .CodeMirror-placeholder {
  580. opacity: .5;
  581. }
  582. .CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
  583. background: rgba(255, 0, 0, .15);
  584. }