middleman 2.0.9.pre.2-x86-mingw32 → 2.0.9.pre.3-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +9 -0
- data/features/builder.feature +6 -0
- data/features/data.feature +16 -1
- data/features/fonts.feature +11 -0
- data/features/relative_assets.feature +8 -2
- data/features/step_definitions/middleman_steps.rb +9 -2
- data/fixtures/data-app/config.rb +3 -0
- data/fixtures/data-app/data/pages.yml +6 -0
- data/fixtures/data-app/source/index.html.haml +1 -0
- data/fixtures/data-app/source/layout.haml +3 -0
- data/fixtures/fonts-app/config.rb +0 -0
- data/fixtures/fonts-app/source/fonts/StMarie-Thin.otf +0 -0
- data/fixtures/fonts-app/source/stylesheets/fonts.css.sass +3 -0
- data/fixtures/glob-app/config.rb +1 -0
- data/fixtures/glob-app/source/index.html.haml +6 -0
- data/fixtures/glob-app/source/stylesheets/site.css.sass +1 -0
- data/fixtures/test-app/config.rb +1 -0
- data/fixtures/test-app/data/test2.json +4 -0
- data/fixtures/test-app/source/data3.html.erb +1 -0
- data/lib/middleman/base.rb +8 -3
- data/lib/middleman/builder.rb +61 -22
- data/lib/middleman/cli.rb +2 -1
- data/lib/middleman/core_extensions/assets.rb +1 -1
- data/lib/middleman/core_extensions/compass.rb +6 -2
- data/lib/middleman/core_extensions/data.rb +20 -3
- data/lib/middleman/templates/html5.rb +1 -0
- data/lib/middleman/templates/mobile.rb +17 -0
- data/lib/middleman/templates/mobile/source/404.html +38 -0
- data/lib/middleman/templates/mobile/source/README.markdown +64 -0
- data/lib/middleman/templates/mobile/source/crossdomain.xml +25 -0
- data/lib/middleman/templates/mobile/source/css/style.css +236 -0
- data/lib/middleman/templates/mobile/source/default.appcache +17 -0
- data/lib/middleman/templates/mobile/source/humans.txt +43 -0
- data/lib/middleman/templates/mobile/source/img/h/apple-touch-icon.png +0 -0
- data/lib/middleman/templates/mobile/source/img/h/splash.png +0 -0
- data/lib/middleman/templates/mobile/source/img/l/apple-touch-icon-precomposed.png +0 -0
- data/lib/middleman/templates/mobile/source/img/l/apple-touch-icon.png +0 -0
- data/lib/middleman/templates/mobile/source/img/l/splash.png +0 -0
- data/lib/middleman/templates/mobile/source/img/m/apple-touch-icon.png +0 -0
- data/lib/middleman/templates/mobile/source/index.html +95 -0
- data/lib/middleman/templates/mobile/source/js/libs/jquery-1.5.1.js +8316 -0
- data/lib/middleman/templates/mobile/source/js/libs/jquery-1.5.1.min.js +16 -0
- data/lib/middleman/templates/mobile/source/js/libs/modernizr-custom.js +14 -0
- data/lib/middleman/templates/mobile/source/js/libs/respond.min.js +7 -0
- data/lib/middleman/templates/mobile/source/js/mylibs/helper.js +147 -0
- data/lib/middleman/templates/mobile/source/js/script.js +0 -0
- data/lib/middleman/templates/mobile/source/robots.txt +5 -0
- data/lib/middleman/templates/mobile/source/sitemap.xml +10 -0
- data/lib/middleman/templates/mobile/source/test/index.html +31 -0
- data/lib/middleman/templates/mobile/source/test/qunit/qunit.css +148 -0
- data/lib/middleman/templates/mobile/source/test/qunit/qunit.js +1265 -0
- data/lib/middleman/templates/mobile/source/test/tests.js +26 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/Readme.PDF +0 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet +31 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx2.snippet +2 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/ga.aspx +195 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx +44 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/jsp/ga.jsp +225 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/jsp/jsp1.snippet +35 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/jsp/jsp2.snippet +2 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/jsp/sample.jsp +51 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/php/ga.php +176 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/php/php1.snippet +30 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/php/php2.snippet +4 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/php/sample.php +44 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/pl/ga.pl +195 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/pl/perl1.snippet +27 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/pl/perl2.snippet +1 -0
- data/lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/pl/sample.pl +38 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/COPYING +202 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/bookmark_bubble.js +559 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/example/example.html +43 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/example/example.js +57 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/images/arrow.png +0 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/images/close.png +0 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/images/generate_base64_images +33 -0
- data/lib/middleman/templates/mobile/source/tools/mobile-bookmark-bubble/images/icon_calendar.png +0 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/README +27 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/databasefactory.js +45 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbworker.js +324 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbworker_test.html +393 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbworkerstarter.js +32 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbwrapper_gears.js +595 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbwrapper_gears_test.html +404 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbwrapper_html5.js +203 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbwrapper_html5_test.html +468 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbwrapperapi.js +202 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/dbwrapperapi_test.html +51 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/gears_resultset.js +71 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/gears_resultset_test.html +86 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/gears_transaction.js +196 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/gears_transaction_test.html +221 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/gearsutils.js +94 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/gearsutils_test.html +84 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/global_functions.js +72 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/simplenotes/index.html +347 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/simplenotes/simplenotes.js +503 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/simplenotes/styles.css +66 -0
- data/lib/middleman/templates/mobile/source/tools/wspl/simplenotes/template.js +75 -0
- data/lib/middleman/version.rb +1 -1
- data/middleman-x86-mingw32.gemspec +0 -1
- data/middleman.gemspec +3 -2
- metadata +103 -6
- data/lib/middleman/config.ru +0 -2
- data/lib/middleman/features/tiny_src.rb +0 -11
@@ -0,0 +1,17 @@
|
|
1
|
+
class Middleman::Templates::Mobile < Middleman::Templates::Base
|
2
|
+
class_option :css_dir, :default => "css"
|
3
|
+
class_option :js_dir, :default => "js"
|
4
|
+
class_option :images_dir, :default => "img"
|
5
|
+
|
6
|
+
def self.source_root
|
7
|
+
File.dirname(__FILE__)
|
8
|
+
end
|
9
|
+
|
10
|
+
def build_scaffold
|
11
|
+
template "shared/config.tt", File.join(location, "config.rb")
|
12
|
+
directory "mobile/source", File.join(location, "source")
|
13
|
+
empty_directory File.join(location, "source")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
Middleman::Templates.register(:mobile, Middleman::Templates::Mobile)
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Page Not Found :(</title>
|
6
|
+
<style>
|
7
|
+
body { text-align: center;}
|
8
|
+
h1 { font-size: 50px; text-align: center }
|
9
|
+
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
|
10
|
+
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); }
|
11
|
+
::-moz-selection{ background:#FF5E99; color:#fff; }
|
12
|
+
::selection { background:#FF5E99; color:#fff; }
|
13
|
+
article {display:block; text-align: left; width: 500px; margin: 0 auto; }
|
14
|
+
|
15
|
+
a { color: rgb(36, 109, 56); text-decoration:none; }
|
16
|
+
a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
|
17
|
+
</style>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<article>
|
21
|
+
<h1>Not found <span frown>:(</span></h1>
|
22
|
+
<div>
|
23
|
+
<p>Sorry, but the page you were trying to view does not exist.</p>
|
24
|
+
<p>It looks like this was the result of either:</p>
|
25
|
+
<ul>
|
26
|
+
<li>a mistyped address</li>
|
27
|
+
<li>an out-of-date link</li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<script>
|
32
|
+
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),
|
33
|
+
GOOG_FIXURL_SITE = location.host;
|
34
|
+
</script>
|
35
|
+
<script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
36
|
+
</article>
|
37
|
+
</body>
|
38
|
+
</html>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
#Mobile Boilerplate http://html5boilerplate.com
|
2
|
+
v1.0 (code named Secret Diary)
|
3
|
+
|
4
|
+
##Summary:
|
5
|
+
|
6
|
+
This is a set of features made specifically for mobile development, with following included:
|
7
|
+
|
8
|
+
###Markup:
|
9
|
+
Home screen icon (Android, iOS, Symbian)
|
10
|
+
CSS class target IE Mobile 7
|
11
|
+
Cross browser viewport optimization (Android, iOS, Mobile IE, Blackberry)
|
12
|
+
Optimized viewport scaling (Android, iOS, Mobile IE, Blackberry)
|
13
|
+
IE Mobile better Font rendering
|
14
|
+
Prevent scaling
|
15
|
+
iPhone full screen mode
|
16
|
+
|
17
|
+
###CSS:
|
18
|
+
Mobile helper class
|
19
|
+
Prevent text resize in ie/webkit browser
|
20
|
+
Prevent callout
|
21
|
+
HTML5 contenteditable attribute on mobile
|
22
|
+
S60 3.x and 5.0 devices which animated gif fix
|
23
|
+
Text overflow with ellipsis
|
24
|
+
Mobile optimized default CSS
|
25
|
+
|
26
|
+
###JavaScript:
|
27
|
+
Cross browser CSS media queries
|
28
|
+
Textarea autogrow
|
29
|
+
Hide webkit chrome
|
30
|
+
Insant button
|
31
|
+
Firebug lite debugger
|
32
|
+
Media queries for low end smartphone
|
33
|
+
|
34
|
+
###Server:
|
35
|
+
Added Blackberry MIME type
|
36
|
+
Added Nokia MIME type
|
37
|
+
Prevent Transcoding
|
38
|
+
Mobile site redirection
|
39
|
+
|
40
|
+
###General:
|
41
|
+
HTML5 offline caching for smartphone
|
42
|
+
Mobile sitemap
|
43
|
+
Mobile bookmark bubble
|
44
|
+
Browser Database Wrapper API
|
45
|
+
User Agent Detection
|
46
|
+
GA for low end mobile devices
|
47
|
+
Mobile build tool
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
##License:
|
52
|
+
|
53
|
+
###Major components:
|
54
|
+
css3-mediaqueries.js: Public Domain<br />
|
55
|
+
Bookmark bubble library: Apache License, Version 2.0<br />
|
56
|
+
Web Storage Portability Layer: Apache License, Version 2.0<br />
|
57
|
+
Modernizr: MIT/BSD license<br />
|
58
|
+
jQuery: MIT/GPL license<br />
|
59
|
+
HTML5Doctor CSS reset: Creative Commons 3.0 <br />
|
60
|
+
CSS Reset Reloaded: Public Domain
|
61
|
+
|
62
|
+
###Everything else:
|
63
|
+
|
64
|
+
The Unlicense (aka: public domain)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
|
3
|
+
<cross-domain-policy>
|
4
|
+
|
5
|
+
|
6
|
+
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
|
7
|
+
|
8
|
+
<!-- Most restrictive policy: -->
|
9
|
+
<site-control permitted-cross-domain-policies="none"/>
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<!-- Least restrictive policy: -->
|
14
|
+
<!--
|
15
|
+
<site-control permitted-cross-domain-policies="all"/>
|
16
|
+
<allow-access-from domain="*" to-ports="*" secure="false"/>
|
17
|
+
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
|
18
|
+
-->
|
19
|
+
<!--
|
20
|
+
If you host a crossdomain.xml file with allow-access-from domain=�*�
|
21
|
+
and don�t understand all of the points described here, you probably
|
22
|
+
have a nasty security vulnerability. ~ simon willison
|
23
|
+
-->
|
24
|
+
|
25
|
+
</cross-domain-policy>
|
@@ -0,0 +1,236 @@
|
|
1
|
+
/**
|
2
|
+
* HTML5 ✰ Boilerplate
|
3
|
+
*
|
4
|
+
* style.css contains a reset, font normalization and some base styles.
|
5
|
+
*
|
6
|
+
* Credit is left where credit is due.
|
7
|
+
* Much inspiration was taken from these projects:
|
8
|
+
* - yui.yahooapis.com/2.8.1/build/base/base.css
|
9
|
+
* - camendesign.com/design/
|
10
|
+
* - praegnanz.de/weblog/htmlcssjs-kickstart
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
/**
|
15
|
+
* html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
|
16
|
+
* v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
|
17
|
+
* html5doctor.com/html-5-reset-stylesheet/
|
18
|
+
*/
|
19
|
+
|
20
|
+
html, body, div, span, object, iframe,
|
21
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
22
|
+
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
|
23
|
+
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
|
24
|
+
fieldset, form, label, legend,
|
25
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
26
|
+
article, aside, canvas, details, figcaption, figure,
|
27
|
+
footer, header, hgroup, menu, nav, section, summary,
|
28
|
+
time, mark, audio, video {
|
29
|
+
margin: 0;
|
30
|
+
padding: 0;
|
31
|
+
border: 0;
|
32
|
+
font-size: 100%;
|
33
|
+
font: inherit;
|
34
|
+
vertical-align: baseline;
|
35
|
+
}
|
36
|
+
|
37
|
+
article, aside, details, figcaption, figure,
|
38
|
+
footer, header, hgroup, menu, nav, section {
|
39
|
+
display: block;
|
40
|
+
}
|
41
|
+
|
42
|
+
blockquote, q { quotes: none; }
|
43
|
+
|
44
|
+
blockquote:before, blockquote:after,
|
45
|
+
q:before, q:after { content: ""; content: none; }
|
46
|
+
|
47
|
+
ins { background-color: #ff9; color: #000; text-decoration: none; }
|
48
|
+
|
49
|
+
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
|
50
|
+
|
51
|
+
del { text-decoration: line-through; }
|
52
|
+
|
53
|
+
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
|
54
|
+
|
55
|
+
table { border-collapse: collapse; border-spacing: 0; }
|
56
|
+
|
57
|
+
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
|
58
|
+
|
59
|
+
input, select { vertical-align: middle; }
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
|
65
|
+
*/
|
66
|
+
|
67
|
+
|
68
|
+
body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
|
69
|
+
select, input, textarea, button { font:99% sans-serif; }
|
70
|
+
|
71
|
+
/* Normalize monospace sizing:
|
72
|
+
en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
|
73
|
+
pre, code, kbd, samp { font-family: monospace, sans-serif; }
|
74
|
+
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Minimal base styles.
|
78
|
+
*/
|
79
|
+
|
80
|
+
/* Prevent mobile zooming while remain desktop zooming: github.com/shichuan/mobile-html5-boilerplate/issues/closed#issue/14 */
|
81
|
+
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
82
|
+
|
83
|
+
/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
|
84
|
+
a:hover, a:active { outline: none; }
|
85
|
+
|
86
|
+
ul, ol { margin-left: 2em; }
|
87
|
+
ol { list-style-type: decimal; }
|
88
|
+
|
89
|
+
/* Remove margins for navigation lists */
|
90
|
+
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
|
91
|
+
|
92
|
+
small { font-size: 85%; }
|
93
|
+
strong, th { font-weight: bold; }
|
94
|
+
|
95
|
+
td { vertical-align: top; }
|
96
|
+
|
97
|
+
/* Set sub, sup without affecting line-height: gist.github.com/413930 */
|
98
|
+
sub, sup { font-size: 75%; line-height: 0; position: relative; }
|
99
|
+
sup { top: -0.5em; }
|
100
|
+
sub { bottom: -0.25em; }
|
101
|
+
|
102
|
+
pre {
|
103
|
+
/* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
|
104
|
+
white-space: pre; white-space: pre-wrap; word-wrap: break-word;
|
105
|
+
padding: 15px;
|
106
|
+
}
|
107
|
+
|
108
|
+
textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
|
109
|
+
|
110
|
+
.iem7 legend { margin-left: -7px; }
|
111
|
+
|
112
|
+
/* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css */
|
113
|
+
input[type="radio"] { vertical-align: text-bottom; }
|
114
|
+
input[type="checkbox"] { vertical-align: bottom; }
|
115
|
+
.iem7 input[type="checkbox"] { vertical-align: baseline; }
|
116
|
+
|
117
|
+
/* Hand cursor on clickable input elements */
|
118
|
+
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
|
119
|
+
|
120
|
+
/* Webkit browsers add a 2px margin outside the chrome of form elements */
|
121
|
+
button, input, select, textarea { margin: 0; }
|
122
|
+
|
123
|
+
/* Colors for form validity */
|
124
|
+
input:valid, textarea:valid { }
|
125
|
+
input:invalid, textarea:invalid {
|
126
|
+
border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
|
127
|
+
}
|
128
|
+
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
|
129
|
+
|
130
|
+
|
131
|
+
/* These selection declarations have to be separate
|
132
|
+
No text-shadow: twitter.com/miketaylr/status/12228805301
|
133
|
+
Also: hot pink! */
|
134
|
+
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
|
135
|
+
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
|
136
|
+
|
137
|
+
/* j.mp/webkit-tap-highlight-color */
|
138
|
+
a:link { -webkit-tap-highlight-color: #FF5E99; }
|
139
|
+
|
140
|
+
/* Make buttons play nice in IE:
|
141
|
+
www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
|
142
|
+
button { width: auto; overflow: visible; }
|
143
|
+
|
144
|
+
/* Bicubic resizing for non-native sized IMG:
|
145
|
+
code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
|
146
|
+
.iem7 img { -ms-interpolation-mode: bicubic; }
|
147
|
+
|
148
|
+
|
149
|
+
/**
|
150
|
+
* You might tweak these..
|
151
|
+
*/
|
152
|
+
|
153
|
+
body, select, input, textarea {
|
154
|
+
/* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
|
155
|
+
color: #444;
|
156
|
+
/* Set your base font here, to apply evenly */
|
157
|
+
/* font-family: Georgia, serif; */
|
158
|
+
}
|
159
|
+
|
160
|
+
/* Headers (h1, h2, etc) have no default font-size or margin; define those yourself */
|
161
|
+
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
|
162
|
+
|
163
|
+
a, a:active, a:visited { color: #607890; }
|
164
|
+
a:hover { color: #036; }
|
165
|
+
|
166
|
+
|
167
|
+
/*
|
168
|
+
* Helper classes
|
169
|
+
*/
|
170
|
+
|
171
|
+
/* prevent callout */
|
172
|
+
.nocallout {-webkit-touch-callout: none;}
|
173
|
+
|
174
|
+
/* Text overflow with ellipsis */
|
175
|
+
.ellipsis {
|
176
|
+
text-overflow: ellipsis;
|
177
|
+
overflow: hidden;
|
178
|
+
white-space: nowrap;
|
179
|
+
}
|
180
|
+
|
181
|
+
/* A hack for HTML5 contenteditable attribute on mobile */
|
182
|
+
textarea.contenteditable {-webkit-appearance: none;}
|
183
|
+
|
184
|
+
/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if they have been set as display: none */
|
185
|
+
.gifhidden {position: absolute; left: -100%;}
|
186
|
+
|
187
|
+
/* For image replacement */
|
188
|
+
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
|
189
|
+
|
190
|
+
/* Hide for both screenreaders and browsers:
|
191
|
+
css-discuss.incutio.com/wiki/Screenreader_Visibility */
|
192
|
+
.hidden { display: none; visibility: hidden; }
|
193
|
+
|
194
|
+
/* Hide only visually, but have it available for screenreaders: by Jon Neal.
|
195
|
+
www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
|
196
|
+
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
197
|
+
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
|
198
|
+
.visuallyhidden.focusable:active,
|
199
|
+
.visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
|
200
|
+
|
201
|
+
/* Hide visually and from screenreaders, but maintain layout */
|
202
|
+
.invisible { visibility: hidden; }
|
203
|
+
|
204
|
+
/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
|
205
|
+
j.mp/bestclearfix */
|
206
|
+
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
|
207
|
+
.clearfix:after { clear: both; }
|
208
|
+
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
|
209
|
+
.clearfix { zoom: 1; }
|
210
|
+
|
211
|
+
|
212
|
+
/* Primary Styles for mobile
|
213
|
+
Author:
|
214
|
+
*/
|
215
|
+
|
216
|
+
|
217
|
+
/*
|
218
|
+
* Media queries for responsive design https://github.com/shichuan/mobile-html5-boilerplate/wiki/The-Style
|
219
|
+
*/
|
220
|
+
|
221
|
+
|
222
|
+
/* Styles for desktop and large screen ----------- */
|
223
|
+
|
224
|
+
/*styles for 800px and up!*/
|
225
|
+
@media only screen and (min-width: 800px) {
|
226
|
+
/* Styles */
|
227
|
+
}/*/mediaquery*/
|
228
|
+
|
229
|
+
|
230
|
+
/* iPhone 4, Opera Mobile 11 and other high pixel ratio devices ----------- */
|
231
|
+
@media
|
232
|
+
only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
233
|
+
only screen and (-o-min-device-pixel-ratio: 3/2),
|
234
|
+
only screen and (min-device-pixel-ratio: 1.5) {
|
235
|
+
/* Styles */
|
236
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
CACHE MANIFEST
|
2
|
+
# version 1
|
3
|
+
img/l/apple-touch-icon.png
|
4
|
+
img/l/apple-touch-icon-precomposed.png
|
5
|
+
img/l/splash.png
|
6
|
+
img/m/apple-touch-icon.png
|
7
|
+
img/h/apple-touch-icon.png
|
8
|
+
img/h/splash.png
|
9
|
+
css/style.css
|
10
|
+
js/libs/jquery-1.5.1.min.js
|
11
|
+
js/libs/modernizr-custom.js
|
12
|
+
js/libs/respond.min.js
|
13
|
+
|
14
|
+
NETWORK:
|
15
|
+
#http://example.com/api/
|
16
|
+
|
17
|
+
FALLBACK:
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/* the humans responsible & colophon */
|
2
|
+
/* humanstxt.org */
|
3
|
+
|
4
|
+
|
5
|
+
/* TEAM */
|
6
|
+
<your title>: <your name>
|
7
|
+
Site:
|
8
|
+
Twitter:
|
9
|
+
Location:
|
10
|
+
|
11
|
+
/* THANKS */
|
12
|
+
Names (& URL):
|
13
|
+
|
14
|
+
/* SITE */
|
15
|
+
Standards: HTML5, CSS3
|
16
|
+
Components: Modernizr, jQuery
|
17
|
+
Software:
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
-o/-
|
22
|
+
+oo//-
|
23
|
+
:ooo+//:
|
24
|
+
-ooooo///-
|
25
|
+
/oooooo//:
|
26
|
+
:ooooooo+//-
|
27
|
+
-+oooooooo///-
|
28
|
+
-://////////////+oooooooooo++////////////::
|
29
|
+
:+ooooooooooooooooooooooooooooooooooooo+:::-
|
30
|
+
-/+ooooooooooooooooooooooooooooooo+/::////:-
|
31
|
+
-:+oooooooooooooooooooooooooooo/::///////:-
|
32
|
+
--/+ooooooooooooooooooooo+::://////:-
|
33
|
+
-:+ooooooooooooooooo+:://////:--
|
34
|
+
/ooooooooooooooooo+//////:-
|
35
|
+
-ooooooooooooooooooo////-
|
36
|
+
/ooooooooo+oooooooooo//:
|
37
|
+
:ooooooo+/::/+oooooooo+//-
|
38
|
+
-oooooo/::///////+oooooo///-
|
39
|
+
/ooo+::://////:---:/+oooo//:
|
40
|
+
-o+/::///////:- -:/+o+//-
|
41
|
+
:-:///////:- -:/://
|
42
|
+
-////:- --//:
|
43
|
+
-- -:
|