Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
355 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,309 @@ | ||
#controls { | ||
padding-left: 0; | ||
/* VANILLA CSS | ||
1. Reset styles | ||
2. Misc helpers (clearfix, nice defaults) | ||
3. Grid | ||
4. Main Layout Elements | ||
4.1 Spacing | ||
4.2 Colour | ||
5. Typography | ||
6. Chrome | ||
--------------------------------------------- */ | ||
|
||
|
||
/* 1. Reset styles | ||
--------------------------------------------- */ | ||
|
||
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, font, 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 { | ||
margin: 0; | ||
padding: 0; | ||
font-size: 100%; | ||
vertical-align: baseline; | ||
border: 0; | ||
outline: 0; | ||
background: transparent; | ||
} | ||
|
||
#controls li { | ||
background: #eee; | ||
display: inline; | ||
padding: 0.2em 0.5em; | ||
ol, ul { | ||
list-style: none; | ||
} | ||
|
||
blockquote, q { | ||
quotes: none; | ||
} | ||
|
||
:focus { | ||
outline: 0; | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
/* 2. Misc helpers (clearfix, nice defaults) | ||
--------------------------------------------- */ | ||
|
||
hr, .hide { | ||
display: none; | ||
} | ||
|
||
a img { | ||
border: none; | ||
} | ||
|
||
.clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0} | ||
.clearfix:after{clear:both;content:' ';display:block;font-size:0;line-height:0;visibility:hidden;width:0;height:0} | ||
* html .clearfix, *:first-child+html .clearfix { zoom:1 } | ||
|
||
/* 3. Grid | ||
--------------------------------------------- */ | ||
|
||
/* | ||
& Columns : 16 | ||
& Gutter %: 20% | ||
& MinWidth: 960px | ||
& MaxWidth: 1080px | ||
*/ | ||
.grid_1 { width: 5%; } | ||
.grid_2 { width: 11.25%; } | ||
.grid_3 { width: 17.5%; } | ||
.grid_4 { width: 23.75%; } | ||
.grid_5 { width: 30%; } | ||
.grid_6 { width: 36.25%; } | ||
.grid_7 { width: 42.5%; } | ||
.grid_8 { width: 48.75%; } | ||
.grid_9 { width: 55%; } | ||
.grid_10 { width: 61.25%; } | ||
.grid_11 { width: 67.5%; } | ||
.grid_12 { width: 73.75%; } | ||
.grid_13 { width: 80%; } | ||
.grid_14 { width: 86.25%; } | ||
.grid_15 { width: 92.5%; } | ||
.grid_16 { width: 98.75%; } | ||
|
||
.grid_1, | ||
.grid_2, | ||
.grid_3, | ||
.grid_4, | ||
.grid_5, | ||
.grid_6, | ||
.grid_7, | ||
.grid_8, | ||
.grid_9, | ||
.grid_10, | ||
.grid_11, | ||
.grid_12, | ||
.grid_13, | ||
.grid_14, | ||
.grid_15, | ||
.grid_16 { | ||
margin-left: 0.625%; | ||
margin-right: 0.625%; | ||
float: left; | ||
display: block; | ||
} | ||
|
||
.alpha{margin-left:0px;} | ||
.omega{margin-right:0px;} | ||
|
||
.container { | ||
min-width: 960px; | ||
max-width: 1080px; | ||
margin: auto; | ||
} | ||
|
||
/* 4. Main Layout Elements | ||
--------------------------------------------- */ | ||
|
||
/* 4.1 Spacing | ||
--------------------------------------------- */ | ||
|
||
#content { | ||
padding-left: 20px; | ||
padding-top: 20px; | ||
} | ||
|
||
#content p, #content li { | ||
padding-right: 20px; | ||
} | ||
|
||
/* 4.2 Colour | ||
--------------------------------------------- */ | ||
|
||
body { | ||
color: #333; | ||
background: #fff; | ||
border-top: 1px solid #333; | ||
} | ||
|
||
.container { | ||
|
||
} | ||
|
||
#content { | ||
|
||
} | ||
|
||
a { | ||
color: #3cb55c; | ||
} | ||
|
||
a:hover { | ||
color: #205f30; | ||
} | ||
|
||
pre { | ||
background-color: #332a32; | ||
color: #eee; | ||
} | ||
|
||
/* 5. Typography | ||
--------------------------------------------- */ | ||
|
||
body { | ||
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; | ||
} | ||
|
||
h1 { | ||
font-size: 24px; | ||
line-height: 40px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
h2 { | ||
font-size: 20px; | ||
line-height: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
h3 { | ||
font-size: 16px; | ||
line-height: 40px; | ||
} | ||
|
||
p, li, blockquote { | ||
font-family: Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif; | ||
font-size: 16px; | ||
line-height: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
ul, | ||
ol { | ||
margin-bottom: 20px; | ||
} | ||
|
||
#content ul, #content ol { | ||
margin-bottom: 40px; | ||
padding-left: 40px; | ||
padding-right: 40px; | ||
padding-top: 20px; | ||
} | ||
|
||
#content ul { | ||
list-style: disc; | ||
} | ||
|
||
#content ol { | ||
list-style: decimal; | ||
} | ||
|
||
strong { | ||
font-weight: bold; | ||
} | ||
|
||
pre { | ||
margin-left: 1em; | ||
background-color: #ddd; | ||
padding: 1em; | ||
font-size: 16px; | ||
line-height: 20px; | ||
margin-bottom: 20px; | ||
padding: 20px; | ||
} | ||
|
||
tt, code, kbd, samp { | ||
font-family: monospace; | ||
font-size: 12px; | ||
} | ||
|
||
p code { | ||
font-size: 14px; | ||
} | ||
|
||
a { | ||
font-weight: bold; | ||
text-decoration: none; | ||
} | ||
|
||
/* 6. Chrome | ||
--------------------------------------------- */ | ||
|
||
#controls { | ||
background: #fff; | ||
border-bottom: 1px solid #ddd; | ||
border-top: 5px solid #f3ea7c; | ||
color: #bbb; | ||
} | ||
|
||
#controls ul { | ||
margin-bottom: 0; | ||
} | ||
|
||
#controls li { | ||
float: left; | ||
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; | ||
font-size: 12px; | ||
margin: 0; | ||
padding: 10px 20px; | ||
} | ||
|
||
.malformed_snip_inclusion { | ||
background-color: rgba(180,0,0,0.2); | ||
} | ||
|
||
/* 7. Welcome page | ||
--------------------------------------------- */ | ||
|
||
.container { | ||
} | ||
|
||
#welcome { | ||
margin-bottom: 40px; | ||
border-bottom: 1px solid #ddd; | ||
} | ||
|
||
#welcome h1 { | ||
font-style: italic; | ||
padding-top: 80px; | ||
font-size: 40px; | ||
font-family: Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif; | ||
line-height: 40px; | ||
margin-bottom: 0; | ||
} | ||
|
||
#welcome h1 a { | ||
font-size: 80px; | ||
line-height: 80px; | ||
display: block; | ||
font-style: normal; | ||
border-bottom: 4px solid #f3ea7c; | ||
} | ||
|
||
#welcome p { | ||
margin-top: 100px; | ||
line-height: 40px; | ||
font-style: italic; | ||
margin-bottom: 0; | ||
font-size: 20px; | ||
} | ||
|
||
#welcome p strong { | ||
font-size: 22px; | ||
} | ||
|
||
#description p { | ||
} | ||
|
||
#description p:first-child { | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | ||
<title>{page_title}</title> | ||
<link rel="stylesheet" href="/vanilla.css" type="text/css" media="screen" title="no title" charset="utf-8"> | ||
</head> | ||
<body> | ||
<div id="controls"> | ||
<ul class="container clearfix"> | ||
<li><a href="/" class="home">Vanilla.rb</a></li> | ||
<li>{link_to index}</li> | ||
<li>you are viewing: {link_to_current_snip}</li> | ||
</ul> | ||
</div> | ||
<div class="container clearfix"> | ||
{current_snip} | ||
</div> | ||
</body> | ||
</html> |
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
Oops, something went wrong.