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