Created
December 12, 2012 19:37
-
-
Save jasonmelgoza/4270860 to your computer and use it in GitHub Desktop.
Stitch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>{{Title}}</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
font-family: Helvetica Neue, Helvetica, Arial; | |
font-size: 14px; | |
line-height: 22px; | |
background-color: #f4f4f4; | |
} | |
.interface { | |
font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif !important; | |
} | |
div#sidebar { | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
width: 200px; | |
padding: 15px 0 30px 30px; | |
overflow-x: hidden; | |
overflow-y: auto; | |
background: #fff; | |
border-right: 1px solid #bbb; | |
-webkit-box-shadow: 0 0 20px #ccc; | |
-moz-box-shadow: 0 0 20px #ccc; | |
box-shadow: 0 0 20px #ccc; | |
-webkit-overflow-scrolling: touch; | |
} | |
a.toc_title, | |
a.toc_title:visited { | |
display: block; | |
margin-top: 15px; | |
font-weight: bold; | |
color: black; | |
} | |
a.toc_title:hover { | |
text-decoration: underline; | |
} | |
#sidebar .version { | |
font-size: 10px; | |
font-weight: normal; | |
} | |
ul.toc_section { | |
padding-left: 0; | |
margin: 5px 0 0 0; | |
font-family: Lucida Grande; | |
font-size: 11px; | |
line-height: 14px; | |
list-style-type: none; | |
} | |
.toc_section li { | |
margin: 0 0 3px 0; | |
cursor: pointer; | |
} | |
.toc_section li a { | |
color: black; | |
text-decoration: none; | |
} | |
.toc_section li a:hover { | |
text-decoration: underline; | |
} | |
div.container { | |
position: relative; | |
width: 550px; | |
margin: 40px 0 50px 260px; | |
} | |
img#logo { | |
width: 450px; | |
height: 80px; | |
} | |
div.run { | |
position: absolute; | |
right: 15px; | |
width: 26px; | |
height: 18px; | |
background: url('data:;base64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hqqrqzlhUIFViatKkyTbkSYYUDgOwUA8+G3l73IuqTx1G4EEi2sikQib6MjICPX09DAIygZmqisdOew2AsHAAbJATm9vL3tbX18f/w9sO+9USVOTZZUcxHJ3d0fFxcU0MzPD8YTDYfY1YKfiiCeb5SmLtQsI7KMdgMdAvui6YdxXV1dagxalpS5Y13KAeFyDTQYegycI7NiXl5eOPVdqeepIw3UoPfgzyn1wcJDq6+s5lvPzc20skvSk3dOONGQeOwx8paqqihd0fX1t2Ys5bdk60oABH1tYWOBA4F1oA87OzmyTojbOqtLUVif1ORgVMjs7Sw0NDbybXlxcmCWri8WSNDuTxiJaWlr4BmTkN119uuWJHRObSWNjIysBJErQTnggSNQl/qwjDXEODQ3xnPIiId1nz1+VJway/teBBduVGcpT543pKC2d5hYDif8fDOEnqTy9evZUleblc206j3WuvIRAv+I1GKSNQ2fObr1TQyxSEWhS3X41hLkTGAEjIdUofjiZ7V+GeIHqU24TJmpGvwhP9EIIUHMiGbF/AgwAvUU0Wd+gT9wAAAAASUVORK5CYII=') no-repeat -26px 0; | |
} | |
div.run:active { | |
background-position: -51px 0; | |
} | |
p, | |
div.container ul { | |
width: 550px; | |
margin: 25px 0; | |
} | |
p.warning { | |
font-size: 12px; | |
font-style: italic; | |
line-height: 18px; | |
} | |
div.container ul { | |
padding-left: 15px; | |
font-size: 13px; | |
line-height: 18px; | |
list-style: circle; | |
} | |
div.container ul li { | |
margin-bottom: 10px; | |
} | |
div.container ul.small { | |
font-size: 12px; | |
} | |
a, | |
a:visited { | |
color: #444; | |
} | |
a:active, | |
a:hover { | |
color: #000; | |
} | |
a.punch { | |
display: inline-block; | |
width: 225px; | |
padding: 8px 0 10px 0; | |
margin-bottom: 15px; | |
font: bold 14px "helvetica neue", helvetica, arial, sans-serif; | |
line-height: 1; | |
color: #fff; | |
text-align: center; | |
text-decoration: none; | |
text-shadow: 0px -1px 1px #1e2d4d; | |
background: #4162a8; | |
border-top: 1px solid #38538c; | |
border-right: 1px solid #1f2d4d; | |
border-bottom: 1px solid #151e33; | |
border-left: 1px solid #1f2d4d; | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
-ms-border-radius: 4px; | |
-o-border-radius: 4px; | |
border-radius: 4px; | |
-webkit-box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
-moz-box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
-ms-box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
-o-box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
-webkit-background-clip: padding-box; | |
} | |
a.punch:hover { | |
cursor: pointer; | |
-webkit-box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
-moz-box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
-ms-box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
-o-box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111; | |
} | |
a.punch:active { | |
margin-top: 5px; | |
margin-bottom: 10px; | |
-webkit-box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053, 0 4px 3px 0 #111111; | |
-moz-box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053, 0 4px 3px 0 #111111; | |
-ms-box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053, 0 4px 3px 0 #111111; | |
-o-box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053, 0 4px 3px 0 #111111; | |
box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053, 0 4px 3px 0 #111111; | |
} | |
a img { | |
border: 0; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
padding-top: 20px; | |
} | |
h2 { | |
font-size: 22px; | |
} | |
b.header { | |
font-size: 18px; | |
line-height: 35px; | |
} | |
span.alias { | |
margin-left: 20px; | |
font-size: 14px; | |
font-style: italic; | |
} | |
table { | |
padding: 0; | |
margin: 15px 0 0; | |
} | |
tr, | |
td { | |
padding: 0; | |
margin: 0; | |
} | |
td { | |
padding: 0 15px 5px 0; | |
} | |
table .rule { | |
height: 1px; | |
margin: 5px 0; | |
background: #ccc; | |
} | |
code, | |
pre, | |
tt { | |
font-family: Monaco, Consolas, "Lucida Console", monospace; | |
font-size: 12px; | |
font-style: normal; | |
line-height: 18px; | |
} | |
tt { | |
padding: 0 3px; | |
background: #fff; | |
border: 1px solid #ddd; | |
zoom: 1; | |
} | |
code { | |
margin-left: 20px; | |
} | |
pre { | |
padding: 2px 0 2px 15px; | |
margin: 0 0 25px; | |
font-size: 12px; | |
border: 4px solid #bbb; | |
border-top: 0; | |
border-bottom: 0; | |
} | |
img.example_image { | |
margin: 0 auto; | |
} | |
img.example_retina { | |
margin: 20px; | |
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); | |
} | |
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) and (max-width: 640px), only screen and (-o-min-device-pixel-ratio: 3/2) and (max-width: 640px), only screen and (min-device-pixel-ratio: 1.5) and (max-width: 640px) { | |
img { | |
height: auto; | |
max-width: 100%; | |
} | |
div#sidebar { | |
position: relative; | |
top: -7px; | |
left: 0; | |
width: 90%; | |
height: 120px; | |
padding: 10px 0 10px 30px; | |
border: 0; | |
-webkit-overflow-scrolling: initial; | |
} | |
img#logo { | |
width: auto; | |
height: auto; | |
} | |
div.container { | |
width: 100%; | |
margin: 0; | |
} | |
p, | |
div.container ul { | |
max-width: 98%; | |
overflow-x: scroll; | |
} | |
table { | |
position: relative; | |
} | |
tr:first-child td { | |
padding-bottom: 25px; | |
} | |
td.text { | |
position: absolute; | |
top: 48px; | |
left: 0; | |
padding: 0; | |
} | |
tr:last-child td.text { | |
top: 122px; | |
} | |
pre { | |
overflow: scroll; | |
} | |
} | |
.toc-logo-type { | |
margin-top: -25px; | |
font-family: 'Lato', sans-serif; | |
font-size: 42px; | |
font-weight: 300; | |
color: #3670AB; | |
text-transform: uppercase; | |
} | |
</style> | |
<link href='http://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'> | |
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--> | |
</head> | |
<body> | |
<div id="sidebar" class="interface"> | |
<a class="toc_title" href="#"> | |
{{Title}} <span class="version">({{Version}})</span> | |
</a> | |
<a class="toc_title" href="#Example"> | |
Example | |
</a> | |
<ul class="toc_section"> | |
<li>– <a href="#Example-extend">extend</a></li> | |
</ul> | |
</div><!--sidebar--> | |
<div class="container"> | |
<h1 class="toc-logo-type"> | |
Stitch Title | |
</h1> | |
<p> | |
Blah blah blah | |
</p> | |
<h2 id="Example-one">Skeletor.Example</h2> | |
<p>Example Description</p> | |
<pre>proxy.on("all", function(eventName) { | |
object.trigger(eventName); | |
}); | |
</pre> | |
<h2 id="Example-two">Skeletor.Example</h2> | |
<p>Example Description</p> | |
<div class="run" title="Run"></div> | |
<pre class="runnable">var object = {}; | |
_.extend(object, Backbone.Events); | |
object.on("alert", function(msg) { | |
alert("Triggered " + msg); | |
}); | |
object.trigger("alert", "an event"); | |
</pre> | |
<h2 id="Example-three">CloudServices.Example</h2> | |
<p>Example Description</p> | |
<div class="toc-example"> | |
<a href="#" class="btn btn-large btn-primary">Bob</a> | |
</div> | |
<pre><button class="btn btn-large btn-primary" >Bob </button></pre> | |
</div><!--container--> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment