|
| 1 | +/* |
| 2 | + * Fonts |
| 3 | + */ |
| 4 | + |
| 5 | +@font-face { |
| 6 | + font-family: 'fontello'; |
| 7 | + src: url('font/fontello.eot'); |
| 8 | + src: url('font/fontello.eot#iefix') format('embedded-opentype'), |
| 9 | + url('font/fontello.woff') format('woff'), |
| 10 | + url('font/fontello.ttf') format('truetype'), |
| 11 | + url('font/fontello.svg') format('svg'); |
| 12 | + font-weight: normal; |
| 13 | + font-style: normal; |
| 14 | +} |
| 15 | + |
| 16 | +[class^="icon-"]:before, [class*=" icon-"]:before { |
| 17 | + font-family: "fontello"; |
| 18 | + font-style: normal; |
| 19 | + font-weight: normal; |
| 20 | + speak: none; |
| 21 | + display: inline-block; |
| 22 | + text-decoration: inherit; |
| 23 | + width: 1em; |
| 24 | + margin-right: .2em; |
| 25 | + text-align: center; |
| 26 | + font-variant: normal; |
| 27 | + text-transform: none; |
| 28 | +} |
| 29 | + |
| 30 | +.icon-github-circled:before { content: '\e800'; } /* '' */ |
| 31 | +.icon-twitter:before { content: '\e801'; } /* '' */ |
| 32 | + |
| 33 | + |
| 34 | +/* |
| 35 | + * Scaffolding and type |
| 36 | + */ |
| 37 | + |
| 38 | +html { |
| 39 | + font-size: 16px; |
| 40 | +} |
| 41 | +@media (min-width: 48em) { |
| 42 | + html { |
| 43 | + font-size: 20px; |
| 44 | + } |
| 45 | +} |
| 46 | + |
| 47 | +body { |
| 48 | + margin: 0; |
| 49 | + font: 1rem/1.5 "微软雅黑","PT Sans", sans-serif; |
| 50 | + color: #5a5a5a; |
| 51 | +} |
| 52 | + |
| 53 | +a { |
| 54 | + color: #08c; |
| 55 | + text-decoration: none; |
| 56 | +} |
| 57 | +a:hover { |
| 58 | + text-decoration: underline; |
| 59 | +} |
| 60 | + |
| 61 | +h1, h2, h3, h4 { |
| 62 | + margin: 0 0 .5rem; |
| 63 | + font-weight: normal; |
| 64 | + line-height: 1; |
| 65 | + color: #2a2a2a; |
| 66 | + letter-spacing: -.05em; |
| 67 | +} |
| 68 | +h1 { font-size: 3rem; } |
| 69 | +h2 { font-size: 2.5rem; } |
| 70 | +h3 { font-size: 1.75rem; } |
| 71 | +h4 { font-size: 1.25rem } |
| 72 | + |
| 73 | +p { |
| 74 | + margin: 0 0 1rem; |
| 75 | +} |
| 76 | +.lead { |
| 77 | + font-size: 1.3rem; |
| 78 | +} |
| 79 | + |
| 80 | +blockquote { |
| 81 | + position: relative; |
| 82 | + margin: 0 1rem 1rem; |
| 83 | + font-style: italic; |
| 84 | + color: #7a7a7a; |
| 85 | +} |
| 86 | +blockquote p { |
| 87 | + margin-bottom: 0; |
| 88 | +} |
| 89 | + |
| 90 | +ul li { |
| 91 | + margin-bottom: .25rem; |
| 92 | +} |
| 93 | + |
| 94 | +/* Tighten up margin on last items */ |
| 95 | +p:last-child, |
| 96 | +ul:last-child, |
| 97 | +blockquote:last-child{ |
| 98 | + margin-bottom: 0; |
| 99 | +} |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | +/* |
| 104 | + * Code |
| 105 | + */ |
| 106 | + |
| 107 | +code, |
| 108 | +pre { |
| 109 | + font-family: "PT Mono", Menlo, "Courier New", monospace; |
| 110 | + font-size: 95%; |
| 111 | +} |
| 112 | +code { |
| 113 | + padding: 2px 4px; |
| 114 | + font-size: 85%; |
| 115 | + color: #d44950; |
| 116 | + background-color: #f7f7f9; |
| 117 | + border-radius: .2rem; |
| 118 | +} |
| 119 | + |
| 120 | +pre { |
| 121 | + display: block; |
| 122 | + margin: 0 0 1rem; |
| 123 | + line-height: 1.4; |
| 124 | + white-space: pre; |
| 125 | + white-space: pre-wrap; |
| 126 | +} |
| 127 | +pre code { |
| 128 | + padding: 0; |
| 129 | + color: inherit; |
| 130 | + background-color: transparent; |
| 131 | + border: 0; |
| 132 | +} |
| 133 | +.highlight { |
| 134 | + margin: 0; |
| 135 | +} |
| 136 | +.highlight pre { |
| 137 | + margin-bottom: 0; |
| 138 | +} |
| 139 | +.highlight + .highlight { |
| 140 | + margin-top: 1rem; |
| 141 | +} |
| 142 | + |
| 143 | + |
| 144 | +/* |
| 145 | + * The Grid |
| 146 | + */ |
| 147 | + |
| 148 | +.col { |
| 149 | + padding: 2rem 1rem; |
| 150 | +} |
| 151 | +.col p { |
| 152 | + max-width: 40rem; |
| 153 | +} |
| 154 | +.col + .col { |
| 155 | + border-top: 1px solid #dfe1e8; |
| 156 | + background-color: #f7f7f9; |
| 157 | +} |
| 158 | +@media (min-width: 38em) { |
| 159 | + .col { |
| 160 | + padding: 2rem; |
| 161 | + } |
| 162 | +} |
| 163 | +@media (min-width: 48em) { |
| 164 | + .section { |
| 165 | + display: table; |
| 166 | + width: 100%; |
| 167 | + table-layout: fixed; |
| 168 | + } |
| 169 | + .col { |
| 170 | + display: table-cell; |
| 171 | + padding: 3rem; |
| 172 | + vertical-align: top; |
| 173 | + } |
| 174 | + .col + .col { |
| 175 | + border-top: 0; |
| 176 | + } |
| 177 | +} |
| 178 | + |
| 179 | +/* Make the ToC a whole section */ |
| 180 | +.toc .col + .col { |
| 181 | + background-color: #fff; |
| 182 | +} |
| 183 | + |
| 184 | + |
| 185 | +/* |
| 186 | + * Masthead |
| 187 | + */ |
| 188 | + |
| 189 | +.masthead { |
| 190 | + padding: 3rem 1rem; |
| 191 | + color: rgba(255,255,255,.5); |
| 192 | + text-align: center; |
| 193 | + background-color: #2a3440; |
| 194 | +} |
| 195 | +.masthead h1 { |
| 196 | + color: #fff; |
| 197 | + margin-bottom: .25rem; |
| 198 | +} |
| 199 | +.masthead .icon { |
| 200 | + display: inline-block; |
| 201 | + font-size: 3rem; |
| 202 | + margin: 0 .5rem; |
| 203 | +} |
| 204 | +.masthead-links { |
| 205 | + font-size: 2rem; |
| 206 | +} |
| 207 | +.masthead-links a { |
| 208 | + color: rgba(255,255,255,.5); |
| 209 | + text-decoration: none; |
| 210 | + transition: all .15s linear; |
| 211 | +} |
| 212 | +.masthead-links a:hover { |
| 213 | + color: #fff; |
| 214 | +} |
| 215 | + |
| 216 | +@media (min-width: 38em) { |
| 217 | + .masthead { |
| 218 | + padding-top: 4rem; |
| 219 | + padding-bottom: 4rem; |
| 220 | + } |
| 221 | +} |
| 222 | + |
| 223 | + |
| 224 | +/* |
| 225 | + * Sections |
| 226 | + */ |
| 227 | + |
| 228 | +.heading { |
| 229 | + padding: 2rem 1rem 1.5rem; |
| 230 | + background-color: #dfe1e8; |
| 231 | +} |
| 232 | + |
| 233 | +@media (min-width: 38em) { |
| 234 | + .heading { |
| 235 | + padding: 3rem 3rem 2.5rem; |
| 236 | + } |
| 237 | +} |
| 238 | + |
| 239 | +.section { |
| 240 | + border-bottom: 1px solid #dfe1e8; |
| 241 | +} |
| 242 | + |
| 243 | + |
| 244 | +/* |
| 245 | + * Footer |
| 246 | + */ |
| 247 | + |
| 248 | +.footer { |
| 249 | + padding: 3rem 1rem; |
| 250 | + font-size: 90%; |
| 251 | + text-align: center; |
| 252 | +} |
| 253 | +.footer p { |
| 254 | + margin-bottom: .5rem; |
| 255 | +} |
| 256 | + |
| 257 | +.quick-links { |
| 258 | + list-style: none; |
| 259 | + margin-left: 0; |
| 260 | +} |
| 261 | +.quick-links li { |
| 262 | + display: inline; |
| 263 | +} |
| 264 | + |
| 265 | + |
| 266 | +/* |
| 267 | + * Syntax highlighting |
| 268 | + */ |
| 269 | + |
| 270 | +.hll { background-color: #ffffcc } |
| 271 | + /*{ background: #f0f3f3; }*/ |
| 272 | +.c { color: #999; } /* Comment */ |
| 273 | +.err { color: #AA0000; background-color: #FFAAAA } /* Error */ |
| 274 | +.k { color: #006699; } /* Keyword */ |
| 275 | +.o { color: #555555 } /* Operator */ |
| 276 | +.cm { color: #999; } /* Comment.Multiline */ /* Edited to remove italics and make into comment */ |
| 277 | +.cp { color: #009999 } /* Comment.Preproc */ |
| 278 | +.c1 { color: #999; } /* Comment.Single */ |
| 279 | +.cs { color: #999; } /* Comment.Special */ |
| 280 | +.gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */ |
| 281 | +.ge { font-style: italic } /* Generic.Emph */ |
| 282 | +.gr { color: #FF0000 } /* Generic.Error */ |
| 283 | +.gh { color: #003300; } /* Generic.Heading */ |
| 284 | +.gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */ |
| 285 | +.go { color: #AAAAAA } /* Generic.Output */ |
| 286 | +.gp { color: #000099; } /* Generic.Prompt */ |
| 287 | +.gs { } /* Generic.Strong */ |
| 288 | +.gu { color: #003300; } /* Generic.Subheading */ |
| 289 | +.gt { color: #99CC66 } /* Generic.Traceback */ |
| 290 | +.kc { color: #006699; } /* Keyword.Constant */ |
| 291 | +.kd { color: #006699; } /* Keyword.Declaration */ |
| 292 | +.kn { color: #006699; } /* Keyword.Namespace */ |
| 293 | +.kp { color: #006699 } /* Keyword.Pseudo */ |
| 294 | +.kr { color: #006699; } /* Keyword.Reserved */ |
| 295 | +.kt { color: #007788; } /* Keyword.Type */ |
| 296 | +.m { color: #FF6600 } /* Literal.Number */ |
| 297 | +.s { color: #d44950 } /* Literal.String */ |
| 298 | +.na { color: #4f9fcf } /* Name.Attribute */ |
| 299 | +.nb { color: #336666 } /* Name.Builtin */ |
| 300 | +.nc { color: #00AA88; } /* Name.Class */ |
| 301 | +.no { color: #336600 } /* Name.Constant */ |
| 302 | +.nd { color: #9999FF } /* Name.Decorator */ |
| 303 | +.ni { color: #999999; } /* Name.Entity */ |
| 304 | +.ne { color: #CC0000; } /* Name.Exception */ |
| 305 | +.nf { color: #CC00FF } /* Name.Function */ |
| 306 | +.nl { color: #9999FF } /* Name.Label */ |
| 307 | +.nn { color: #00CCFF; } /* Name.Namespace */ |
| 308 | +.nt { color: #2f6f9f; } /* Name.Tag */ |
| 309 | +.nv { color: #003333 } /* Name.Variable */ |
| 310 | +.ow { color: #000000; } /* Operator.Word */ |
| 311 | +.w { color: #bbbbbb } /* Text.Whitespace */ |
| 312 | +.mf { color: #FF6600 } /* Literal.Number.Float */ |
| 313 | +.mh { color: #FF6600 } /* Literal.Number.Hex */ |
| 314 | +.mi { color: #FF6600 } /* Literal.Number.Integer */ |
| 315 | +.mo { color: #FF6600 } /* Literal.Number.Oct */ |
| 316 | +.sb { color: #CC3300 } /* Literal.String.Backtick */ |
| 317 | +.sc { color: #CC3300 } /* Literal.String.Char */ |
| 318 | +.sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */ |
| 319 | +.s2 { color: #CC3300 } /* Literal.String.Double */ |
| 320 | +.se { color: #CC3300; } /* Literal.String.Escape */ |
| 321 | +.sh { color: #CC3300 } /* Literal.String.Heredoc */ |
| 322 | +.si { color: #AA0000 } /* Literal.String.Interpol */ |
| 323 | +.sx { color: #CC3300 } /* Literal.String.Other */ |
| 324 | +.sr { color: #33AAAA } /* Literal.String.Regex */ |
| 325 | +.s1 { color: #CC3300 } /* Literal.String.Single */ |
| 326 | +.ss { color: #FFCC33 } /* Literal.String.Symbol */ |
| 327 | +.bp { color: #336666 } /* Name.Builtin.Pseudo */ |
| 328 | +.vc { color: #003333 } /* Name.Variable.Class */ |
| 329 | +.vg { color: #003333 } /* Name.Variable.Global */ |
| 330 | +.vi { color: #003333 } /* Name.Variable.Instance */ |
| 331 | +.il { color: #FF6600 } /* Literal.Number.Integer.Long */ |
| 332 | + |
| 333 | +.css .o, |
| 334 | +.css .o + .nt, |
| 335 | +.css .nt + .nt { color: #999; } |
| 336 | + |
0 commit comments