Move twitter theme into root folder.

Themes are no longer namespaced into a themes folder.
This commit is contained in:
Jade Dominguez 2013-01-28 22:41:34 -08:00
commit 9f0fcb5e2b
14 changed files with 1326 additions and 0 deletions

68
layouts/default.html Normal file
View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{# page.description }}
<meta name="description" content="{{ . }}">
{{/ page.description }}
<meta name="author" content="{{ data.author.name }}">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
{{# stylesheets.load }}
bootstrap.min.css
style.css
google_prettify/sons-of-obsidian.css
{{/ stylesheets.load }}
<!-- Le fav and touch icons -->
<!-- Update these with your own images
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
-->
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container-narrow">
<a class="brand" href="{{urls.base_path}}">{{ data.title }}</a>
<ul class="nav">
{{# data.navigation?to_pages }}
{{> pages_list }}
{{/ data.navigation?to_pages }}
</ul>
</div>
</div>
</div>
<div class="container-narrow">
<div class="content">
{{{ content }}}
</div>
<hr>
<div class="footer">
<p>&copy; {{ data.author.name }} 2013
with help from <a href="http://ruhoh.com" target="_blank" title="The Definitive Technical Blogging Framework">ruhoh</a>
and <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a>
</p>
</div>
</div> <!-- /container -->
{{{ widgets.google_prettify }}}
{{{ widgets.analytics }}}
</body>
</html>

13
layouts/page.html Normal file
View File

@ -0,0 +1,13 @@
---
layout : default
---
<div class="page-header">
<h1>{{ page.title }} {{# page.tagline }} <small>{{ . }}</small>{{/ page.tagline }}</h1>
</div>
<div class="row-fluid">
<div class="span12">
{{{ page.content }}}
</div>
</div>

32
layouts/paginator.html Normal file
View File

@ -0,0 +1,32 @@
---
layout : default
---
<div class="row-fluid">
<div class="span12">
{{#posts.paginator}}
<div class="post">
<h3 class="title"><a href="{{url}}">{{title}}</a> <span class="date">{{ date }}</span></h3>
{{{ summary }}}
<div class="more">
<a href="{{url}}" class="btn btn-small">read more..</a>
</div>
</div>
{{/posts.paginator}}
<div class="pagination">
<ul>
{{#posts.paginator_navigation}}
{{#is_active_page}}
<li class="active"><a href="{{url}}">{{name}}</a></li>
{{/is_active_page}}
{{^is_active_page}}
<li><a href="{{url}}">{{name}}</a></li>
{{/is_active_page}}
{{/posts.paginator_navigation}}
</ul>
</div>
</div>
</div>

52
layouts/post.html Normal file
View File

@ -0,0 +1,52 @@
---
layout : default
---
<div class="page-header">
<h1>{{ page.title }} {{# page.tagline }} <small>{{ . }}</small>{{/ page.tagline }}</h1>
</div>
<div class="row-fluid post-full">
<div class="span12">
<div class="date">
<span>{{page.date}}</strong>
</div>
<div class="content">
{{{ page.content }}}
</div>
<ul class="tag_box inline">
<li><i class="icon-folder-open"></i></li>
{{# page.categories }}
{{> categories_list }}
{{/ page.categories }}
</ul>
<ul class="tag_box inline">
<li><i class="icon-tags"></i></li>
{{# page.tags }}
{{> tags_list }}
{{/ page.tags }}
</ul>
<hr>
<div class="pagination">
<ul>
{{# page.previous }}
<li class="prev"><a href="{{ url }}" title="{{ title }}">&larr; Previous</a></li>
{{/ page.previous }}
{{^ page.previous }}
<li class="prev disabled"><a>&larr; Previous</a></li>
{{/ page.previous }}
<li><a href="{{urls.base_path}}archive">Archive</a></li>
{{# page.next }}
<li class="next"><a href="{{ url }}" title="{{ title }}">Next &rarr;</a></li>
{{/ page.next }}
{{^ page.next }}
<li class="next disabled"><a>Next &rarr;</a>
{{/ page.next }}
</ul>
</div>
<hr>
{{{ widgets.comments }}}
</div>
</div>

4
manifest.json Normal file
View File

@ -0,0 +1,4 @@
{
"author" : "Jacob Thornton and Mark Otto",
"website" : "http://twitter.github.com/bootstrap"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
media/glyphicons-halflings.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

782
stylesheets/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,52 @@
/* Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln { color: #000 } /* plain text */
@media screen {
.str { color: #080 } /* string content */
.kwd { color: #008 } /* a keyword */
.com { color: #800 } /* a comment */
.typ { color: #606 } /* a type name */
.lit { color: #066 } /* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun, .opn, .clo { color: #660 }
.tag { color: #008 } /* a markup tag name */
.atn { color: #606 } /* a markup attribute name */
.atv { color: #080 } /* a markup attribute value */
.dec, .var { color: #606 } /* a declaration; a variable name */
.fun { color: red } /* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print, projection {
.str { color: #060 }
.kwd { color: #006; font-weight: bold }
.com { color: #600; font-style: italic }
.typ { color: #404; font-weight: bold }
.lit { color: #044 }
.pun, .opn, .clo { color: #440 }
.tag { color: #006; font-weight: bold }
.atn { color: #404 }
.atv { color: #060 }
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint { padding: 2px; border: 1px solid #888 }
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 { background: #eee }

View File

@ -0,0 +1,34 @@
/* desert scheme ported from vim to google prettify */
pre { display: block; background-color: #333 }
pre .nocode { background-color: none; color: #000 }
pre .str { color: #ffa0a0 } /* string - pink */
pre .kwd { color: #f0e68c; font-weight: bold }
pre .com { color: #87ceeb } /* comment - skyblue */
pre .typ { color: #98fb98 } /* type - lightgreen */
pre .lit { color: #cd5c5c } /* literal - darkred */
pre .pun { color: #fff } /* punctuation */
pre .pln { color: #fff } /* plaintext */
pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag - lightyellow */
pre .atn { color: #bdb76b; font-weight: bold } /* attribute name - khaki */
pre .atv { color: #ffa0a0 } /* attribute value - pink */
pre .dec { color: #98fb98 } /* decimal - lightgreen */
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,li.L3,li.L5,li.L7,li.L9 { }
@media print {
pre { background-color: none }
pre .str, code .str { color: #060 }
pre .kwd, code .kwd { color: #006; font-weight: bold }
pre .com, code .com { color: #600; font-style: italic }
pre .typ, code .typ { color: #404; font-weight: bold }
pre .lit, code .lit { color: #044 }
pre .pun, code .pun { color: #440 }
pre .pln, code .pln { color: #000 }
pre .tag, code .tag { color: #006; font-weight: bold }
pre .atn, code .atn { color: #404 }
pre .atv, code .atv { color: #060 }
}

View File

@ -0,0 +1,134 @@
/*
* Derived from einaros's Sons of Obsidian theme at
* http://studiostyl.es/schemes/son-of-obsidian by
* Alex Ford of CodeTunnel:
* http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme
*/
.str
{
color: #EC7600;
}
.kwd
{
color: #93C763;
}
.com
{
color: #66747B;
}
.typ
{
color: #678CB1;
}
.lit
{
color: #FACD22;
}
.pun
{
color: #F1F2F3;
}
.pln
{
color: #F1F2F3;
}
.tag
{
color: #8AC763;
}
.atn
{
color: #E0E2E4;
}
.atv
{
color: #EC7600;
}
.dec
{
color: purple;
}
pre.prettyprint
{
border: 0px solid #888;
}
ol.linenums
{
margin-top: 0;
margin-bottom: 0;
}
.prettyprint {
background: #000;
}
li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9
{
color: #555;
}
li.L1, li.L3, li.L5, li.L7, li.L9 {
background: #111;
}
@media print
{
.str
{
color: #060;
}
.kwd
{
color: #006;
font-weight: bold;
}
.com
{
color: #600;
font-style: italic;
}
.typ
{
color: #404;
font-weight: bold;
}
.lit
{
color: #044;
}
.pun
{
color: #440;
}
.pln
{
color: #000;
}
.tag
{
color: #006;
font-weight: bold;
}
.atn
{
color: #404;
}
.atv
{
color: #060;
}
}
.prettyprint.linenums {
-webkit-box-shadow: inset 40px 0 0 #333, inset 41px 0 0 #222;
-moz-box-shadow: inset 40px 0 0 #333, inset 41px 0 0 #222;
box-shadow: inset 40px 0 0 #333, inset 41px 0 0 #222;
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin: 0 0 0 33px; /* IE indents via margin-left */
}
ol.linenums li {
padding-left: 12px;
color: #888;
line-height: 18px;
}

View File

@ -0,0 +1,51 @@
/* Pretty printing styles. Used with prettify.js. */
/* Vim sunburst theme by David Leibovic */
pre .str, code .str { color: #65B042; } /* string - green */
pre .kwd, code .kwd { color: #E28964; } /* keyword - dark pink */
pre .com, code .com { color: #AEAEAE; font-style: italic; } /* comment - gray */
pre .typ, code .typ { color: #89bdff; } /* type - light blue */
pre .lit, code .lit { color: #3387CC; } /* literal - blue */
pre .pun, code .pun { color: #fff; } /* punctuation - white */
pre .pln, code .pln { color: #fff; } /* plaintext - white */
pre .tag, code .tag { color: #89bdff; } /* html/xml tag - light blue */
pre .atn, code .atn { color: #bdb76b; } /* html/xml attribute name - khaki */
pre .atv, code .atv { color: #65B042; } /* html/xml attribute value - green */
pre .dec, code .dec { color: #3387CC; } /* decimal - blue */
pre.prettyprint, code.prettyprint {
 background-color: #000;
 -moz-border-radius: 8px;
 -webkit-border-radius: 8px;
 -o-border-radius: 8px;
 -ms-border-radius: 8px;
 -khtml-border-radius: 8px;
 border-radius: 8px;
}
pre.prettyprint {
 width: 95%;
 margin: 1em auto;
 padding: 1em;
 white-space: pre-wrap;
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; } /* IE indents via margin-left */
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,li.L3,li.L5,li.L7,li.L9 { }
@media print {
pre .str, code .str { color: #060; }
pre .kwd, code .kwd { color: #006; font-weight: bold; }
pre .com, code .com { color: #600; font-style: italic; }
pre .typ, code .typ { color: #404; font-weight: bold; }
pre .lit, code .lit { color: #044; }
pre .pun, code .pun { color: #440; }
pre .pln, code .pln { color: #000; }
pre .tag, code .tag { color: #006; font-weight: bold; }
pre .atn, code .atn { color: #404; }
pre .atv, code .atv { color: #060; }
}

View File

@ -0,0 +1,30 @@
.com { color: #93a1a1; }
.lit { color: #195f91; }
.pun, .opn, .clo { color: #93a1a1; }
.fun { color: #dc322f; }
.str, .atv { color: #D14; }
.kwd, .linenums .tag { color: #1e347b; }
.typ, .atn, .dec, .var { color: teal; }
.pln { color: #48484c; }
.prettyprint {
padding: 8px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
.prettyprint.linenums {
-webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
-moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin: 0 0 0 33px; /* IE indents via margin-left */
}
ol.linenums li {
padding-left: 12px;
color: #bebec5;
line-height: 18px;
text-shadow: 0 1px 0 #fff;
}

74
stylesheets/style.css Normal file
View File

@ -0,0 +1,74 @@
body {
padding-bottom: 40px;
}
/* Custom container */
.container-narrow {
margin: 0 auto;
max-width: 700px;
}
.container-narrow > hr {
margin: 30px 0;
}
.navbar .nav {
float:right;
}
/* posts index */
.post > h3.title {
position:relative;
padding-top:10px;
}
.post > h3.title span.date {
position:absolute;
right:0;
font-size:0.9em;
}
.post > .more {
margin:10px 0;
text-align:left;
}
/* post-full*/
.post-full .date {
margin-bottom:20px;
font-weight:bold;
}
/* tag_box */
.tag_box {
list-style:none;
margin:0;
overflow:hidden;
}
.tag_box li {
line-height:28px;
}
.tag_box li i {
opacity:0.9;
}
.tag_box.inline li {
float:left;
}
.tag_box a {
padding: 3px 6px;
margin: 2px;
background: #eee;
color:#555;
border-radius: 3px;
text-decoration:none;
border:1px dashed #ccc;
}
.tag_box a span{
vertical-align:super;
font-size:0.8em;
}
.tag_box a:hover {
background-color:#e5e5e5;
}
.tag_box a.active {
background:#57A957;
border:1px solid #4C964D;
color:#FFF;
}