Create gh-pages branch via GitHub

This commit is contained in:
Song Gao 2013-03-25 19:00:07 -07:00
parent 7f168c0d95
commit 595e70c8c5
3 changed files with 157 additions and 319 deletions

View file

@ -7,7 +7,6 @@
<link rel="stylesheet" href="stylesheets/styles.css"> <link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css"> <link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src="javascripts/scale.fix.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@ -16,18 +15,17 @@
<body> <body>
<div class="wrapper"> <div class="wrapper">
<header> <header>
<h1 class="header">Water</h1> <h1>Water</h1>
<p class="header">A simple TUN/TAP library written in native Go.</p> <p>A simple TUN/TAP library written in native Go.</p>
<p class="view"><a href="https://github.com/songgao/water">View the Project on GitHub <small>songgao/water</small></a></p>
<ul> <ul>
<li class="download"><a class="buttons" href="https://github.com/songgao/water/zipball/master">Download ZIP</a></li> <li><a href="https://github.com/songgao/water/zipball/master">Download <strong>ZIP File</strong></a></li>
<li class="download"><a class="buttons" href="https://github.com/songgao/water/tarball/master">Download TAR</a></li> <li><a href="https://github.com/songgao/water/tarball/master">Download <strong>TAR Ball</strong></a></li>
<li><a class="buttons github" href="https://github.com/songgao/water">View On GitHub</a></li> <li><a href="https://github.com/songgao/water">View On <strong>GitHub</strong></a></li>
</ul> </ul>
<p class="header">This project is maintained by <a class="header name" href="https://github.com/songgao">songgao</a></p>
</header> </header>
<section> <section>
<h1>water</h1> <h1>water</h1>
@ -134,10 +132,11 @@ Protocol: 1
<p><code>tuntap</code>: <a href="https://code.google.com/p/tuntap/">https://code.google.com/p/tuntap/</a></p> <p><code>tuntap</code>: <a href="https://code.google.com/p/tuntap/">https://code.google.com/p/tuntap/</a></p>
</section> </section>
<footer> <footer>
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p> <p>This project is maintained by <a href="https://github.com/songgao">songgao</a></p>
<p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer> </footer>
</div> </div>
<!--[if !IE]><script>fixScale(document);</script><![endif]--> <script src="javascripts/scale.fix.js"></script>
</body> </body>
</html> </html>

View file

@ -1,20 +1,17 @@
fixScale = function(doc) { var metas = document.getElementsByTagName('meta');
var i;
var addEvent = 'addEventListener', if (navigator.userAgent.match(/iPhone/i)) {
type = 'gesturestart', for (i=0; i<metas.length; i++) {
qsa = 'querySelectorAll', if (metas[i].name == "viewport") {
scales = [1, 1], metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
function fix() {
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
doc.removeEventListener(type, fix, true);
} }
if ((meta = meta[meta.length - 1]) && addEvent in doc) {
fix();
scales = [.25, 1.6];
doc[addEvent](type, fix, true);
} }
document.addEventListener("gesturestart", gestureStart, false);
}; }
function gestureStart() {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
}
}
}

View file

@ -1,328 +1,186 @@
@import url(https://fonts.googleapis.com/css?family=Arvo:400,700,400italic); @import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
/* 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;
}
/* Base text styles */
body { body {
padding:10px 50px 0 0; padding:50px;
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif; font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px; color:#777;
color: #232323; font-weight:300;
background-color: #FBFAF7;
margin: 0;
line-height: 1.8em;
-webkit-font-smoothing: antialiased;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
color:#232323; color:#222;
margin:36px 0 10px; margin:0 0 20px;
} }
p, ul, ol, table, dl { p, ul, ol, table, pre, dl {
margin:0 0 22px; margin:0 0 20px;
} }
h1, h2, h3 { h1, h2, h3 {
font-family: Arvo, Monaco, serif; line-height:1.1;
line-height:1.3;
font-weight: normal;
}
h1,h2, h3 {
display: block;
border-bottom: 1px solid #ccc;
padding-bottom: 5px;
} }
h1 { h1 {
font-size: 30px; font-size:28px;
} }
h2 { h2 {
font-size: 24px; color:#393939;
} }
h3 { h3, h4, h5, h6 {
font-size: 18px; color:#494949;
}
h4, h5, h6 {
font-family: Arvo, Monaco, serif;
font-weight: 700;
} }
a { a {
color:#C30000; color:#39c;
font-weight:200; font-weight:400;
text-decoration:none; text-decoration:none;
} }
a:hover {
text-decoration: underline;
}
a small { a small {
font-size: 12px; font-size:11px;
color:#777;
margin-top:-0.6em;
display:block;
} }
em { .wrapper {
font-style: italic; width:860px;
} margin:0 auto;
strong {
font-weight:700;
}
ul li {
list-style: inside;
padding-left: 25px;
}
ol li {
list-style: decimal inside;
padding-left: 20px;
} }
blockquote { blockquote {
margin: 0; border-left:1px solid #e5e5e5;
padding: 0 0 0 20px; margin:0;
font-style: italic; padding:0 0 0 20px;
font-style:italic;
} }
dl, dt, dd, dl p {
font-color: #444;
}
dl dt {
font-weight: bold;
}
dl dd {
padding-left: 20px;
font-style: italic;
}
dl p {
padding-left: 20px;
font-style: italic;
}
hr {
border:0;
background:#ccc;
height:1px;
margin:0 0 24px;
}
/* Images */
img {
position: relative;
margin: 0 auto;
max-width: 650px;
padding: 5px;
margin: 10px 0 32px 0;
border: 1px solid #ccc;
}
/* Code blocks */
code, pre { code, pre {
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
color:#000; color:#333;
font-size:14px; font-size:12px;
} }
pre { pre {
padding: 4px 12px; padding:8px 15px;
background: #FDFEFB; background: #f8f8f8;
border-radius:4px; border-radius:5px;
border:1px solid #D7D8C8; border:1px solid #e5e5e5;
overflow: auto; overflow-x: auto;
overflow-y: hidden;
margin-bottom: 32px;
} }
/* Tables */
table { table {
width:100%; width:100%;
border-collapse:collapse;
} }
table { th, td {
border: 1px solid #ccc; text-align:left;
margin-bottom: 32px; padding:5px 10px;
text-align: left; border-bottom:1px solid #e5e5e5;
} }
dt {
color:#444;
font-weight:700;
}
th { th {
font-family: 'Arvo', Helvetica, Arial, sans-serif; color:#444;
font-size: 18px;
font-weight: normal;
padding: 10px;
background: #232323;
color: #FDFEFB;
}
td {
padding: 10px;
background: #ccc;
}
/* Wrapper */
.wrapper {
width:960px;
} }
img {
/* Header */ max-width:100%;
}
header { header {
background-color: #171717; width:270px;
color: #FDFDFB;
width:170px;
float:left; float:left;
position:fixed; position:fixed;
border: 1px solid #000;
-webkit-border-top-right-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-topright: 4px;
-moz-border-radius-bottomright: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
padding: 34px 25px 22px 50px;
margin: 30px 25px 0 0;
-webkit-font-smoothing: antialiased;
}
p.header {
font-size: 16px;
}
h1.header {
font-family: Arvo, sans-serif;
font-size: 30px;
font-weight: 300;
line-height: 1.3em;
border-bottom: none;
margin-top: 0;
}
h1.header, a.header, a.name, header a{
color: #fff;
}
a.header {
text-decoration: underline;
}
a.name {
white-space: nowrap;
} }
header ul { header ul {
list-style:none; list-style:none;
height:40px;
padding:0; padding:0;
background: #eee;
background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
border-radius:5px;
border:1px solid #d2d2d2;
box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
width:270px;
} }
header li { header li {
list-style-type: none; width:89px;
width:132px; float:left;
height:15px; border-right:1px solid #d2d2d2;
margin-bottom: 12px; height:40px;
line-height: 1em;
padding: 6px 6px 6px 7px;
background: #AF0011;
background: -moz-linear-gradient(top, #AF0011 0%, #820011 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
background: -webkit-linear-gradient(top, #AF0011 0%,#820011 100%);
background: -o-linear-gradient(top, #AF0011 0%,#820011 100%);
background: -ms-linear-gradient(top, #AF0011 0%,#820011 100%);
background: linear-gradient(top, #AF0011 0%,#820011 100%);
border-radius:4px;
border:1px solid #0D0D0D;
-webkit-box-shadow: inset 0px 1px 1px 0 rgba(233,2,38, 1);
box-shadow: inset 0px 1px 1px 0 rgba(233,2,38, 1);
} }
header li:hover { header ul a {
background: #C3001D; line-height:1;
background: -moz-linear-gradient(top, #C3001D 0%, #950119 100%); font-size:11px;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd)); color:#999;
background: -webkit-linear-gradient(top, #C3001D 0%,#950119 100%); display:block;
background: -o-linear-gradient(top, #C3001D 0%,#950119 100%); text-align:center;
background: -ms-linear-gradient(top, #C3001D 0%,#950119 100%); padding-top:6px;
background: linear-gradient(top, #C3001D 0%,#950119 100%); height:40px;
} }
a.buttons { strong {
-webkit-font-smoothing: antialiased; color:#222;
background: url(../images/arrow-down.png) no-repeat; font-weight:700;
font-weight: normal;
text-shadow: rgba(0, 0, 0, 0.4) 0 -1px 0;
padding: 2px 2px 2px 22px;
height: 30px;
} }
a.github { header ul li + li {
background: url(../images/octocat-small.png) no-repeat 1px; width:88px;
border-left:1px solid #fff;
} }
a.buttons:hover { header ul li + li + li {
color: #fff; border-right:none;
text-decoration: none; width:89px;
} }
header ul a strong {
/* Section - for main page content */ font-size:14px;
display:block;
color:#222;
}
section { section {
width:650px; width:500px;
float:right; float:right;
padding-bottom:50px; padding-bottom:50px;
} }
small {
font-size:11px;
}
/* Footer */ hr {
border:0;
background:#e5e5e5;
height:1px;
margin:0 0 20px;
}
footer { footer {
width:170px; width:270px;
float:left; float:left;
position:fixed; position:fixed;
bottom:10px; bottom:50px;
padding-left: 50px;
} }
@media print, screen and (max-width: 960px) { @media print, screen and (max-width: 960px) {
@ -338,18 +196,14 @@ footer {
width:auto; width:auto;
} }
footer {
border-top: 1px solid #ccc;
margin:0 84px 0 50px;
padding:0;
}
header { header {
padding-right:320px; padding-right:320px;
} }
section { section {
padding:20px 84px 20px 50px; border:1px solid #e5e5e5;
border-width:1px 0;
padding:20px 0;
margin:0 0 20px; margin:0 0 20px;
} }
@ -359,8 +213,8 @@ footer {
header ul { header ul {
position:absolute; position:absolute;
right:130px; right:50px;
top:84px; top:52px;
} }
} }
@ -370,38 +224,26 @@ footer {
} }
header { header {
padding:10px 20px 0; padding:0;
margin-right: 0;
}
section {
padding:10px 0 10px 20px;
margin:0 0 30px;
}
footer {
margin: 0 0 0 30px;
} }
header ul, header p.view { header ul, header p.view {
position:static; position:static;
} }
pre, code {
word-wrap:normal;
}
} }
@media print, screen and (max-width: 480px) { @media print, screen and (max-width: 480px) {
body {
padding:15px;
}
header ul li.download { header ul {
display:none; display:none;
} }
footer {
margin: 0 0 0 20px;
}
footer a{
display:block;
}
} }
@media print { @media print {