archetype-base-h5bp 1.0.0.alpha.1
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.
- checksums.yaml +7 -0
- data/LICENSE +16 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/CHANGELOG.md +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/README.md +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/VERSION +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/lib/archetype-base-h5bp/version.rb +3 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/lib/archetype-base-h5bp.rb +9 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/stylesheets/archetype/base/_h5bp.scss +307 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/templates/project/manifest.rb +4 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b3af78fd3f939885fd1dbc99ace3374aee2a418d
|
4
|
+
data.tar.gz: 45e5cf56b5e3f4af61eea1a12f4ff84119c21408
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9b87b609c0494e5c862b3562f55c70adc0465f819a1d3fff0e40828f120c97db058617f289504a36b4e4b9f97a8f75f44e4478eba88d442bf99af57589317413
|
7
|
+
data.tar.gz: 14248a6b94e26103acc604dc187d41eb15ca14c8463f10d250d4409e30cc58ebee7e7d63a8895ef8ad56eaabb803eb8356d1d1072fa69739cef7ae42cb7a6373
|
data/LICENSE
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Archetype
|
2
|
+
Copyright (c) 2013 LinkedIn Corp. All rights reserved.
|
3
|
+
Apache Software License 2.0
|
4
|
+
|
5
|
+
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
you may not use this file except in compliance with the License.
|
8
|
+
You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,307 @@
|
|
1
|
+
// HTML5 Boilerplate
|
2
|
+
|
3
|
+
// @category base
|
4
|
+
|
5
|
+
@mixin base-h5bp-base() {
|
6
|
+
/* ==========================================================================
|
7
|
+
Base styles: opinionated defaults
|
8
|
+
========================================================================== */
|
9
|
+
|
10
|
+
html,
|
11
|
+
button,
|
12
|
+
input,
|
13
|
+
select,
|
14
|
+
textarea {
|
15
|
+
color: #222;
|
16
|
+
}
|
17
|
+
|
18
|
+
body {
|
19
|
+
font-size: 1em;
|
20
|
+
line-height: 1.4;
|
21
|
+
}
|
22
|
+
|
23
|
+
/*
|
24
|
+
* Remove text-shadow in selection highlight: h5bp.com/i
|
25
|
+
* These selection declarations have to be separate.
|
26
|
+
* Customize the background color to match your design.
|
27
|
+
*/
|
28
|
+
|
29
|
+
::-moz-selection {
|
30
|
+
background: #b3d4fc;
|
31
|
+
text-shadow: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
::selection {
|
35
|
+
background: #b3d4fc;
|
36
|
+
text-shadow: none;
|
37
|
+
}
|
38
|
+
|
39
|
+
/*
|
40
|
+
* A better looking default horizontal rule
|
41
|
+
*/
|
42
|
+
|
43
|
+
hr {
|
44
|
+
display: block;
|
45
|
+
height: 1px;
|
46
|
+
border: 0;
|
47
|
+
border-top: 1px solid #ccc;
|
48
|
+
margin: 1em 0;
|
49
|
+
padding: 0;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin base-h5bp-images() {
|
54
|
+
/*
|
55
|
+
* Remove the gap between images and the bottom of their containers: h5bp.com/i/440
|
56
|
+
*/
|
57
|
+
|
58
|
+
img {
|
59
|
+
vertical-align: middle;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
@mixin base-h5bp-fieldset() {
|
65
|
+
/*
|
66
|
+
* Remove default fieldset styles.
|
67
|
+
*/
|
68
|
+
|
69
|
+
fieldset {
|
70
|
+
border: 0;
|
71
|
+
margin: 0;
|
72
|
+
padding: 0;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
@mixin base-h5bp-forms() {
|
77
|
+
/*
|
78
|
+
* Allow only vertical resizing of textareas.
|
79
|
+
*/
|
80
|
+
|
81
|
+
textarea {
|
82
|
+
resize: vertical;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
@mixin base-h5bp-chromeframe() {
|
87
|
+
/* ==========================================================================
|
88
|
+
Chrome Frame prompt
|
89
|
+
========================================================================== */
|
90
|
+
|
91
|
+
.chromeframe {
|
92
|
+
margin: 0.2em 0;
|
93
|
+
background: #ccc;
|
94
|
+
color: #000;
|
95
|
+
padding: 0.2em 0;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
@mixin base-h5bp-helpers() {
|
100
|
+
/* ==========================================================================
|
101
|
+
Helper classes
|
102
|
+
========================================================================== */
|
103
|
+
|
104
|
+
/*
|
105
|
+
* Image replacement
|
106
|
+
*/
|
107
|
+
|
108
|
+
.ir {
|
109
|
+
background-color: transparent;
|
110
|
+
border: 0;
|
111
|
+
overflow: hidden;
|
112
|
+
/* IE 6/7 fallback */
|
113
|
+
*text-indent: -9999px;
|
114
|
+
}
|
115
|
+
|
116
|
+
.ir:before {
|
117
|
+
content: "";
|
118
|
+
display: block;
|
119
|
+
width: 0;
|
120
|
+
height: 150%;
|
121
|
+
}
|
122
|
+
|
123
|
+
/*
|
124
|
+
* Hide from both screenreaders and browsers: h5bp.com/u
|
125
|
+
*/
|
126
|
+
|
127
|
+
.hidden {
|
128
|
+
display: none !important;
|
129
|
+
visibility: hidden;
|
130
|
+
}
|
131
|
+
|
132
|
+
/*
|
133
|
+
* Hide only visually, but have it available for screenreaders: h5bp.com/v
|
134
|
+
*/
|
135
|
+
|
136
|
+
.visuallyhidden {
|
137
|
+
border: 0;
|
138
|
+
clip: rect(0 0 0 0);
|
139
|
+
height: 1px;
|
140
|
+
margin: -1px;
|
141
|
+
overflow: hidden;
|
142
|
+
padding: 0;
|
143
|
+
position: absolute;
|
144
|
+
width: 1px;
|
145
|
+
}
|
146
|
+
|
147
|
+
/*
|
148
|
+
* Extends the .visuallyhidden class to allow the element to be focusable
|
149
|
+
* when navigated to via the keyboard: h5bp.com/p
|
150
|
+
*/
|
151
|
+
|
152
|
+
.visuallyhidden.focusable:active,
|
153
|
+
.visuallyhidden.focusable:focus {
|
154
|
+
clip: auto;
|
155
|
+
height: auto;
|
156
|
+
margin: 0;
|
157
|
+
overflow: visible;
|
158
|
+
position: static;
|
159
|
+
width: auto;
|
160
|
+
}
|
161
|
+
|
162
|
+
/*
|
163
|
+
* Hide visually and from screenreaders, but maintain layout
|
164
|
+
*/
|
165
|
+
|
166
|
+
.invisible {
|
167
|
+
visibility: hidden;
|
168
|
+
}
|
169
|
+
|
170
|
+
/*
|
171
|
+
* Clearfix: contain floats
|
172
|
+
*
|
173
|
+
* For modern browsers
|
174
|
+
* 1. The space content is one way to avoid an Opera bug when the
|
175
|
+
* `contenteditable` attribute is included anywhere else in the document.
|
176
|
+
* Otherwise it causes space to appear at the top and bottom of elements
|
177
|
+
* that receive the `clearfix` class.
|
178
|
+
* 2. The use of `table` rather than `block` is only necessary if using
|
179
|
+
* `:before` to contain the top-margins of child elements.
|
180
|
+
*/
|
181
|
+
|
182
|
+
.clearfix:before,
|
183
|
+
.clearfix:after {
|
184
|
+
content: " "; /* 1 */
|
185
|
+
display: table; /* 2 */
|
186
|
+
}
|
187
|
+
|
188
|
+
.clearfix:after {
|
189
|
+
clear: both;
|
190
|
+
}
|
191
|
+
|
192
|
+
/*
|
193
|
+
* For IE 6/7 only
|
194
|
+
* Include this rule to trigger hasLayout and contain floats.
|
195
|
+
*/
|
196
|
+
|
197
|
+
.clearfix {
|
198
|
+
*zoom: 1;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
@mixin base-h5bp-print() {
|
203
|
+
/* ==========================================================================
|
204
|
+
Print styles.
|
205
|
+
Inlined to avoid required HTTP connection: h5bp.com/r
|
206
|
+
========================================================================== */
|
207
|
+
@media print {
|
208
|
+
* {
|
209
|
+
background: transparent !important;
|
210
|
+
color: #000 !important; /* Black prints faster: h5bp.com/s */
|
211
|
+
box-shadow: none !important;
|
212
|
+
text-shadow: none !important;
|
213
|
+
}
|
214
|
+
|
215
|
+
a,
|
216
|
+
a:visited {
|
217
|
+
text-decoration: underline;
|
218
|
+
}
|
219
|
+
|
220
|
+
a[href]:after {
|
221
|
+
content: " (" attr(href) ")";
|
222
|
+
}
|
223
|
+
|
224
|
+
abbr[title]:after {
|
225
|
+
content: " (" attr(title) ")";
|
226
|
+
}
|
227
|
+
|
228
|
+
/*
|
229
|
+
* Don't show links for images, or javascript/internal links
|
230
|
+
*/
|
231
|
+
|
232
|
+
.ir a:after,
|
233
|
+
a[href^="javascript:"]:after,
|
234
|
+
a[href^="#"]:after {
|
235
|
+
content: "";
|
236
|
+
}
|
237
|
+
|
238
|
+
pre,
|
239
|
+
blockquote {
|
240
|
+
border: 1px solid #999;
|
241
|
+
page-break-inside: avoid;
|
242
|
+
}
|
243
|
+
|
244
|
+
thead {
|
245
|
+
display: table-header-group; /* h5bp.com/t */
|
246
|
+
}
|
247
|
+
|
248
|
+
tr,
|
249
|
+
img {
|
250
|
+
page-break-inside: avoid;
|
251
|
+
}
|
252
|
+
|
253
|
+
img {
|
254
|
+
max-width: 100% !important;
|
255
|
+
}
|
256
|
+
|
257
|
+
@page {
|
258
|
+
margin: 0.5cm;
|
259
|
+
}
|
260
|
+
|
261
|
+
p,
|
262
|
+
h2,
|
263
|
+
h3 {
|
264
|
+
orphans: 3;
|
265
|
+
widows: 3;
|
266
|
+
}
|
267
|
+
|
268
|
+
h2,
|
269
|
+
h3 {
|
270
|
+
page-break-after: avoid;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
// HTML5 Boilerplate reset
|
276
|
+
// @mixin base-h5bp
|
277
|
+
// @param $exclude {List} the list of features to exclude from the reset
|
278
|
+
// @link https://github.com/h5bp/html5-boilerplate/
|
279
|
+
@mixin base-h5bp($exclude: ()) {
|
280
|
+
/*! HTML5 Boilerplate | MIT License | @9ec546569b */
|
281
|
+
/*
|
282
|
+
* HTML5 Boilerplate
|
283
|
+
*
|
284
|
+
* What follows is the result of much research on cross-browser styling.
|
285
|
+
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
|
286
|
+
* Kroc Camen, and the H5BP dev community and team.
|
287
|
+
*/
|
288
|
+
$exclude: -archetype-list($exclude);
|
289
|
+
@if(not index($exclude, h5bp-base)) {
|
290
|
+
@include base-h5bp-base();
|
291
|
+
}
|
292
|
+
@if(not index($exclude, h5bp-images)) {
|
293
|
+
@include base-h5bp-images();
|
294
|
+
}
|
295
|
+
@if(not index($exclude, h5bp-forms)) {
|
296
|
+
@include base-h5bp-forms();
|
297
|
+
}
|
298
|
+
@if(not index($exclude, h5bp-chromeframe)) {
|
299
|
+
@include base-h5bp-chromeframe();
|
300
|
+
}
|
301
|
+
@if(not index($exclude, h5bp-helpers)) {
|
302
|
+
@include base-h5bp-helpers();
|
303
|
+
}
|
304
|
+
@if(not index($exclude, h5bp-print)) {
|
305
|
+
@include base-h5bp-print();
|
306
|
+
}
|
307
|
+
}
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: archetype-base-h5bp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.alpha.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eugene ONeill
|
8
|
+
- LinkedIn
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: archetype
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 1.0.0.alpha.1
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 1.0.0.alpha.1
|
28
|
+
description: An Archetype extension that provides hooks into using HTML5 Boilerplate's
|
29
|
+
CSS reset
|
30
|
+
email: oneill.eugene@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/CHANGELOG.md"
|
36
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/README.md"
|
37
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/VERSION"
|
38
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/lib/archetype-base-h5bp.rb"
|
39
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/lib/archetype-base-h5bp/version.rb"
|
40
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/stylesheets/archetype/base/_h5bp.scss"
|
41
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-h5bp/templates/project/manifest.rb"
|
42
|
+
- LICENSE
|
43
|
+
homepage: http://www.archetypecss.com/extensions/archetype-base-h5bp
|
44
|
+
licenses:
|
45
|
+
- Apache License (2.0)
|
46
|
+
metadata: {}
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options: []
|
49
|
+
require_paths:
|
50
|
+
- lib
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.3.1
|
61
|
+
requirements: []
|
62
|
+
rubyforge_project:
|
63
|
+
rubygems_version: 2.2.2
|
64
|
+
signing_key:
|
65
|
+
specification_version: 4
|
66
|
+
summary: Archetype H5BP Reset Extension
|
67
|
+
test_files: []
|
68
|
+
has_rdoc:
|