makedownpad.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. /* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
  2. /* Author: Nicolas Hery - http://nicolashery.com */
  3. /* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
  4. /* Source: https://github.com/nicolahery/markdownpad-github */
  5. /* RESET
  6. =============================================================================*/
  7. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  8. margin: 0;
  9. padding: 0;
  10. border: 0;
  11. }
  12. /* BODY
  13. =============================================================================*/
  14. body {
  15. font-family: Helvetica, arial, freesans, clean, sans-serif;
  16. font-size: 14px;
  17. line-height: 1.6;
  18. color: #333;
  19. background-color: #fff;
  20. padding: 20px;
  21. max-width: 960px;
  22. margin: 0 auto;
  23. }
  24. body>*:first-child {
  25. margin-top: 0 !important;
  26. }
  27. body>*:last-child {
  28. margin-bottom: 0 !important;
  29. }
  30. /* BLOCKS
  31. =============================================================================*/
  32. p, blockquote, ul, ol, dl, table, pre {
  33. margin: 15px 0;
  34. }
  35. /* HEADERS
  36. =============================================================================*/
  37. h1, h2, h3, h4, h5, h6 {
  38. margin: 20px 0 10px;
  39. padding: 0;
  40. font-weight: bold;
  41. -webkit-font-smoothing: antialiased;
  42. }
  43. h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code {
  44. font-size: inherit;
  45. }
  46. h1 {
  47. font-size: 28px;
  48. color: #000;
  49. }
  50. h2 {
  51. font-size: 24px;
  52. border-bottom: 1px solid #ccc;
  53. color: #000;
  54. }
  55. h3 {
  56. font-size: 18px;
  57. }
  58. h4 {
  59. font-size: 16px;
  60. }
  61. h5 {
  62. font-size: 14px;
  63. }
  64. h6 {
  65. color: #777;
  66. font-size: 14px;
  67. }
  68. body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
  69. margin-top: 0;
  70. padding-top: 0;
  71. }
  72. a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  73. margin-top: 0;
  74. padding-top: 0;
  75. }
  76. h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
  77. margin-top: 10px;
  78. }
  79. /* LINKS
  80. =============================================================================*/
  81. a {
  82. color: #4183C4;
  83. text-decoration: none;
  84. }
  85. a:hover {
  86. text-decoration: underline;
  87. }
  88. /* LISTS
  89. =============================================================================*/
  90. ul, ol {
  91. padding-left: 30px;
  92. }
  93. ul li > :first-child,
  94. ol li > :first-child,
  95. ul li ul:first-of-type,
  96. ol li ol:first-of-type,
  97. ul li ol:first-of-type,
  98. ol li ul:first-of-type {
  99. margin-top: 0px;
  100. }
  101. ul ul, ul ol, ol ol, ol ul {
  102. margin-bottom: 0;
  103. }
  104. dl {
  105. padding: 0;
  106. }
  107. dl dt {
  108. font-size: 14px;
  109. font-weight: bold;
  110. font-style: italic;
  111. padding: 0;
  112. margin: 15px 0 5px;
  113. }
  114. dl dt:first-child {
  115. padding: 0;
  116. }
  117. dl dt>:first-child {
  118. margin-top: 0px;
  119. }
  120. dl dt>:last-child {
  121. margin-bottom: 0px;
  122. }
  123. dl dd {
  124. margin: 0 0 15px;
  125. padding: 0 15px;
  126. }
  127. dl dd>:first-child {
  128. margin-top: 0px;
  129. }
  130. dl dd>:last-child {
  131. margin-bottom: 0px;
  132. }
  133. /* CODE
  134. =============================================================================*/
  135. pre, code, tt {
  136. font-size: 12px;
  137. font-family: Consolas, "Liberation Mono", Courier, monospace;
  138. }
  139. code, tt {
  140. margin: 0 0px;
  141. padding: 0px 0px;
  142. white-space: nowrap;
  143. border: 1px solid #eaeaea;
  144. background-color: #f8f8f8;
  145. border-radius: 3px;
  146. }
  147. pre>code {
  148. margin: 0;
  149. padding: 0;
  150. white-space: pre;
  151. border: none;
  152. background: transparent;
  153. }
  154. pre {
  155. background-color: #f8f8f8;
  156. border: 1px solid #ccc;
  157. font-size: 13px;
  158. line-height: 19px;
  159. overflow: auto;
  160. padding: 6px 10px;
  161. border-radius: 3px;
  162. }
  163. pre code, pre tt {
  164. background-color: transparent;
  165. border: none;
  166. }
  167. kbd {
  168. -moz-border-bottom-colors: none;
  169. -moz-border-left-colors: none;
  170. -moz-border-right-colors: none;
  171. -moz-border-top-colors: none;
  172. background-color: #DDDDDD;
  173. background-image: linear-gradient(#F1F1F1, #DDDDDD);
  174. background-repeat: repeat-x;
  175. border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD;
  176. border-image: none;
  177. border-radius: 2px 2px 2px 2px;
  178. border-style: solid;
  179. border-width: 1px;
  180. font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  181. line-height: 10px;
  182. padding: 1px 4px;
  183. }
  184. /* QUOTES
  185. =============================================================================*/
  186. blockquote {
  187. border-left: 4px solid #DDD;
  188. padding: 0 15px;
  189. color: #777;
  190. }
  191. blockquote>:first-child {
  192. margin-top: 0px;
  193. }
  194. blockquote>:last-child {
  195. margin-bottom: 0px;
  196. }
  197. /* HORIZONTAL RULES
  198. =============================================================================*/
  199. hr {
  200. clear: both;
  201. margin: 15px 0;
  202. height: 0px;
  203. overflow: hidden;
  204. border: none;
  205. background: transparent;
  206. border-bottom: 4px solid #ddd;
  207. padding: 0;
  208. }
  209. /* TABLES
  210. =============================================================================*/
  211. table th {
  212. font-weight: bold;
  213. }
  214. table th, table td {
  215. border: 1px solid #ccc;
  216. padding: 6px 13px;
  217. }
  218. table tr {
  219. border-top: 1px solid #ccc;
  220. background-color: #fff;
  221. }
  222. table tr:nth-child(2n) {
  223. background-color: #f8f8f8;
  224. }
  225. /* IMAGES
  226. =============================================================================*/
  227. img {
  228. max-width: 100%
  229. }