stylesheet.css 10.9 KB
Newer Older
Kenton Varda's avatar
Kenton Varda committed
1
/*******************************************************************************
2 3 4
Site Design by @kentonv and @sailorhg.

Originally based on Slate Theme for GitHub Pages
Kenton Varda's avatar
Kenton Varda committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
by Jason Costello, @jsncostello
*******************************************************************************/

@import url(pygment_trac.css);

/*******************************************************************************
MeyerWeb Reset
*******************************************************************************/

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 {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

blockquote, q {
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a:focus {
  outline: none;
}

/*******************************************************************************
Theme Styles
*******************************************************************************/

body {
  box-sizing: border-box;
  color:#373737;
  background: #212121;
  font-size: 16px;
  font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 10px 0;
  font-weight: 700;
  color:#222222;
  font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif;
  letter-spacing: -1px;
}

78 79 80 81
.hmargin {
  margin: 10px 0 0 0;
}

Kenton Varda's avatar
Kenton Varda committed
82 83 84 85 86 87 88
h1 {
  font-size: 36px;
  font-weight: 700;
}

h2 {
  padding-bottom: 10px;
Kenton Varda's avatar
Kenton Varda committed
89
  font-size: 28px;
Kenton Varda's avatar
Kenton Varda committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
  background: url('../images/bg_hr.png') repeat-x bottom;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 21px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin: 10px 0 15px 0;
}

footer p {
  color: #f2f2f2;
}

a {
  text-decoration: none;
  color: #007edf;
  text-shadow: none;

  transition: color 0.5s ease;
  transition: text-shadow 0.5s ease;
  -webkit-transition: color 0.5s ease;
  -webkit-transition: text-shadow 0.5s ease;
  -moz-transition: color 0.5s ease;
  -moz-transition: text-shadow 0.5s ease;
  -o-transition: color 0.5s ease;
  -o-transition: text-shadow 0.5s ease;
  -ms-transition: color 0.5s ease;
  -ms-transition: text-shadow 0.5s ease;
}

#main_content a:hover {
  color: #0069ba;
}

footer a:hover {
  color: #43adff;
  text-shadow: #0090ff 0px 0px 2px;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

img {
  position: relative;
  margin: 0 auto;
  max-width: 739px;
}

157 158 159 160 161 162 163 164 165 166
img.gittip {
	width: 51px;
	height: 10px;
}

img.gittip15 {
  width: 77px;
  height: 15px;
}

Kenton Varda's avatar
Kenton Varda committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180
pre, code {
  width: 100%;
  color: #222;
  background-color: #fff;

  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
  font-size: 14px;

  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
}

pre {
Kenton Varda's avatar
Kenton Varda committed
181 182 183
  width: -moz-calc(100% - 20px);
  width: -webkit-calc(100% - 20px);
  width: calc(100% - 20px);
Kenton Varda's avatar
Kenton Varda committed
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  overflow: auto;
}

code {
  padding: 3px;
  margin: 0 3px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
}

pre code {
  display: block;
  box-shadow: none;
}

blockquote {
  color: #666;
  margin-bottom: 20px;
  padding: 0 0 0 20px;
  border-left: 3px solid #bbb;
}

ul, ol, dl {
Kenton Varda's avatar
Kenton Varda committed
208 209
  margin-bottom: 15px;
  padding-left: 30px;
Kenton Varda's avatar
Kenton Varda committed
210 211 212
}

ul li {
Kenton Varda's avatar
Kenton Varda committed
213
  list-style: outside;
Kenton Varda's avatar
Kenton Varda committed
214 215 216
}

ol li {
Kenton Varda's avatar
Kenton Varda committed
217
  list-style: decimal outside;
Kenton Varda's avatar
Kenton Varda committed
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
}

dl dt {
  font-weight: bold;
}

dl dd {
  padding-left: 20px;
  font-style: italic;
}

dl p {
  padding-left: 20px;
  font-style: italic;
}

hr {
  height: 1px;
  margin-bottom: 5px;
  border: none;
  background: url('../images/bg_hr.png') repeat-x center;
}

table {
  border: 1px solid #373737;
  margin-bottom: 20px;
  text-align: left;
 }

th {
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 10px;
  background: #373737;
  color: #fff;
 }

td {
  padding: 10px;
  border: 1px solid #373737;
 }

form {
  background: #f2f2f2;
  padding: 20px;
}

img {
  width: 100%;
  max-width: 100%;
}

269 270 271 272 273 274 275
p.author {
	margin: -1em 0 0 0;
	padding: 0;
	font-size: 80%;
	color: #888;
}

276 277 278 279 280 281 282 283 284 285 286
p.author>span.gplus-followbutton {
	position: relative;
	top: 3px;
}

p.copyright>span.gplus-followbutton {
	position: relative;
	top: 1px;
	/* Yes, it's off by one goddamn pixel, you got a problem with that? */
}

287 288 289 290
h1>a, h2>a {
	color: black;
}

Kenton Varda's avatar
Kenton Varda committed
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
/*******************************************************************************
Full-Width Styles
*******************************************************************************/

.outer {
  width: 100%;
}

.inner {
  position: relative;
  max-width: 640px;
  padding: 20px 10px;
  margin: 0 auto;
}

Kenton Varda's avatar
Kenton Varda committed
306
body.normal #main_content.inner {
307
  margin: 0 auto 0 340px;
Kenton Varda's avatar
Kenton Varda committed
308 309
}

310
#discuss_banner {
Kenton Varda's avatar
Kenton Varda committed
311 312 313 314
  display: block;
  position: absolute;
  top:0;
  right: 10px;
315
  width: 147px;
Kenton Varda's avatar
Kenton Varda committed
316 317 318
  z-index: 10;
  padding: 10px 50px 10px 10px;
  color: #fff;
319
  background: url('../images/groups-logo.png') #333 no-repeat 95% 50%;
320 321 322 323 324 325 326
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

#forkme_banner {
327
  display: ;
328 329
  position: absolute;
  top:0;
330
  right: 230px;
331 332 333
  z-index: 10;
  padding: 10px 50px 10px 10px;
  color: #fff;
334
  background: url('../images/blacktocat.png') #333 no-repeat 95% 50%;
Kenton Varda's avatar
Kenton Varda committed
335 336 337 338 339 340
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

Kenton Varda's avatar
Kenton Varda committed
341
.groups_link {
342
  display: inline-block;
343 344
  z-index: 10;
  padding: 10px 50px 10px 10px;
Kenton Varda's avatar
Kenton Varda committed
345
  margin: 5px;
346 347 348 349 350 351 352 353 354 355
  color: #fff;
  background: url('../images/groups-logo.png') #0090ff no-repeat 95% 50%;
  background-color: #0090ff;
  font-weight: 700;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

Kenton Varda's avatar
Kenton Varda committed
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370
.github_link {
  display: inline-block;
  z-index: 10;
  padding: 10px 50px 10px 10px;
  margin: 5px;
  color: #fff;
  background: url('../images/blacktocat.png') #0090ff no-repeat 95% 50%;
  background-color: #0090ff;
  font-weight: 700;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

Kenton Varda's avatar
Kenton Varda committed
371
#header_wrap {
372
  background: #C42727;
Kenton Varda's avatar
Kenton Varda committed
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
}

#header_wrap .inner {
  padding: 50px 10px 30px 10px;
}

#project_title {
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-shadow: #111 0px 0px 10px;
}

#project_tagline {
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  background: none;
  text-shadow: #111 0px 0px 10px;
}

#downloads {
  position: absolute;
  width: 210px;
  z-index: 10;
399 400
  top: 50px;
  right: 0px;
Kenton Varda's avatar
Kenton Varda committed
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498
  background: url('../images/icon_download.png') no-repeat 0% 90%;
}

.zip_download_link {
  display: block;
  float: right;
  width: 90px;
  height:70px;
  text-indent: -5000px;
  overflow: hidden;
  background: url(../images/sprite_download.png) no-repeat bottom left;
}

.tar_download_link {
  display: block;
  float: right;
  width: 90px;
  height:70px;
  text-indent: -5000px;
  overflow: hidden;
  background: url(../images/sprite_download.png) no-repeat bottom right;
  margin-left: 10px;
}

.zip_download_link:hover {
  background: url(../images/sprite_download.png) no-repeat top left;
}

.tar_download_link:hover {
  background: url(../images/sprite_download.png) no-repeat top right;
}

#main_content_wrap {
  background: #f2f2f2;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

#main_content {
  padding-top: 40px;
}

#footer_wrap {
  background: #212121;
}



/*******************************************************************************
Small Device Styles
*******************************************************************************/

@media screen and (max-width: 480px) {
  body {
    font-size:14px;
  }

  #downloads {
    display: none;
  }

  .inner {
    min-width: 320px;
    max-width: 480px;
  }

  #project_title {
  font-size: 32px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 21px;
  }

  h4 {
    font-size: 18px;
  }

  h5 {
    font-size: 14px;
  }

  h6 {
    font-size: 12px;
  }

  code, pre {
    font-size: 11px;
  }

Kenton Varda's avatar
Kenton Varda committed
499 500 501
  #forkme_banner {
    right: 215px;
  }
502 503 504 505

  #discuss_banner {
    width: 132px;
  }
Kenton Varda's avatar
Kenton Varda committed
506 507
}

508 509 510 511
#infinitely_faster img{
  position: absolute;
  left: 600px;
  top: 266px;
512
  z-index: 10;
513 514 515 516 517 518
  max-width:222px;
}

body.narrow #infinitely_faster{
  display:none;
}
Kenton Varda's avatar
Kenton Varda committed
519

Kenton Varda's avatar
Kenton Varda committed
520
body.wide #corner_hack, body.normal #corner_hack {
521 522 523
  position: absolute;
  left: 0px;
  top: 209px;
Kenton Varda's avatar
Kenton Varda committed
524 525 526 527 528
  right: 0px;
  height: 10px;
  background: #212121;
}

Kenton Varda's avatar
Kenton Varda committed
529
body.wide #corner_hack>div, body.normal #corner_hack>div {
Kenton Varda's avatar
Kenton Varda committed
530 531 532 533 534 535 536
  margin-left: 249px;
  height: 10px;
  border-radius: 10px 0px 0px 0px;
  background: #f2f2f2;
  border-top: 1px solid #111;
  border-left: 1px solid #111;
}
Kenton Varda's avatar
Kenton Varda committed
537

Kenton Varda's avatar
Kenton Varda committed
538
body.wide #menu, body.normal #menu {
539 540 541 542 543
  position: absolute;
  left: 50px;
  top: 460px;
  width: 250px;
  z-index: 10;
Kenton Varda's avatar
Kenton Varda committed
544 545
}

Kenton Varda's avatar
Kenton Varda committed
546
body.wide #menu.floating, body.normal #menu.floating {
Kenton Varda's avatar
Kenton Varda committed
547
  position: fixed;
548
  top: 50px;
Kenton Varda's avatar
Kenton Varda committed
549 550
}

Kenton Varda's avatar
Kenton Varda committed
551
body.narrow #menu {
Kenton Varda's avatar
Kenton Varda committed
552 553
  position: relative;
  max-width: 640px;
Kenton Varda's avatar
Kenton Varda committed
554
  padding: 50px 10px 0px 10px;
Kenton Varda's avatar
Kenton Varda committed
555
  margin: 0 auto;
Kenton Varda's avatar
Kenton Varda committed
556 557
}

Kenton Varda's avatar
Kenton Varda committed
558
@media screen and (max-width: 480px) {
Kenton Varda's avatar
Kenton Varda committed
559
  body.narrow #menu {
Kenton Varda's avatar
Kenton Varda committed
560 561 562
    min-width: 320px;
    max-width: 480px;
  }
Kenton Varda's avatar
Kenton Varda committed
563 564 565 566 567 568 569 570 571 572 573 574 575
}

#menu ul {
  padding: 0;
  margin: 0;
}

#menu li {
  margin: 0;
  padding: 10px 15px 10px 15px;
  list-style-type: none;
  background-color: #212121;
}
Kenton Varda's avatar
Kenton Varda committed
576 577
#menu>ul>li {
  border-right: 1px solid #111;
Kenton Varda's avatar
Kenton Varda committed
578 579
}

Kenton Varda's avatar
Kenton Varda committed
580
body.wide #menu>ul>li:last-child, body.normal #menu>ul>li:last-child {
581
  border-radius: 0px 0px 10px 10px;
Kenton Varda's avatar
Kenton Varda committed
582
  border-bottom: 1px solid #111;
Kenton Varda's avatar
Kenton Varda committed
583 584
}

585 586 587 588 589
body.wide #menu>ul>li:first-child, body.normal #menu>ul>li:first-child {
  border-radius: 10px 10px 0px 0px;
  border-top: 1px solid #111;
}

Kenton Varda's avatar
Kenton Varda committed
590
body.narrow #menu>ul>li:first-child {
Kenton Varda's avatar
Kenton Varda committed
591 592 593
  border-radius: 10px 10px 0px 0px;
}

Kenton Varda's avatar
Kenton Varda committed
594
body.narrow #menu>ul>li:last-child {
Kenton Varda's avatar
Kenton Varda committed
595 596 597
  border-radius: 0px 0px 10px 10px;
}

Kenton Varda's avatar
Kenton Varda committed
598 599 600 601 602 603
#menu a {
  color: #aaa;
}

#menu li.selected {
  background-color: #2a2a2a;
Kenton Varda's avatar
Kenton Varda committed
604
  color: #fff;
Kenton Varda's avatar
Kenton Varda committed
605 606 607 608 609 610
}

#menu li.selected a {
  color: #fff;
}

Kenton Varda's avatar
Kenton Varda committed
611
#menu>ul>li:hover {
Kenton Varda's avatar
Kenton Varda committed
612 613 614
  background-color: #2a2a2a;
  cursor: pointer;
}
Kenton Varda's avatar
Kenton Varda committed
615

Kenton Varda's avatar
Kenton Varda committed
616 617 618 619 620 621 622 623 624 625
#menu>ul>li.selected:hover {
  background-color: #2a2a2a;
  cursor: auto;
}

#menu>ul>li.selected:hover {
  cursor: auto;
}

#menu>ul>li:hover a {
Kenton Varda's avatar
Kenton Varda committed
626 627
  color: #eee;
}
Kenton Varda's avatar
Kenton Varda committed
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657

#menu>ul>li.selected:hover a {
  color: #fff;
}

ul#toc {
  background-color: #2a2a2a;
  margin: 0;
  font-size: 80%;
}

#toc ul {
  margin: 0;
  padding: 0;
}

#toc li {
  padding: 0 0 0 15px;
  background-color: #2a2a2a;
}

#menu p {
  padding: 2px 0 2px 15px;
  margin: 0;
  text-indent: -15px;
}
#menu p:hover {
  background-color: #313131;
  cursor: pointer;
}