custom project templates, html5boilerplate
This commit is contained in:
parent
f08fa84852
commit
c00c47eeb3
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "lib/middleman/templates/html5boilerplate/source"]
|
|
||||||
path = lib/middleman/templates/html5boilerplate/source
|
|
||||||
url = git://github.com/paulirish/html5-boilerplate.git
|
|
28
bin/mm-init
28
bin/mm-init
|
@ -7,24 +7,32 @@ module Middleman
|
||||||
class Generator < ::Thor::Group
|
class Generator < ::Thor::Group
|
||||||
include Thor::Actions
|
include Thor::Actions
|
||||||
|
|
||||||
def self.source_root
|
|
||||||
File.join(File.dirname(__FILE__), '..', 'lib', 'middleman', 'template')
|
|
||||||
end
|
|
||||||
|
|
||||||
argument :location, :type => :string, :desc => "New project location"
|
argument :location, :type => :string, :desc => "New project location"
|
||||||
|
|
||||||
|
class_option :template, :aliases => "-T", :default => "default", :desc => 'Optionally use a pre-defined project template: html5, default'
|
||||||
|
|
||||||
|
def self.source_root
|
||||||
|
File.join(File.dirname(__FILE__), '..', 'lib', 'middleman', 'templates')
|
||||||
|
end
|
||||||
|
|
||||||
class_option :css_dir, :default => "stylesheets", :desc => 'The path to the css files'
|
class_option :css_dir, :default => "stylesheets", :desc => 'The path to the css files'
|
||||||
class_option :js_dir, :default => "javascripts", :desc => 'The path to the javascript files'
|
class_option :js_dir, :default => "javascripts", :desc => 'The path to the javascript files'
|
||||||
class_option :images_dir, :default => "images", :desc => 'The path to the image files'
|
class_option :images_dir, :default => "images", :desc => 'The path to the image files'
|
||||||
|
|
||||||
def create_project
|
def create_project
|
||||||
template "config.tt", File.join(location, "config.rb")
|
if options[:template] == "html5"
|
||||||
directory "views", File.join(location, "views")
|
template "html5boilerplate/config.tt", File.join(location, "config.rb")
|
||||||
empty_directory File.join(location, "public", options[:css_dir])
|
directory "html5boilerplate/public", File.join(location, "public")
|
||||||
empty_directory File.join(location, "public", options[:js_dir])
|
empty_directory File.join(location, "views")
|
||||||
empty_directory File.join(location, "public", options[:images_dir])
|
else
|
||||||
|
template "default/config.tt", File.join(location, "config.rb")
|
||||||
|
directory "default/views", File.join(location, "views")
|
||||||
|
empty_directory File.join(location, "public", options[:css_dir])
|
||||||
|
empty_directory File.join(location, "public", options[:js_dir])
|
||||||
|
empty_directory File.join(location, "public", options[:images_dir])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Middleman::Generator.start
|
Middleman::Generator.start
|
||||||
|
|
51
lib/middleman/templates/html5boilerplate/config.tt
Executable file
51
lib/middleman/templates/html5boilerplate/config.tt
Executable file
|
@ -0,0 +1,51 @@
|
||||||
|
# html5boilerplate uses "css"
|
||||||
|
set :css_dir, "css"
|
||||||
|
|
||||||
|
# html5boilerplate uses "js"
|
||||||
|
set :js_dir, "js"
|
||||||
|
|
||||||
|
# html5boilerplate uses "images"
|
||||||
|
set :images_dir, "images"
|
||||||
|
|
||||||
|
# Per-page layout changes
|
||||||
|
# With no layout
|
||||||
|
# page "/path/to/file.html", :layout => false
|
||||||
|
# With alternative layout
|
||||||
|
# page "/path/to/file.html", :layout => :otherlayout
|
||||||
|
|
||||||
|
# Helpers
|
||||||
|
helpers do
|
||||||
|
def some_helper(*args)
|
||||||
|
"Helping"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Automatic sitemaps
|
||||||
|
# activate :slickmap
|
||||||
|
|
||||||
|
# CodeRay syntax highlighting in Haml
|
||||||
|
# activate :code_ray
|
||||||
|
|
||||||
|
# Automatic image dimension calculations in Haml
|
||||||
|
# activate :automatic_image_sizes
|
||||||
|
|
||||||
|
# Build-specific configuration
|
||||||
|
configure :build do
|
||||||
|
# For example, change the Compass output style for deployment
|
||||||
|
# activate :minify_css
|
||||||
|
|
||||||
|
# Minify Javascript on build
|
||||||
|
# activate :minify_javascript
|
||||||
|
|
||||||
|
# Shrink/smush PNG/JPEGs on build
|
||||||
|
# activate :smush_pngs
|
||||||
|
|
||||||
|
# Enable cache buster
|
||||||
|
# activate :cache_buster
|
||||||
|
|
||||||
|
# Generate ugly/obfuscated HTML from Haml
|
||||||
|
# activate :ugly_haml
|
||||||
|
|
||||||
|
# Or use a different image path
|
||||||
|
# set :http_path, "/Content/images/"
|
||||||
|
end
|
22
lib/middleman/templates/html5boilerplate/public/404.html
Normal file
22
lib/middleman/templates/html5boilerplate/public/404.html
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<!doctype html>
|
||||||
|
<title>not found</title>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body { text-align: center;}
|
||||||
|
h1 { font-size: 50px; }
|
||||||
|
body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
|
||||||
|
::-moz-selection{ background:#FF5E99; color:#fff; }
|
||||||
|
::selection { background:#FF5E99; color:#fff; }
|
||||||
|
details { display:block; }
|
||||||
|
a { color: rgb(36, 109, 56); text-decoration:none; }
|
||||||
|
a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
|
||||||
|
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><h1>Not found</h1></summary>
|
||||||
|
<p><span frown>:(</span></p>
|
||||||
|
</details>
|
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
|
@ -0,0 +1,25 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
|
||||||
|
<cross-domain-policy>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
|
||||||
|
|
||||||
|
<!-- Most restrictive policy: -->
|
||||||
|
<site-control permitted-cross-domain-policies="none"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Least restrictive policy: -->
|
||||||
|
<!--
|
||||||
|
<site-control permitted-cross-domain-policies="all"/>
|
||||||
|
<allow-access-from domain="*" to-ports="*" secure="false"/>
|
||||||
|
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
If you host a crossdomain.xml file with allow-access-from domain=“*”
|
||||||
|
and don’t understand all of the points described here, you probably
|
||||||
|
have a nasty security vulnerability. ~ simon willison
|
||||||
|
-->
|
||||||
|
|
||||||
|
</cross-domain-policy>
|
|
@ -0,0 +1,8 @@
|
||||||
|
* {
|
||||||
|
float: none; /* Screens are not big enough to account for floats */
|
||||||
|
background: #fff; /* As much contrast as possible */
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Slightly reducing font size to reduce need to scroll */
|
||||||
|
body { font-size: 80%; }
|
257
lib/middleman/templates/html5boilerplate/public/css/style.css
Normal file
257
lib/middleman/templates/html5boilerplate/public/css/style.css
Normal file
|
@ -0,0 +1,257 @@
|
||||||
|
/**
|
||||||
|
* HTML5 ✰ Boilerplate
|
||||||
|
*
|
||||||
|
* style.css contains a reset, font normalization and some base styles.
|
||||||
|
*
|
||||||
|
* Credit is left where credit is due.
|
||||||
|
* Much inspiration was taken from these projects:
|
||||||
|
* - yui.yahooapis.com/2.8.1/build/base/base.css
|
||||||
|
* - camendesign.com/design/
|
||||||
|
* - praegnanz.de/weblog/htmlcssjs-kickstart
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
|
||||||
|
* v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
|
||||||
|
* html5doctor.com/html-5-reset-stylesheet/
|
||||||
|
*/
|
||||||
|
|
||||||
|
html, body, div, span, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
|
||||||
|
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||||
|
article, aside, canvas, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section, summary,
|
||||||
|
time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
article, aside, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote, q { quotes: none; }
|
||||||
|
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after { content: ''; content: none; }
|
||||||
|
|
||||||
|
ins { background-color: #ff9; color: #000; text-decoration: none; }
|
||||||
|
|
||||||
|
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
|
||||||
|
|
||||||
|
del { text-decoration: line-through; }
|
||||||
|
|
||||||
|
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
|
||||||
|
|
||||||
|
table { border-collapse: collapse; border-spacing: 0; }
|
||||||
|
|
||||||
|
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
|
||||||
|
|
||||||
|
input, select { vertical-align: middle; }
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
|
||||||
|
*/
|
||||||
|
|
||||||
|
body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity. */
|
||||||
|
select, input, textarea, button { font:99% sans-serif; }
|
||||||
|
|
||||||
|
/* Normalize monospace sizing:
|
||||||
|
en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
|
||||||
|
pre, code, kbd, samp { font-family: monospace, sans-serif; }
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Minimal base styles.
|
||||||
|
*/
|
||||||
|
|
||||||
|
body, select, input, textarea {
|
||||||
|
/* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
|
||||||
|
color: #444;
|
||||||
|
/* Set your base font here, to apply evenly. */
|
||||||
|
/* font-family: Georgia, serif; */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Headers (h1, h2, etc) have no default font-size or margin. Define those yourself. */
|
||||||
|
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
|
||||||
|
|
||||||
|
/* Always force a scrollbar in non-IE: */
|
||||||
|
html { overflow-y: scroll; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
|
||||||
|
a:hover, a:active { outline: none; }
|
||||||
|
|
||||||
|
a, a:active, a:visited { color: #607890; }
|
||||||
|
a:hover { color: #036; }
|
||||||
|
|
||||||
|
|
||||||
|
ul, ol { margin-left: 2em; }
|
||||||
|
ol { list-style-type: decimal; }
|
||||||
|
|
||||||
|
/* Remove margins for navigation lists. */
|
||||||
|
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
|
||||||
|
|
||||||
|
small { font-size: 85%; }
|
||||||
|
strong, th { font-weight: bold; }
|
||||||
|
|
||||||
|
td { vertical-align: top; }
|
||||||
|
|
||||||
|
/* Set sub, sup without affecting line-height: gist.github.com/413930 */
|
||||||
|
sub, sup { font-size: 75%; line-height: 0; position: relative; }
|
||||||
|
sup { top: -0.5em; }
|
||||||
|
sub { bottom: -0.25em; }
|
||||||
|
|
||||||
|
pre {
|
||||||
|
/* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
|
||||||
|
white-space: pre; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
|
||||||
|
|
||||||
|
.ie6 legend, .ie7 legend { margin-left: -7px; } /* thnx ivannikolic! */
|
||||||
|
|
||||||
|
/* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css */
|
||||||
|
input[type="radio"] { vertical-align: text-bottom; }
|
||||||
|
input[type="checkbox"] { vertical-align: bottom; }
|
||||||
|
.ie7 input[type="checkbox"] { vertical-align: baseline; }
|
||||||
|
.ie6 input { vertical-align: text-bottom; }
|
||||||
|
|
||||||
|
/* Hand cursor on clickable input elements. */
|
||||||
|
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
|
||||||
|
|
||||||
|
/* Webkit browsers add a 2px margin outside the chrome of form elements. */
|
||||||
|
button, input, select, textarea { margin: 0; }
|
||||||
|
|
||||||
|
/* Colors for form validity. */
|
||||||
|
input:valid, textarea:valid { }
|
||||||
|
input:invalid, textarea:invalid {
|
||||||
|
border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
|
||||||
|
}
|
||||||
|
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
|
||||||
|
|
||||||
|
|
||||||
|
/* These selection declarations have to be separate.
|
||||||
|
No text-shadow: twitter.com/miketaylr/status/12228805301
|
||||||
|
Also: hot pink. */
|
||||||
|
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
|
||||||
|
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
|
||||||
|
|
||||||
|
/* j.mp/webkit-tap-highlight-color */
|
||||||
|
a:link { -webkit-tap-highlight-color: #FF5E99; }
|
||||||
|
|
||||||
|
/* Make buttons play nice in IE:
|
||||||
|
www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
|
||||||
|
button { width: auto; overflow: visible; }
|
||||||
|
|
||||||
|
/* Bicubic resizing for non-native sized IMG:
|
||||||
|
code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
|
||||||
|
.ie7 img { -ms-interpolation-mode: bicubic; }
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Primary styles.
|
||||||
|
*
|
||||||
|
* Author:
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Non-semantic helper classes: please define your styles before this section.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* For image replacement. */
|
||||||
|
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
|
||||||
|
|
||||||
|
/* Hide for both screenreaders and browsers:
|
||||||
|
css-discuss.incutio.com/wiki/Screenreader_Visibility */
|
||||||
|
.hidden { display: none; visibility: hidden; }
|
||||||
|
|
||||||
|
/* Hide only visually, but have it available for screenreaders: by Jon Neal.
|
||||||
|
www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
|
||||||
|
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
||||||
|
|
||||||
|
/* Hide visually and from screenreaders, but maintain layout. */
|
||||||
|
.invisible { visibility: hidden; }
|
||||||
|
|
||||||
|
/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
|
||||||
|
j.mp/bestclearfix */
|
||||||
|
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; visibility: hidden; }
|
||||||
|
.clearfix:after { clear: both; }
|
||||||
|
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
|
||||||
|
.clearfix { zoom: 1; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Media queries for responsive design.
|
||||||
|
*
|
||||||
|
* These follow after primary styles so they will successfully override.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@media all and (orientation:portrait) {
|
||||||
|
/* Style adjustments for portrait mode goes here. */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media all and (orientation:landscape) {
|
||||||
|
/* Style adjustments for landscape mode goes here. */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
|
||||||
|
consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
|
||||||
|
@media screen and (max-device-width: 480px) {
|
||||||
|
|
||||||
|
|
||||||
|
/* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you:
|
||||||
|
j.mp/textsizeadjust */
|
||||||
|
/* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print styles.
|
||||||
|
*
|
||||||
|
* Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
|
||||||
|
*/
|
||||||
|
@media print {
|
||||||
|
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
|
||||||
|
-ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
|
||||||
|
a, a:visited { color: #444 !important; text-decoration: underline; }
|
||||||
|
a[href]:after { content: " (" attr(href) ")"; }
|
||||||
|
abbr[title]:after { content: " (" attr(title) ")"; }
|
||||||
|
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links. */
|
||||||
|
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
||||||
|
thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
|
||||||
|
tr, img { page-break-inside: avoid; }
|
||||||
|
@page { margin: 0.5cm; }
|
||||||
|
p, h2, h3 { orphans: 3; widows: 3; }
|
||||||
|
h2, h3{ page-break-after: avoid; }
|
||||||
|
}
|
||||||
|
|
BIN
lib/middleman/templates/html5boilerplate/public/favicon.ico
Normal file
BIN
lib/middleman/templates/html5boilerplate/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
43
lib/middleman/templates/html5boilerplate/public/humans.txt
Normal file
43
lib/middleman/templates/html5boilerplate/public/humans.txt
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
/* the humans responsible & colophon */
|
||||||
|
/* humanstxt.org */
|
||||||
|
|
||||||
|
|
||||||
|
/* TEAM */
|
||||||
|
<your title>: <your name>
|
||||||
|
Site:
|
||||||
|
Twitter:
|
||||||
|
Location:
|
||||||
|
|
||||||
|
/* THANKS */
|
||||||
|
Names (& URL):
|
||||||
|
|
||||||
|
/* SITE */
|
||||||
|
Standards: HTML5, CSS3
|
||||||
|
Components: Modernizr, jQuery
|
||||||
|
Software:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-o/-
|
||||||
|
+oo//-
|
||||||
|
:ooo+//:
|
||||||
|
-ooooo///-
|
||||||
|
/oooooo//:
|
||||||
|
:ooooooo+//-
|
||||||
|
-+oooooooo///-
|
||||||
|
-://////////////+oooooooooo++////////////::
|
||||||
|
:+ooooooooooooooooooooooooooooooooooooo+:::-
|
||||||
|
-/+ooooooooooooooooooooooooooooooo+/::////:-
|
||||||
|
-:+oooooooooooooooooooooooooooo/::///////:-
|
||||||
|
--/+ooooooooooooooooooooo+::://////:-
|
||||||
|
-:+ooooooooooooooooo+:://////:--
|
||||||
|
/ooooooooooooooooo+//////:-
|
||||||
|
-ooooooooooooooooooo////-
|
||||||
|
/ooooooooo+oooooooooo//:
|
||||||
|
:ooooooo+/::/+oooooooo+//-
|
||||||
|
-oooooo/::///////+oooooo///-
|
||||||
|
/ooo+::://////:---:/+oooo//:
|
||||||
|
-o+/::///////:- -:/+o+//-
|
||||||
|
:-:///////:- -:/://
|
||||||
|
-////:- --//:
|
||||||
|
-- -:
|
2
lib/middleman/templates/html5boilerplate/public/images/.gitignore
vendored
Normal file
2
lib/middleman/templates/html5boilerplate/public/images/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
!.gitignore
|
||||||
|
|
81
lib/middleman/templates/html5boilerplate/public/index.html
Normal file
81
lib/middleman/templates/html5boilerplate/public/index.html
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
<!doctype html>
|
||||||
|
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
||||||
|
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
|
||||||
|
<!--[if IE 7 ]> <html class="no-js ie7"> <![endif]-->
|
||||||
|
<!--[if IE 8 ]> <html class="no-js ie8"> <![endif]-->
|
||||||
|
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||||
|
Remove this if you use the .htaccess -->
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
|
||||||
|
<title></title>
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="">
|
||||||
|
|
||||||
|
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
|
|
||||||
|
|
||||||
|
<!-- CSS : implied media="all" -->
|
||||||
|
<link rel="stylesheet" href="css/style.css?v=2">
|
||||||
|
|
||||||
|
<!-- Uncomment if you are specifically targeting less enabled mobile browsers
|
||||||
|
<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2"> -->
|
||||||
|
|
||||||
|
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
|
||||||
|
<script src="js/libs/modernizr-1.6.min.js"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body lang="en" >
|
||||||
|
|
||||||
|
<div id="container">
|
||||||
|
<header>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div id="main" role="main">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</div> <!--! end of #container -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- JavaScript at the bottom for fast page loading -->
|
||||||
|
|
||||||
|
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
|
||||||
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js"></script>
|
||||||
|
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.0.js"%3E%3C/script%3E'))</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- scripts concatenated and minified via ant build script-->
|
||||||
|
<script src="js/plugins.js"></script>
|
||||||
|
<script src="js/script.js"></script>
|
||||||
|
<!-- end concatenated and minified scripts-->
|
||||||
|
|
||||||
|
|
||||||
|
<!--[if lt IE 7 ]>
|
||||||
|
<script src="js/libs/dd_belatedpng.js"></script>
|
||||||
|
<script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
|
||||||
|
<script>
|
||||||
|
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
|
||||||
|
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
|
||||||
|
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||||
|
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
File diff suppressed because one or more lines are too long
8176
lib/middleman/templates/html5boilerplate/public/js/libs/jquery-1.5.0.js
vendored
Normal file
8176
lib/middleman/templates/html5boilerplate/public/js/libs/jquery-1.5.0.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
16
lib/middleman/templates/html5boilerplate/public/js/libs/jquery-1.5.0.min.js
vendored
Normal file
16
lib/middleman/templates/html5boilerplate/public/js/libs/jquery-1.5.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
30
lib/middleman/templates/html5boilerplate/public/js/libs/modernizr-1.6.min.js
vendored
Normal file
30
lib/middleman/templates/html5boilerplate/public/js/libs/modernizr-1.6.min.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Modernizr v1.6
|
||||||
|
* http://www.modernizr.com
|
||||||
|
*
|
||||||
|
* Developed by:
|
||||||
|
* - Faruk Ates http://farukat.es/
|
||||||
|
* - Paul Irish http://paulirish.com/
|
||||||
|
*
|
||||||
|
* Copyright (c) 2009-2010
|
||||||
|
* Dual-licensed under the BSD or MIT licenses.
|
||||||
|
* http://www.modernizr.com/license/
|
||||||
|
*/
|
||||||
|
window.Modernizr=function(i,e,u){function s(a,b){return(""+a).indexOf(b)!==-1}function D(a,b){for(var c in a)if(j[a[c]]!==u&&(!b||b(a[c],E)))return true}function n(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);c=(a+" "+F.join(c+" ")+c).split(" ");return!!D(c,b)}function S(){f.input=function(a){for(var b=0,c=a.length;b<c;b++)L[a[b]]=!!(a[b]in h);return L}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));f.inputtypes=function(a){for(var b=0,c,k=a.length;b<
|
||||||
|
k;b++){h.setAttribute("type",a[b]);if(c=h.type!=="text"){h.value=M;if(/^range$/.test(h.type)&&h.style.WebkitAppearance!==u){l.appendChild(h);c=e.defaultView;c=c.getComputedStyle&&c.getComputedStyle(h,null).WebkitAppearance!=="textfield"&&h.offsetHeight!==0;l.removeChild(h)}else/^(search|tel)$/.test(h.type)||(c=/^(url|email)$/.test(h.type)?h.checkValidity&&h.checkValidity()===false:h.value!=M)}N[a[b]]=!!c}return N}("search tel url email datetime date month week time datetime-local number range color".split(" "))}
|
||||||
|
var f={},l=e.documentElement,E=e.createElement("modernizr"),j=E.style,h=e.createElement("input"),M=":)",O=Object.prototype.toString,q=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),F="Webkit Moz O ms Khtml".split(" "),v={svg:"http://www.w3.org/2000/svg"},d={},N={},L={},P=[],w,Q=function(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent=a+"{#modernizr{height:3px}}";(e.head||e.getElementsByTagName("head")[0]).appendChild(b);c.id="modernizr";l.appendChild(c);a=c.offsetHeight===
|
||||||
|
3;b.parentNode.removeChild(b);c.parentNode.removeChild(c);return!!a},o=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b,c){c=c||document.createElement(a[b]||"div");b="on"+b;var k=b in c;if(!k){c.setAttribute||(c=document.createElement("div"));if(c.setAttribute&&c.removeAttribute){c.setAttribute(b,"");k=typeof c[b]=="function";if(typeof c[b]!="undefined")c[b]=u;c.removeAttribute(b)}}return k}}(),G={}.hasOwnProperty,R;R=
|
||||||
|
typeof G!=="undefined"&&typeof G.call!=="undefined"?function(a,b){return G.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};d.flexbox=function(){var a=e.createElement("div"),b=e.createElement("div");(function(k,g,r,x){g+=":";k.style.cssText=(g+q.join(r+";"+g)).slice(0,-g.length)+(x||"")})(a,"display","box","width:42px;padding:0;");b.style.cssText=q.join("box-flex:1;")+"width:10px;";a.appendChild(b);l.appendChild(a);var c=b.offsetWidth===42;a.removeChild(b);
|
||||||
|
l.removeChild(a);return c};d.canvas=function(){var a=e.createElement("canvas");return!!(a.getContext&&a.getContext("2d"))};d.canvastext=function(){return!!(f.canvas&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.webgl=function(){var a=e.createElement("canvas");try{if(a.getContext("webgl"))return true}catch(b){}try{if(a.getContext("experimental-webgl"))return true}catch(c){}return false};d.touch=function(){return"ontouchstart"in i||Q("@media ("+q.join("touch-enabled),(")+
|
||||||
|
"modernizr)")};d.geolocation=function(){return!!navigator.geolocation};d.postmessage=function(){return!!i.postMessage};d.websqldatabase=function(){return!!i.openDatabase};d.indexedDB=function(){for(var a=-1,b=F.length;++a<b;){var c=F[a].toLowerCase();if(i[c+"_indexedDB"]||i[c+"IndexedDB"])return true}return false};d.hashchange=function(){return o("hashchange",i)&&(document.documentMode===u||document.documentMode>7)};d.history=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return o("drag")&&
|
||||||
|
o("dragstart")&&o("dragenter")&&o("dragover")&&o("dragleave")&&o("dragend")&&o("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){j.cssText="background-color:rgba(150,255,150,.5)";return s(j.backgroundColor,"rgba")};d.hsla=function(){j.cssText="background-color:hsla(120,40%,100%,.5)";return s(j.backgroundColor,"rgba")||s(j.backgroundColor,"hsla")};d.multiplebgs=function(){j.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(j.background)};d.backgroundsize=
|
||||||
|
function(){return n("backgroundSize")};d.borderimage=function(){return n("borderImage")};d.borderradius=function(){return n("borderRadius","",function(a){return s(a,"orderRadius")})};d.boxshadow=function(){return n("boxShadow")};d.textshadow=function(){return e.createElement("div").style.textShadow===""};d.opacity=function(){var a=q.join("opacity:.5;")+"";j.cssText=a;return s(j.opacity,"0.5")};d.cssanimations=function(){return n("animationName")};d.csscolumns=function(){return n("columnCount")};d.cssgradients=
|
||||||
|
function(){var a=("background-image:"+q.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+q.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);j.cssText=a;return s(j.backgroundImage,"gradient")};d.cssreflections=function(){return n("boxReflect")};d.csstransforms=function(){return!!D(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!D(["perspectiveProperty","WebkitPerspective",
|
||||||
|
"MozPerspective","OPerspective","msPerspective"]);if(a)a=Q("@media ("+q.join("transform-3d),(")+"modernizr)");return a};d.csstransitions=function(){return n("transitionProperty")};d.fontface=function(){var a,b=e.head||e.getElementsByTagName("head")[0]||l,c=e.createElement("style"),k=e.implementation||{hasFeature:function(){return false}};c.type="text/css";b.insertBefore(c,b.firstChild);a=c.sheet||c.styleSheet;b=k.hasFeature("CSS2","")?function(g){if(!(a&&g))return false;var r=false;try{a.insertRule(g,
|
||||||
|
0);r=!/unknown/i.test(a.cssRules[0].cssText);a.deleteRule(a.cssRules.length-1)}catch(x){}return r}:function(g){if(!(a&&g))return false;a.cssText=g;return a.cssText.length!==0&&!/unknown/i.test(a.cssText)&&a.cssText.replace(/\r+|\n+/g,"").indexOf(g.split(" ")[0])===0};f._fontfaceready=function(g){g(f.fontface)};return b('@font-face { font-family: "font"; src: "font.ttf"; }')};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');
|
||||||
|
b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"')||a.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localstorage=function(){try{return"localStorage"in
|
||||||
|
i&&i.localStorage!==null}catch(a){return false}};d.sessionstorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webWorkers=function(){return!!i.Worker};d.applicationcache=function(){return!!i.applicationCache};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS(v.svg,"svg").createSVGRect};d.inlinesvg=function(){var a=document.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==v.svg};d.smil=function(){return!!e.createElementNS&&
|
||||||
|
/SVG/.test(O.call(e.createElementNS(v.svg,"animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(O.call(e.createElementNS(v.svg,"clipPath")))};for(var H in d)if(R(d,H)){w=H.toLowerCase();f[w]=d[H]();P.push((f[w]?"":"no-")+w)}f.input||S();f.crosswindowmessaging=f.postmessage;f.historymanagement=f.history;f.addTest=function(a,b){a=a.toLowerCase();if(!f[a]){b=!!b();l.className+=" "+(b?"":"no-")+a;f[a]=b;return f}};j.cssText="";E=h=null;i.attachEvent&&function(){var a=e.createElement("div");
|
||||||
|
a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function c(p){for(var m=-1;++m<r;)p.createElement(g[m])}function k(p,m){for(var I=p.length,t=-1,y,J=[];++t<I;){y=p[t];m=y.media||m;J.push(k(y.imports,m));J.push(y.cssText)}return J.join("")}var g="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),r=g.length,x=RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)",
|
||||||
|
"gi"),T=RegExp("\\b(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)\\b(?!.*[;}])","gi"),z=b.createDocumentFragment(),A=b.documentElement,K=A.firstChild,B=b.createElement("style"),C=b.createElement("body");B.media="all";c(b);c(z);a.attachEvent("onbeforeprint",function(){for(var p=-1;++p<r;)for(var m=b.getElementsByTagName(g[p]),I=m.length,t=-1;++t<I;)if(m[t].className.indexOf("iepp_")<0)m[t].className+=" iepp_"+
|
||||||
|
g[p];K.insertBefore(B,K.firstChild);B.styleSheet.cssText=k(b.styleSheets,"all").replace(T,".iepp_$1");z.appendChild(b.body);A.appendChild(C);C.innerHTML=z.firstChild.innerHTML.replace(x,"<$1bdo")});a.attachEvent("onafterprint",function(){C.innerHTML="";A.removeChild(C);K.removeChild(B);A.appendChild(z.firstChild)})}(this,document);f._enableHTML5=true;f._version="1.6";l.className=l.className.replace(/\bno-js\b/,"")+" js";l.className+=" "+P.join(" ");return f}(this,this.document);
|
2
lib/middleman/templates/html5boilerplate/public/js/mylibs/.gitignore
vendored
Normal file
2
lib/middleman/templates/html5boilerplate/public/js/mylibs/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
!.gitignore
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
// usage: log('inside coolFunc', this, arguments);
|
||||||
|
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
|
||||||
|
window.log = function(){
|
||||||
|
log.history = log.history || []; // store logs to an array for reference
|
||||||
|
log.history.push(arguments);
|
||||||
|
if(this.console) console.log( Array.prototype.slice.call(arguments) );
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// place any jQuery/helper plugins in here, instead of separate, slower script files.
|
||||||
|
|
26
lib/middleman/templates/html5boilerplate/public/js/script.js
Normal file
26
lib/middleman/templates/html5boilerplate/public/js/script.js
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
/* Author:
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# www.robotstxt.org/
|
||||||
|
# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
|
||||||
|
|
||||||
|
User-agent: *
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit ff29c100515ecb4dd82da5a2f8a4d3e2d0563acf
|
|
Loading…
Reference in a new issue