├── .gitignore ├── LICENSE ├── README.md └── markdownpad-github.css /.gitignore: -------------------------------------------------------------------------------- 1 | # System/hidden files 2 | *~ 3 | .DS_Store 4 | .svn 5 | .cvs 6 | *.bak 7 | *.swp 8 | Thumbs.db 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This software is released under the MIT license: 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GitHub stylesheet for MarkdownPad 2 | 3 | **NOTE**: As of [MarkdownPad 2](http://markdownpad.com/), this stylesheet is included in the software, along with all the [GitHub Flavored Markdown](http://github.github.com/github-flavored-markdown/) goodies! If you are upgrading from the first version of MarkdownPad, make sure you read [Introducing MarkdownPad 2](http://markdownpad.com/news/2013/introducing-markdownpad-2/) for a nice overview of what's new! 4 | 5 | ## License 6 | 7 | MIT 8 | -------------------------------------------------------------------------------- /markdownpad-github.css: -------------------------------------------------------------------------------- 1 | /* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */ 2 | 3 | /* RESET 4 | =============================================================================*/ 5 | 6 | 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 { 7 | margin: 0; 8 | padding: 0; 9 | border: 0; 10 | } 11 | 12 | /* BODY 13 | =============================================================================*/ 14 | 15 | body { 16 | font-family: Helvetica, arial, freesans, clean, sans-serif; 17 | font-size: 14px; 18 | line-height: 1.6; 19 | color: #333; 20 | background-color: #fff; 21 | padding: 20px; 22 | max-width: 960px; 23 | margin: 0 auto; 24 | } 25 | 26 | body>*:first-child { 27 | margin-top: 0 !important; 28 | } 29 | 30 | body>*:last-child { 31 | margin-bottom: 0 !important; 32 | } 33 | 34 | /* BLOCKS 35 | =============================================================================*/ 36 | 37 | p, blockquote, ul, ol, dl, table, pre { 38 | margin: 15px 0; 39 | } 40 | 41 | /* HEADERS 42 | =============================================================================*/ 43 | 44 | h1, h2, h3, h4, h5, h6 { 45 | margin: 20px 0 10px; 46 | padding: 0; 47 | font-weight: bold; 48 | -webkit-font-smoothing: antialiased; 49 | } 50 | 51 | h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code { 52 | font-size: inherit; 53 | } 54 | 55 | h1 { 56 | font-size: 28px; 57 | color: #000; 58 | } 59 | 60 | h2 { 61 | font-size: 24px; 62 | border-bottom: 1px solid #ccc; 63 | color: #000; 64 | } 65 | 66 | h3 { 67 | font-size: 18px; 68 | } 69 | 70 | h4 { 71 | font-size: 16px; 72 | } 73 | 74 | h5 { 75 | font-size: 14px; 76 | } 77 | 78 | h6 { 79 | color: #777; 80 | font-size: 14px; 81 | } 82 | 83 | 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 { 84 | margin-top: 0; 85 | padding-top: 0; 86 | } 87 | 88 | a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 { 89 | margin-top: 0; 90 | padding-top: 0; 91 | } 92 | 93 | h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { 94 | margin-top: 10px; 95 | } 96 | 97 | /* LINKS 98 | =============================================================================*/ 99 | 100 | a { 101 | color: #4183C4; 102 | text-decoration: none; 103 | } 104 | 105 | a:hover { 106 | text-decoration: underline; 107 | } 108 | 109 | /* LISTS 110 | =============================================================================*/ 111 | 112 | ul, ol { 113 | padding-left: 30px; 114 | } 115 | 116 | ul li > :first-child, 117 | ol li > :first-child, 118 | ul li ul:first-of-type, 119 | ol li ol:first-of-type, 120 | ul li ol:first-of-type, 121 | ol li ul:first-of-type { 122 | margin-top: 0px; 123 | } 124 | 125 | ul ul, ul ol, ol ol, ol ul { 126 | margin-bottom: 0; 127 | } 128 | 129 | dl { 130 | padding: 0; 131 | } 132 | 133 | dl dt { 134 | font-size: 14px; 135 | font-weight: bold; 136 | font-style: italic; 137 | padding: 0; 138 | margin: 15px 0 5px; 139 | } 140 | 141 | dl dt:first-child { 142 | padding: 0; 143 | } 144 | 145 | dl dt>:first-child { 146 | margin-top: 0px; 147 | } 148 | 149 | dl dt>:last-child { 150 | margin-bottom: 0px; 151 | } 152 | 153 | dl dd { 154 | margin: 0 0 15px; 155 | padding: 0 15px; 156 | } 157 | 158 | dl dd>:first-child { 159 | margin-top: 0px; 160 | } 161 | 162 | dl dd>:last-child { 163 | margin-bottom: 0px; 164 | } 165 | 166 | /* CODE 167 | =============================================================================*/ 168 | 169 | pre, code, tt { 170 | font-size: 12px; 171 | font-family: Consolas, "Liberation Mono", Courier, monospace; 172 | } 173 | 174 | code, tt { 175 | margin: 0 0px; 176 | padding: 0px 0px; 177 | white-space: nowrap; 178 | border: 1px solid #eaeaea; 179 | background-color: #f8f8f8; 180 | border-radius: 3px; 181 | } 182 | 183 | pre>code { 184 | margin: 0; 185 | padding: 0; 186 | white-space: pre; 187 | border: none; 188 | background: transparent; 189 | } 190 | 191 | pre { 192 | background-color: #f8f8f8; 193 | border: 1px solid #ccc; 194 | font-size: 13px; 195 | line-height: 19px; 196 | overflow: auto; 197 | padding: 6px 10px; 198 | border-radius: 3px; 199 | } 200 | 201 | pre code, pre tt { 202 | background-color: transparent; 203 | border: none; 204 | } 205 | 206 | kbd { 207 | -moz-border-bottom-colors: none; 208 | -moz-border-left-colors: none; 209 | -moz-border-right-colors: none; 210 | -moz-border-top-colors: none; 211 | background-color: #DDDDDD; 212 | background-image: linear-gradient(#F1F1F1, #DDDDDD); 213 | background-repeat: repeat-x; 214 | border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD; 215 | border-image: none; 216 | border-radius: 2px 2px 2px 2px; 217 | border-style: solid; 218 | border-width: 1px; 219 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 220 | line-height: 10px; 221 | padding: 1px 4px; 222 | } 223 | 224 | /* QUOTES 225 | =============================================================================*/ 226 | 227 | blockquote { 228 | border-left: 4px solid #DDD; 229 | padding: 0 15px; 230 | color: #777; 231 | } 232 | 233 | blockquote>:first-child { 234 | margin-top: 0px; 235 | } 236 | 237 | blockquote>:last-child { 238 | margin-bottom: 0px; 239 | } 240 | 241 | /* HORIZONTAL RULES 242 | =============================================================================*/ 243 | 244 | hr { 245 | clear: both; 246 | margin: 15px 0; 247 | height: 0px; 248 | overflow: hidden; 249 | border: none; 250 | background: transparent; 251 | border-bottom: 4px solid #ddd; 252 | padding: 0; 253 | } 254 | 255 | /* TABLES 256 | =============================================================================*/ 257 | 258 | table th { 259 | font-weight: bold; 260 | } 261 | 262 | table th, table td { 263 | border: 1px solid #ccc; 264 | padding: 6px 13px; 265 | } 266 | 267 | table tr { 268 | border-top: 1px solid #ccc; 269 | background-color: #fff; 270 | } 271 | 272 | table tr:nth-child(2n) { 273 | background-color: #f8f8f8; 274 | } 275 | 276 | /* IMAGES 277 | =============================================================================*/ 278 | 279 | img { 280 | max-width: 100% 281 | } 282 | --------------------------------------------------------------------------------