stylesheet.css 11.7 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 376 377 378
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

Kenton Varda's avatar
Kenton Varda committed
379
#header_wrap {
380
  background: #C42727;
Kenton Varda's avatar
Kenton Varda committed
381 382 383 384 385 386
}

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

387 388 389 390 391 392 393
#next_banner {
  position: absolute;
  left: 100px;
  right: 100px;
  top: 100px;
  z-index: 100;
  border: 2px solid black;
Kenton Varda's avatar
Kenton Varda committed
394
  background-color: rgba(196, 196, 196, 0.9);
395 396 397 398 399 400 401 402 403 404 405 406 407 408
  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
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
#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;
429 430
  top: 50px;
  right: 0px;
Kenton Varda's avatar
Kenton Varda committed
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 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
  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
529 530 531
  #forkme_banner {
    right: 215px;
  }
532 533 534 535

  #discuss_banner {
    width: 132px;
  }
Kenton Varda's avatar
Kenton Varda committed
536 537
}

538 539 540 541
#infinitely_faster img{
  position: absolute;
  left: 600px;
  top: 266px;
542
  z-index: 10;
543 544 545 546 547 548
  max-width:222px;
}

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

Kenton Varda's avatar
Kenton Varda committed
550
body.wide #corner_hack, body.normal #corner_hack {
551 552 553
  position: absolute;
  left: 0px;
  top: 209px;
Kenton Varda's avatar
Kenton Varda committed
554 555 556 557 558
  right: 0px;
  height: 10px;
  background: #212121;
}

Kenton Varda's avatar
Kenton Varda committed
559
body.wide #corner_hack>div, body.normal #corner_hack>div {
Kenton Varda's avatar
Kenton Varda committed
560 561 562 563 564 565 566
  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
567

Kenton Varda's avatar
Kenton Varda committed
568
body.wide #menu, body.normal #menu {
569 570
  position: absolute;
  left: 50px;
571
  top: 494px;
572 573
  width: 250px;
  z-index: 10;
Kenton Varda's avatar
Kenton Varda committed
574 575
}

Kenton Varda's avatar
Kenton Varda committed
576
body.wide #menu.floating, body.normal #menu.floating {
Kenton Varda's avatar
Kenton Varda committed
577
  position: fixed;
578
  top: 50px;
Kenton Varda's avatar
Kenton Varda committed
579 580
}

Kenton Varda's avatar
Kenton Varda committed
581
body.narrow #menu {
Kenton Varda's avatar
Kenton Varda committed
582 583
  position: relative;
  max-width: 640px;
Kenton Varda's avatar
Kenton Varda committed
584
  padding: 50px 10px 0px 10px;
Kenton Varda's avatar
Kenton Varda committed
585
  margin: 0 auto;
Kenton Varda's avatar
Kenton Varda committed
586 587
}

Kenton Varda's avatar
Kenton Varda committed
588
@media screen and (max-width: 480px) {
Kenton Varda's avatar
Kenton Varda committed
589
  body.narrow #menu {
Kenton Varda's avatar
Kenton Varda committed
590 591 592
    min-width: 320px;
    max-width: 480px;
  }
Kenton Varda's avatar
Kenton Varda committed
593 594 595 596 597 598 599 600 601 602 603 604
}

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

#menu li {
  margin: 0;
  list-style-type: none;
  background-color: #212121;
}
605 606
#menu>ul>li>a, #menu>ul>li.selected {
  display: block;
607 608
  padding: 10px 15px 10px 15px;
}
Kenton Varda's avatar
Kenton Varda committed
609 610
#menu>ul>li {
  border-right: 1px solid #111;
Kenton Varda's avatar
Kenton Varda committed
611 612
}

Kenton Varda's avatar
Kenton Varda committed
613
body.wide #menu>ul>li:last-child, body.normal #menu>ul>li:last-child {
614
  border-radius: 0px 0px 10px 10px;
Kenton Varda's avatar
Kenton Varda committed
615
  border-bottom: 1px solid #111;
Kenton Varda's avatar
Kenton Varda committed
616 617
}

618 619 620 621 622
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
623
body.narrow #menu>ul>li:first-child {
Kenton Varda's avatar
Kenton Varda committed
624 625 626
  border-radius: 10px 10px 0px 0px;
}

Kenton Varda's avatar
Kenton Varda committed
627
body.narrow #menu>ul>li:last-child {
Kenton Varda's avatar
Kenton Varda committed
628 629 630
  border-radius: 0px 0px 10px 10px;
}

Kenton Varda's avatar
Kenton Varda committed
631 632 633 634 635 636
#menu a {
  color: #aaa;
}

#menu li.selected {
  background-color: #2a2a2a;
Kenton Varda's avatar
Kenton Varda committed
637
  color: #fff;
Kenton Varda's avatar
Kenton Varda committed
638 639 640 641 642 643
}

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

Kenton Varda's avatar
Kenton Varda committed
644
#menu>ul>li:hover {
Kenton Varda's avatar
Kenton Varda committed
645 646 647
  background-color: #2a2a2a;
  cursor: pointer;
}
Kenton Varda's avatar
Kenton Varda committed
648

Kenton Varda's avatar
Kenton Varda committed
649 650 651 652 653 654 655 656 657 658
#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
659 660
  color: #eee;
}
Kenton Varda's avatar
Kenton Varda committed
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686

#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;
}
687
#menu p:hover {
Kenton Varda's avatar
Kenton Varda committed
688 689 690
  background-color: #313131;
  cursor: pointer;
}
691 692 693

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
694 695 696
table.pass-fail td.pass { background-color: #8f8; }
table.pass-fail td.fail { background-color: #f88; }
table.pass-fail td.warn { background-color: #ff8; }
697