stylesheet.css 14.2 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
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;
}

180 181 182 183
h1>code {
	font-size: 30px;
}

Kenton Varda's avatar
Kenton Varda committed
184
pre {
Kenton Varda's avatar
Kenton Varda committed
185 186 187
  width: -moz-calc(100% - 20px);
  width: -webkit-calc(100% - 20px);
  width: calc(100% - 20px);
Kenton Varda's avatar
Kenton Varda committed
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
  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
212 213
  margin-bottom: 15px;
  padding-left: 30px;
Kenton Varda's avatar
Kenton Varda committed
214 215 216
}

ul li {
Kenton Varda's avatar
Kenton Varda committed
217
  list-style: outside;
Kenton Varda's avatar
Kenton Varda committed
218 219 220
}

ol li {
Kenton Varda's avatar
Kenton Varda committed
221
  list-style: decimal outside;
Kenton Varda's avatar
Kenton Varda committed
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 269 270 271 272
}

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%;
}

273 274 275 276 277 278 279 280 281 282 283
p.author {
	margin: -1em 0 0 0;
	padding: 0;
	font-size: 80%;
	color: #888;
}

h1>a, h2>a {
	color: black;
}

Kenton Varda's avatar
Kenton Varda committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
/*******************************************************************************
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
299
body.normal #main_content.inner {
300
  margin: 0 auto 0 340px;
Kenton Varda's avatar
Kenton Varda committed
301 302
}

303
#discuss_banner {
Kenton Varda's avatar
Kenton Varda committed
304 305 306 307
  display: block;
  position: absolute;
  top:0;
  right: 10px;
308
  width: 147px;
Kenton Varda's avatar
Kenton Varda committed
309 310 311
  z-index: 10;
  padding: 10px 50px 10px 10px;
  color: #fff;
312
  background: url('../images/groups-logo.png') #333 no-repeat 95% 50%;
313 314 315 316 317 318 319
  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 {
320
  display: ;
321 322
  position: absolute;
  top:0;
323
  right: 230px;
324 325 326
  z-index: 10;
  padding: 10px 50px 10px 10px;
  color: #fff;
327
  background: url('../images/blacktocat.png') #333 no-repeat 95% 50%;
Kenton Varda's avatar
Kenton Varda committed
328 329 330 331 332 333
  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
334
.groups_link {
335
  display: inline-block;
336 337
  z-index: 10;
  padding: 10px 50px 10px 10px;
Kenton Varda's avatar
Kenton Varda committed
338
  margin: 5px;
339 340 341 342 343 344 345 346 347 348
  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
349 350 351 352 353 354 355 356 357 358
.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;
Kenton Varda's avatar
Kenton Varda committed
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.twitter_link {
  display: inline-block;
  z-index: 10;
  padding: 10px 50px 10px 10px;
  margin: 5px;
  color: #fff;
  background: url('../images/twitter.svg') #0090ff no-repeat 95% 50%;
  background-color: #0090ff;
  font-weight: 700;
  border-top-left-radius: 2px;
Kenton Varda's avatar
Kenton Varda committed
374 375
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
376 377 378 379 380 381 382 383 384 385 386 387 388 389
  border-bottom-right-radius: 2px;
}

.block_link {
  display: inline-block;
  z-index: 10;
  padding: 10px;
  margin: 5px;
  color: #fff;
  background-color: #0090ff;
  font-weight: 700;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
Kenton Varda's avatar
Kenton Varda committed
390 391 392
  border-bottom-right-radius: 2px;
}

Kenton Varda's avatar
Kenton Varda committed
393
#header_wrap {
394
  background: #C42727;
Kenton Varda's avatar
Kenton Varda committed
395 396 397 398 399 400
}

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

401 402 403 404 405 406 407
#next_banner {
  position: absolute;
  left: 100px;
  right: 100px;
  top: 100px;
  z-index: 100;
  border: 2px solid black;
Kenton Varda's avatar
Kenton Varda committed
408
  background-color: rgba(196, 196, 196, 0.9);
409 410 411 412 413 414 415 416 417 418 419 420 421 422
  text-align: center;
  color: black;
  padding: 30px;
}

#next_banner h1 {
  color: black;
	font-size: 750%;
}

#next_banner p {
	margin: 1em 100px;
}

Kenton Varda's avatar
Kenton Varda committed
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
#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;
443 444
  top: 50px;
  right: 0px;
Kenton Varda's avatar
Kenton Varda committed
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 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542
  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
543 544 545
  #forkme_banner {
    right: 215px;
  }
546 547 548 549

  #discuss_banner {
    width: 132px;
  }
Kenton Varda's avatar
Kenton Varda committed
550 551
}

552 553 554 555
#infinitely_faster img{
  position: absolute;
  left: 600px;
  top: 266px;
556
  z-index: 10;
557 558 559 560 561 562
  max-width:222px;
}

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

Kenton Varda's avatar
Kenton Varda committed
564
body.wide #corner_hack, body.normal #corner_hack {
565 566 567
  position: absolute;
  left: 0px;
  top: 209px;
Kenton Varda's avatar
Kenton Varda committed
568 569 570 571 572
  right: 0px;
  height: 10px;
  background: #212121;
}

Kenton Varda's avatar
Kenton Varda committed
573
body.wide #corner_hack>div, body.normal #corner_hack>div {
Kenton Varda's avatar
Kenton Varda committed
574 575 576 577 578 579 580
  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
581

Kenton Varda's avatar
Kenton Varda committed
582
body.wide #menu, body.normal #menu {
583 584
  position: absolute;
  left: 50px;
585
  top: 494px;
586 587
  width: 250px;
  z-index: 10;
Kenton Varda's avatar
Kenton Varda committed
588 589
}

Kenton Varda's avatar
Kenton Varda committed
590
body.wide #menu.floating, body.normal #menu.floating {
Kenton Varda's avatar
Kenton Varda committed
591
  position: fixed;
592
  top: 50px;
Kenton Varda's avatar
Kenton Varda committed
593 594
}

Kenton Varda's avatar
Kenton Varda committed
595
body.narrow #menu {
Kenton Varda's avatar
Kenton Varda committed
596 597
  position: relative;
  max-width: 640px;
Kenton Varda's avatar
Kenton Varda committed
598
  padding: 50px 10px 0px 10px;
599
  margin: 0 auto 1em;
Kenton Varda's avatar
Kenton Varda committed
600 601
}

Kenton Varda's avatar
Kenton Varda committed
602
@media screen and (max-width: 480px) {
Kenton Varda's avatar
Kenton Varda committed
603
  body.narrow #menu {
Kenton Varda's avatar
Kenton Varda committed
604 605 606
    min-width: 320px;
    max-width: 480px;
  }
Kenton Varda's avatar
Kenton Varda committed
607 608 609 610 611 612 613 614 615 616 617 618
}

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

#menu li {
  margin: 0;
  list-style-type: none;
  background-color: #212121;
}
619 620
#menu>ul>li>a, #menu>ul>li.selected {
  display: block;
621 622
  padding: 10px 15px 10px 15px;
}
Kenton Varda's avatar
Kenton Varda committed
623 624
#menu>ul>li {
  border-right: 1px solid #111;
Kenton Varda's avatar
Kenton Varda committed
625 626
}

Kenton Varda's avatar
Kenton Varda committed
627
body.wide #menu>ul>li:last-child, body.normal #menu>ul>li:last-child {
628
  border-radius: 0px 0px 10px 10px;
Kenton Varda's avatar
Kenton Varda committed
629
  border-bottom: 1px solid #111;
Kenton Varda's avatar
Kenton Varda committed
630 631
}

632 633 634 635 636
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
637
body.narrow #menu>ul>li:first-child {
Kenton Varda's avatar
Kenton Varda committed
638 639 640
  border-radius: 10px 10px 0px 0px;
}

Kenton Varda's avatar
Kenton Varda committed
641
body.narrow #menu>ul>li:last-child {
Kenton Varda's avatar
Kenton Varda committed
642 643 644
  border-radius: 0px 0px 10px 10px;
}

Kenton Varda's avatar
Kenton Varda committed
645 646 647 648 649 650
#menu a {
  color: #aaa;
}

#menu li.selected {
  background-color: #2a2a2a;
Kenton Varda's avatar
Kenton Varda committed
651
  color: #fff;
Kenton Varda's avatar
Kenton Varda committed
652 653 654 655 656 657
}

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

Kenton Varda's avatar
Kenton Varda committed
658
#menu>ul>li:hover {
Kenton Varda's avatar
Kenton Varda committed
659 660 661
  background-color: #2a2a2a;
  cursor: pointer;
}
Kenton Varda's avatar
Kenton Varda committed
662

Kenton Varda's avatar
Kenton Varda committed
663 664 665 666 667 668 669 670 671 672
#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
673 674
  color: #eee;
}
Kenton Varda's avatar
Kenton Varda committed
675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700

#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;
}
701
#menu p:hover {
Kenton Varda's avatar
Kenton Varda committed
702 703 704
  background-color: #313131;
  cursor: pointer;
}
705 706 707

table.pass-fail td { text-align: center; vertical-align: middle; }
table.pass-fail td:first-child { text-align: left; }
Kenton Varda's avatar
Kenton Varda committed
708 709 710
table.pass-fail td.pass { background-color: #8f8; }
table.pass-fail td.fail { background-color: #f88; }
table.pass-fail td.warn { background-color: #ff8; }
711

712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855
/*******************************************************************************
Slides
*******************************************************************************/

body.slides * {
  box-sizing: border-box;
}

body.slides header {
  background: #C42727;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
}

body.slides header>img {
  float: right;
  height: 20vh;
  padding: 2vh;
  width: auto;
}
body.slides header>.title {
  color: white;
  font-size: 8vh;
  text-align: left;
  line-height: 20vh;
  padding-left: 5vh;
}

body.slides main {
  font-size: 4vh;
}

body.slides main section {
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  position: fixed;
  top: 20%;
  left: 0;
  width: 100%;
  bottom: 10%;

  background-color: #f2f2f2;
  position: absolute;
  z-index: -1;

  padding: 5vh;
}

body.slides main section.current {
  z-index: 1;
}

body.slides main section#slides-cover {
  background: url(/images/logo.png) center/75% no-repeat #C42727;
  top: 0;
  border-top: none;
}

body.slides main section#slides-cover p {
  color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 6vh;
  font-weight: bold;
}

body.slides main img.ph3 {
  background-color: white;
  padding: 4vh;
  height: 60vh;
  width: auto;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  float: left;
  margin-right: 2vh;
}

body.slides pre {
  margin: 0 0 2em;
}

body.slides pre code {
  font-size: 3vh;
}

body.slides footer {
  background: #212121;
  position: fixed;
  width: 100%;
  height: 10%;
  left: 0;
  bottom: 0;

  color: white;
  text-align: right;
  padding: 2vh;
}

body.slides footer h2 {
  font-size: 4vh;
  height: 4vh;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  line-height: 4vh;
}

body.slides footer p {
  font-size: 2vh;
  height: 2vh;
  line-height: 2vh;
  margin: 0;
}

body.slides footer p.url {
  position: absolute;
  left: 5vh;
  top: 0;
  bottom: 0;
  font-size: 4vh;
  line-height: 10vh;
  margin: 0;
}

body.slides footer button {
  width: 5vh;
  height: 5vh;
  font-size: 4vh;
  padding: 0 0 0.5vh 0;
  border: none;
  border-radius: 0.5vh;
  background-color: white;
}

body.slides footer button:last-of-type {
  margin-right: 1vh;
}