github-markdown.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. body {
  2. font-family: Helvetica, arial, sans-serif;
  3. font-size: 14px;
  4. line-height: 1.6;
  5. padding-top: 10px;
  6. padding-bottom: 10px;
  7. background-color: white;
  8. padding: 10px 20%; }
  9. body > *:first-child {
  10. margin-top: 0 !important; }
  11. body > *:last-child {
  12. margin-bottom: 0 !important; }
  13. a {
  14. color: #4183C4; }
  15. a.absent {
  16. color: #cc0000; }
  17. a.anchor {
  18. display: block;
  19. padding-left: 30px;
  20. margin-left: -30px;
  21. cursor: pointer;
  22. position: absolute;
  23. top: 0;
  24. left: 0;
  25. bottom: 0; }
  26. h1, h2, h3, h4, h5, h6 {
  27. margin: 20px 0 10px;
  28. padding: 0;
  29. font-weight: bold;
  30. -webkit-font-smoothing: antialiased;
  31. cursor: text;
  32. position: relative; }
  33. h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor {
  34. background: url("../../images/modules/styleguide/para.png") no-repeat 10px center;
  35. text-decoration: none; }
  36. h1 tt, h1 code {
  37. font-size: inherit; }
  38. h2 tt, h2 code {
  39. font-size: inherit; }
  40. h3 tt, h3 code {
  41. font-size: inherit; }
  42. h4 tt, h4 code {
  43. font-size: inherit; }
  44. h5 tt, h5 code {
  45. font-size: inherit; }
  46. h6 tt, h6 code {
  47. font-size: inherit; }
  48. h1 {
  49. font-size: 28px;
  50. color: black; }
  51. h2 {
  52. font-size: 24px;
  53. border-bottom: 1px solid #cccccc;
  54. color: black; }
  55. h3 {
  56. font-size: 18px; }
  57. h4 {
  58. font-size: 16px; }
  59. h5 {
  60. font-size: 14px; }
  61. h6 {
  62. color: #777777;
  63. font-size: 14px; }
  64. p, blockquote, ol, dl, table, pre {
  65. margin: 15px 0; }
  66. hr {
  67. background: transparent url("../../images/modules/pulls/dirty-shade.png") repeat-x 0 0;
  68. border: 0 none;
  69. color: #cccccc;
  70. height: 4px;
  71. padding: 0; }
  72. body > h2:first-child {
  73. margin-top: 0;
  74. padding-top: 0; }
  75. body > h1:first-child {
  76. margin-top: 0;
  77. padding-top: 0; }
  78. body > h1:first-child + h2 {
  79. margin-top: 0;
  80. padding-top: 0; }
  81. body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child {
  82. margin-top: 0;
  83. padding-top: 0; }
  84. a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  85. margin-top: 0;
  86. padding-top: 0; }
  87. h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
  88. margin-top: 0; }
  89. li p.first {
  90. display: inline-block; }
  91. ul, ol {
  92. padding-left: 30px; }
  93. ul :first-child, ol :first-child {
  94. margin-top: 0; }
  95. ul :last-child, ol :last-child {
  96. margin-bottom: 0; }
  97. dl {
  98. padding: 0; }
  99. dl dt {
  100. font-size: 14px;
  101. font-weight: bold;
  102. font-style: italic;
  103. padding: 0;
  104. margin: 15px 0 5px; }
  105. dl dt:first-child {
  106. padding: 0; }
  107. dl dt > :first-child {
  108. margin-top: 0; }
  109. dl dt > :last-child {
  110. margin-bottom: 0; }
  111. dl dd {
  112. margin: 0 0 15px;
  113. padding: 0 15px; }
  114. dl dd > :first-child {
  115. margin-top: 0; }
  116. dl dd > :last-child {
  117. margin-bottom: 0; }
  118. blockquote {
  119. border-left: 4px solid #dddddd;
  120. padding: 0 15px;
  121. color: #777777; }
  122. blockquote > :first-child {
  123. margin-top: 0; }
  124. blockquote > :last-child {
  125. margin-bottom: 0; }
  126. table {
  127. padding: 0; }
  128. table tr {
  129. border-top: 1px solid #cccccc;
  130. background-color: white;
  131. margin: 0;
  132. padding: 0; }
  133. table tr:nth-child(2n) {
  134. background-color: #f8f8f8; }
  135. table tr th {
  136. font-weight: bold;
  137. border: 1px solid #cccccc;
  138. text-align: left;
  139. margin: 0;
  140. padding: 6px 13px; }
  141. table tr td {
  142. border: 1px solid #cccccc;
  143. text-align: left;
  144. margin: 0;
  145. padding: 6px 13px; }
  146. table tr th :first-child, table tr td :first-child {
  147. margin-top: 0; }
  148. table tr th :last-child, table tr td :last-child {
  149. margin-bottom: 0; }
  150. img {
  151. max-width: 100%; }
  152. span.frame {
  153. display: block;
  154. overflow: hidden; }
  155. span.frame > span {
  156. border: 1px solid #dddddd;
  157. display: block;
  158. float: left;
  159. overflow: hidden;
  160. margin: 13px 0 0;
  161. padding: 7px;
  162. width: auto; }
  163. span.frame span img {
  164. display: block;
  165. float: left; }
  166. span.frame span span {
  167. clear: both;
  168. color: #333333;
  169. display: block;
  170. padding: 5px 0 0; }
  171. span.align-center {
  172. display: block;
  173. overflow: hidden;
  174. clear: both; }
  175. span.align-center > span {
  176. display: block;
  177. overflow: hidden;
  178. margin: 13px auto 0;
  179. text-align: center; }
  180. span.align-center span img {
  181. margin: 0 auto;
  182. text-align: center; }
  183. span.align-right {
  184. display: block;
  185. overflow: hidden;
  186. clear: both; }
  187. span.align-right > span {
  188. display: block;
  189. overflow: hidden;
  190. margin: 13px 0 0;
  191. text-align: right; }
  192. span.align-right span img {
  193. margin: 0;
  194. text-align: right; }
  195. span.float-left {
  196. display: block;
  197. margin-right: 13px;
  198. overflow: hidden;
  199. float: left; }
  200. span.float-left span {
  201. margin: 13px 0 0; }
  202. span.float-right {
  203. display: block;
  204. margin-left: 13px;
  205. overflow: hidden;
  206. float: right; }
  207. span.float-right > span {
  208. display: block;
  209. overflow: hidden;
  210. margin: 13px auto 0;
  211. text-align: right; }
  212. code, tt {
  213. margin: 0 2px;
  214. padding: 0 5px;
  215. white-space: nowrap;
  216. border: 1px solid #eaeaea;
  217. background-color: #f8f8f8;
  218. border-radius: 3px; }
  219. pre code {
  220. margin: 0;
  221. padding: 0;
  222. white-space: pre;
  223. border: none;
  224. background: transparent; }
  225. .highlight pre {
  226. background-color: #f8f8f8;
  227. border: 1px solid #cccccc;
  228. font-size: 13px;
  229. line-height: 19px;
  230. overflow: auto;
  231. padding: 6px 10px;
  232. border-radius: 3px; }
  233. pre {
  234. background-color: #f8f8f8;
  235. border: 1px solid #cccccc;
  236. font-size: 13px;
  237. line-height: 19px;
  238. overflow: auto;
  239. padding: 6px 10px;
  240. border-radius: 3px; }
  241. pre code, pre tt {
  242. background-color: transparent;
  243. border: none; }