martor.css 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /* This if inside django admin */
  2. .submit-row a {
  3. box-sizing: content-box;
  4. }
  5. body.overflow {
  6. overflow: hidden!important;
  7. }
  8. /* Scroll Bar */
  9. .section-martor ::-webkit-scrollbar-track {
  10. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  11. border-radius: 10px;
  12. background-color: #F5F5F5;
  13. }
  14. .section-martor ::-webkit-scrollbar {
  15. height: 6px;
  16. width: 6px;
  17. background-color: #F5F5F5;
  18. }
  19. .section-martor ::-webkit-scrollbar-thumb {
  20. border-radius: 10px;
  21. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  22. background-color: #555;
  23. }
  24. .ace_scrollbar-v {
  25. cursor: ns-resize;
  26. }
  27. .main-martor {}
  28. .martor-toolbar {
  29. padding: 0 .85714286em!important;
  30. padding-bottom: 4px!important;
  31. }
  32. .martor-toolbar .ui.icon .markdown-image-upload {
  33. position: relative;
  34. overflow: hidden;
  35. }
  36. .martor-toolbar .ui.icon .markdown-image-upload input[type=file] {
  37. position: absolute;
  38. top: 0;
  39. right: 0;
  40. min-width: 100%;
  41. min-height: 100%;
  42. font-size: 25px;
  43. padding: 0;
  44. padding-left: 35px;
  45. text-align: right;
  46. filter: alpha(opacity=0);
  47. opacity: 0;
  48. outline: none;
  49. cursor: inherit;
  50. display: block;
  51. }
  52. .emoji-loader-init {
  53. min-height: 200px!important;
  54. }
  55. .insert-emoji {cursor: pointer}
  56. /* Full Screen Mode */
  57. .main-martor-fullscreen {
  58. background: #fff;
  59. position: fixed;
  60. z-index: 999;
  61. max-height: 100%;
  62. height: 100%;
  63. width: 100%;
  64. margin: 0;
  65. left: 0;
  66. top: 0;
  67. }
  68. .main-martor-fullscreen .fields.martor-toolbar {
  69. border-bottom: 1px solid #ddd;
  70. margin: 0;
  71. }
  72. .main-martor-fullscreen .section-martor {
  73. height: 90%;
  74. position: relative;
  75. }
  76. /* EOF */
  77. .marked-emoji,
  78. .martor-preview .marked-emoji {max-width: 20px}
  79. .martor-preview{font-size:14px;line-height:1.6;}
  80. .martor-preview>*:first-child{margin-top:0 !important}
  81. .martor-preview>*:last-child{margin-bottom:20px !important}
  82. .martor-preview a.absent{color:#c00}
  83. .martor-preview a.anchor{display:block;padding-left:30px;margin-left:-30px;cursor:pointer;position:absolute;top:0;left:0;bottom:0}
  84. .martor-preview h1,
  85. .martor-preview h2,
  86. .martor-preview h3,
  87. .martor-preview h4,
  88. .martor-preview h5,
  89. .martor-preview h6{margin:20px 0 10px;padding:0;font-weight:bold;-webkit-font-smoothing:antialiased;cursor:text;position:relative}
  90. .martor-preview h1:hover a.anchor,
  91. .martor-preview h2:hover a.anchor,
  92. .martor-preview h3:hover a.anchor,
  93. .martor-preview h4:hover a.anchor,
  94. .martor-preview h5:hover a.anchor,
  95. .martor-preview h6:hover a.anchor{text-decoration:none;line-height:1;padding-left:0;margin-left:-22px;top:15%}
  96. .martor-preview h1 tt,
  97. .martor-preview h1 code,
  98. .martor-preview h2 tt,
  99. .martor-preview h2 code,
  100. .martor-preview h3 tt,
  101. .martor-preview h3 code,
  102. .martor-preview h4 tt,
  103. .martor-preview h4 code,
  104. .martor-preview h5 tt,
  105. .martor-preview h5 code,
  106. .martor-preview h6 tt,
  107. .martor-preview h6 code{font-size:inherit}
  108. .martor-preview h1{font-size:28px;color:#000}
  109. .martor-preview h2{font-size:24px;border-bottom:1px solid #ccc;color:#000}
  110. .martor-preview h3{font-size:18px}
  111. .martor-preview h4{font-size:16px}
  112. .martor-preview h5{font-size:14px}
  113. .martor-preview h6{color:#777;font-size:14px}
  114. .martor-preview p,
  115. .martor-preview blockquote,
  116. .martor-preview ul,
  117. .martor-preview ol,
  118. .martor-preview dl,
  119. .martor-preview table,
  120. .martor-preview pre{margin:15px 0}
  121. .martor-preview hr{
  122. background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAYAAACtBE5DAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OENDRjNBN0E2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OENDRjNBN0I2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Q0NGM0E3ODY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Q0NGM0E3OTY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqqezsUAAAAfSURBVHjaYmRABcYwBiM2QSA4y4hNEKYDQxAEAAIMAHNGAzhkPOlYAAAAAElFTkSuQmCC) repeat-x 0 0;
  123. border:0 none;
  124. color:#ccc;
  125. height:4px;
  126. padding:0
  127. }
  128. .martor-preview>h2:first-child,
  129. .martor-preview>h1:first-child,
  130. .martor-preview>h1:first-child+h2,
  131. .martor-preview>h3:first-child,
  132. .martor-preview>h4:first-child,
  133. .martor-preview>h5:first-child,
  134. .martor-preview>h6:first-child{margin-top:0;padding-top:0}
  135. .martor-preview a:first-child h1,
  136. .martor-preview a:first-child h2,
  137. .martor-preview a:first-child h3,
  138. .martor-preview a:first-child h4,
  139. .martor-preview a:first-child h5,
  140. .martor-preview a:first-child h6{margin-top:0;padding-top:0}
  141. .martor-preview h1+p,
  142. .martor-preview h2+p,
  143. .martor-preview h3+p,
  144. .martor-preview h4+p,
  145. .martor-preview h5+p,
  146. .martor-preview h6+p{margin-top:0}
  147. .martor-preview li p.first{display:inline-block}
  148. .martor-preview ul li {list-style: disc;}
  149. .martor-preview ul,
  150. .martor-preview ol{padding-left:30px}
  151. .martor-preview ul.no-list,
  152. .martor-preview ol.no-list{list-style-type:none;padding:0}
  153. .martor-preview ul li>:first-child,
  154. .martor-preview ul li ul:first-of-type,
  155. .martor-preview ol li>:first-child,
  156. .martor-preview ol li ul:first-of-type{margin-top:0px}
  157. .martor-preview ul ul,
  158. .martor-preview ul ol,
  159. .martor-preview ol ol,
  160. .martor-preview ol ul{margin-bottom:0}
  161. .martor-preview dl{padding:0}
  162. .martor-preview dl dt{font-size:14px;font-weight:bold;font-style:italic;padding:0;margin:15px 0 5px}
  163. .martor-preview dl dt:first-child{padding:0}
  164. .martor-preview dl dt>:first-child{margin-top:0px}
  165. .martor-preview dl dt>:last-child{margin-bottom:0px}
  166. .martor-preview dl dd{margin:0 0 15px;padding:0 15px}
  167. .martor-preview dl dd>:first-child{margin-top:0px}
  168. .martor-preview dl dd>:last-child{margin-bottom:0px}
  169. .martor-preview blockquote{border-left:4px solid #DDD;padding:5px 15px;color:#777;background-color: #fff}
  170. .martor-preview blockquote>:first-child{margin-top:0px}
  171. .martor-preview blockquote>:last-child{margin-bottom:0px}
  172. .martor-preview table th{font-weight:bold}
  173. .martor-preview table th,
  174. .martor-preview table td{border:1px solid #ccc;padding:6px 13px}
  175. .martor-preview table tr{border-top:1px solid #ccc;background-color:#fff}
  176. .martor-preview table tr:nth-child(2n){background-color:#f8f8f8}
  177. .martor-preview img{max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box}
  178. .martor-preview span.frame{display:block;overflow:hidden}
  179. .martor-preview span.frame>span{border:1px solid #ddd;display:block;float:left;overflow:hidden;margin:13px 0 0;padding:7px;width:auto}
  180. .martor-preview span.frame span img{display:block;float:left}
  181. .martor-preview span.frame span span{clear:both;color:#333;display:block;padding:5px 0 0}
  182. .martor-preview span.align-center{display:block;overflow:hidden;clear:both}
  183. .martor-preview span.align-center>span{display:block;overflow:hidden;margin:13px auto 0;text-align:center}
  184. .martor-preview span.align-center span img{margin:0 auto;text-align:center}
  185. .martor-preview span.align-right{display:block;overflow:hidden;clear:both}
  186. .martor-preview span.align-right>span{display:block;overflow:hidden;margin:13px 0 0;text-align:right}
  187. .martor-preview span.align-right span img{margin:0;text-align:right}
  188. .martor-preview span.float-left{display:block;margin-right:13px;overflow:hidden;float:left}
  189. .martor-preview span.float-left span{margin:13px 0 0}
  190. .martor-preview span.float-right{display:block;margin-left:13px;overflow:hidden;float:right}
  191. .martor-preview span.float-right>span{display:block;overflow:hidden;margin:13px auto 0;text-align:right}
  192. .martor-preview code,
  193. .martor-preview tt{margin:0 2px;padding:0px 5px;border:1px solid #eaeaea;background-color:#f8f8f8;border-radius:3px}
  194. .martor-preview code{white-space:nowrap}
  195. .martor-preview pre>code{margin:0;padding:0;white-space:pre;border:none;background:transparent}
  196. .martor-preview .highlight pre,
  197. .martor-preview pre{border: 1px solid #f0f0f0;padding: 16px;overflow: auto;font-size: 85%;line-height: 1.45;background-color: #f6f8fa;border-radius: 3px}
  198. .martor-preview pre code,
  199. .martor-preview pre tt{margin:0;padding:0;background-color:transparent;border:none}
  200. .section-martor {
  201. }
  202. .martor {
  203. height: 500px;
  204. max-height: 500px;
  205. }
  206. .martor-field {
  207. width: 100%;
  208. height: 250px;
  209. min-height: 100px;
  210. }
  211. .martor-preview {
  212. padding: 1rem;
  213. overflow: auto;
  214. background: #F9F9F9;
  215. }
  216. .icon.expand-editor {
  217. position: absolute;
  218. bottom: .8em;
  219. right: 0;
  220. }
  221. .no-border {
  222. border: none!important;
  223. }
  224. /* live preview */
  225. .enable-living .martor-preview {
  226. display: block !important;
  227. }
  228. .enable-living .tab-martor-menu a.item {
  229. display: none !important;
  230. }