wck 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +15 -0
- data/Rakefile +1 -0
- data/app/assets/stylesheets/wck.css.scss +6 -0
- data/app/assets/stylesheets/wck/_helpers.scss +127 -0
- data/app/assets/stylesheets/wck/_mixins.scss +65 -0
- data/app/assets/stylesheets/wck/_normalize.scss +431 -0
- data/app/assets/stylesheets/wck/_variables.scss +28 -0
- data/lib/generators/wck/install/install_generator.rb +38 -0
- data/lib/generators/wck/install/templates/layouts/application.html.erb +47 -0
- data/lib/generators/wck/install/templates/public/humans.txt +48 -0
- data/lib/generators/wck/install/templates/public/robots.txt +5 -0
- data/lib/generators/wck/install/templates/shared/_footer.html.erb +1 -0
- data/lib/generators/wck/install/templates/shared/_header.html.erb +1 -0
- data/lib/generators/wck/install/templates/stylesheets/application.css.scss +32 -0
- data/lib/generators/wck/install/templates/stylesheets/theme/_fonts.scss +2 -0
- data/lib/generators/wck/install/templates/stylesheets/theme/_theme.scss +22 -0
- data/lib/wck.rb +9 -0
- data/lib/wck/version.rb +3 -0
- data/wck.gemspec +24 -0
- metadata +125 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a047493a4805b7b7c094c1891050bee01fa9ce2
|
4
|
+
data.tar.gz: 34d060cdab71af021e950b3a7f9f52caa52ae629
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0ac25943e193c5fcffc720aa511f0d9e18c3963286532f15d37ed32233c4dadff370637e54241b2a445641cc8f976f73b817b099ea6cf63a3f10763324feb266
|
7
|
+
data.tar.gz: f111d2490a8961f7772530a02ab59ed60dc6f599acdea4f4c36a44905018dc2ed8576fd51bdd4be804be198ce4a0391896d0069de2b01db1893d1428d2838000
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Daniel Upton
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# WCK
|
2
|
+
**W**ebsite **C**reation **K**it
|
3
|
+
|
4
|
+
A curated collection of CSS, HTML and SASS mixins for getting a rails front end off ground, rawnet style.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
gem 'wck'
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle
|
15
|
+
$ rails g wck:install
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,127 @@
|
|
1
|
+
//---------------------------------------------------------------//
|
2
|
+
// Helper Classes
|
3
|
+
//---------------------------------------------------------------//
|
4
|
+
|
5
|
+
|
6
|
+
// Floats
|
7
|
+
// ------------------------------------------//
|
8
|
+
|
9
|
+
.cf {
|
10
|
+
@include clearfix;
|
11
|
+
}
|
12
|
+
.pull-left {
|
13
|
+
float: left;
|
14
|
+
}
|
15
|
+
.pull-right {
|
16
|
+
float: right;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
// Centering Content
|
21
|
+
// ------------------------------------------//
|
22
|
+
|
23
|
+
.center-block {
|
24
|
+
@include center-block;
|
25
|
+
}
|
26
|
+
|
27
|
+
.center-content {
|
28
|
+
@include center-content;
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
// Visibility
|
33
|
+
// ------------------------------------------//
|
34
|
+
|
35
|
+
.hidden {
|
36
|
+
@include hidden;
|
37
|
+
}
|
38
|
+
.invisible {
|
39
|
+
@include invisible;
|
40
|
+
}
|
41
|
+
.hide-text {
|
42
|
+
@include hide-text;
|
43
|
+
}
|
44
|
+
.sr-only {
|
45
|
+
position: absolute;
|
46
|
+
width: 1px;
|
47
|
+
height: 1px;
|
48
|
+
padding: 0;
|
49
|
+
margin: -1px;
|
50
|
+
overflow: hidden;
|
51
|
+
clip: rect(0,0,0,0);
|
52
|
+
border: 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
// Responsive - Show at select size
|
57
|
+
// ------------------------------------------//
|
58
|
+
|
59
|
+
.visible-xs {
|
60
|
+
@include hidden;
|
61
|
+
}
|
62
|
+
@media (max-width: $screen-xs-max) {
|
63
|
+
@include show-xs;
|
64
|
+
}
|
65
|
+
|
66
|
+
.visible-sm {
|
67
|
+
@include hidden;
|
68
|
+
}
|
69
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
70
|
+
@include show-sm;
|
71
|
+
}
|
72
|
+
|
73
|
+
.visible-md {
|
74
|
+
@include hidden;
|
75
|
+
}
|
76
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
77
|
+
@include show-md;
|
78
|
+
}
|
79
|
+
|
80
|
+
.visible-lg {
|
81
|
+
@include hidden;
|
82
|
+
}
|
83
|
+
@media (min-width: $screen-lg-min) {
|
84
|
+
@include show-lg;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
// Responsive - Hide at selected size
|
89
|
+
// ------------------------------------------//
|
90
|
+
|
91
|
+
.hidden-xs {
|
92
|
+
@media (max-width: $screen-xs-max) {
|
93
|
+
@include hidden;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
.hidden-sm {
|
97
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
98
|
+
@include hidden;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
.hidden-md {
|
102
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
103
|
+
@include hidden;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
.hidden-lg {
|
107
|
+
@media (min-width: $screen-lg-min) {
|
108
|
+
@include hidden;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
// Print Visibility
|
114
|
+
// ------------------------------------------//
|
115
|
+
|
116
|
+
.visible-print {
|
117
|
+
@include hidden;
|
118
|
+
@media print {
|
119
|
+
@include show;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.hidden-print {
|
124
|
+
@media print {
|
125
|
+
@include hidden;
|
126
|
+
}
|
127
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
//---------------------------------------------------------------//
|
2
|
+
// Custom Mixins
|
3
|
+
//---------------------------------------------------------------//
|
4
|
+
|
5
|
+
@mixin center-block {
|
6
|
+
display: block;
|
7
|
+
margin-left: auto;
|
8
|
+
margin-right: auto;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin center-content {
|
12
|
+
text-align: center;
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin show($mode: block) {
|
16
|
+
display: $mode !important;
|
17
|
+
visibility: visible !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin show-xs {
|
21
|
+
.visible-xs { @include show; }
|
22
|
+
table.visible-xs { @include show(table); }
|
23
|
+
tr.visible-xs { @include show(table-row); }
|
24
|
+
td.visible-xs { @include show(table-cell); }
|
25
|
+
th.visible-xs { @include show(table-cell); }
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin show-sm {
|
29
|
+
.visible-sm { @include show; }
|
30
|
+
table.visible-sm { @include show(table); }
|
31
|
+
tr.visible-sm { @include show(table-row); }
|
32
|
+
td.visible-sm { @include show(table-cell); }
|
33
|
+
th.visible-sm { @include show(table-cell); }
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin show-md {
|
37
|
+
.visible-md { @include show; }
|
38
|
+
table.visible-md { @include show(table); }
|
39
|
+
tr.visible-md { @include show(table-row); }
|
40
|
+
td.visible-md { @include show(table-cell); }
|
41
|
+
th.visible-md { @include show(table-cell); }
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin show-lg {
|
45
|
+
.visible-lg { @include show; }
|
46
|
+
table.visible-lg { @include show(table); }
|
47
|
+
tr.visible-lg { @include show(table-row); }
|
48
|
+
td.visible-lg { @include show(table-cell); }
|
49
|
+
th.visible-lg { @include show(table-cell); }
|
50
|
+
}
|
51
|
+
|
52
|
+
@mixin hidden {
|
53
|
+
display: none !important;
|
54
|
+
visibility: hidden !important;
|
55
|
+
}
|
56
|
+
|
57
|
+
@mixin invisible {
|
58
|
+
visibility: hidden;
|
59
|
+
}
|
60
|
+
|
61
|
+
@mixin sprite($position) {
|
62
|
+
@include retina-image(/app/images/interface/sprite, 1000px 1000px);
|
63
|
+
background-position: $position;
|
64
|
+
background-repeat: no-repeat;
|
65
|
+
}
|
@@ -0,0 +1,431 @@
|
|
1
|
+
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
|
2
|
+
|
3
|
+
/* ==========================================================================
|
4
|
+
HTML5 display definitions
|
5
|
+
========================================================================== */
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Correct `block` display not defined in IE 8/9.
|
9
|
+
*/
|
10
|
+
|
11
|
+
article,
|
12
|
+
aside,
|
13
|
+
details,
|
14
|
+
figcaption,
|
15
|
+
figure,
|
16
|
+
footer,
|
17
|
+
header,
|
18
|
+
hgroup,
|
19
|
+
main,
|
20
|
+
nav,
|
21
|
+
section,
|
22
|
+
summary {
|
23
|
+
display: block;
|
24
|
+
}
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Correct `inline-block` display not defined in IE 8/9.
|
28
|
+
*/
|
29
|
+
|
30
|
+
audio,
|
31
|
+
canvas,
|
32
|
+
progress,
|
33
|
+
video {
|
34
|
+
display: inline-block;
|
35
|
+
}
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
39
|
+
* Remove excess height in iOS 5 devices.
|
40
|
+
*/
|
41
|
+
|
42
|
+
audio:not([controls]) {
|
43
|
+
display: none;
|
44
|
+
height: 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Address `[hidden]` styling not present in IE 8/9.
|
49
|
+
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
50
|
+
*/
|
51
|
+
|
52
|
+
[hidden],
|
53
|
+
template {
|
54
|
+
display: none;
|
55
|
+
}
|
56
|
+
|
57
|
+
/* ==========================================================================
|
58
|
+
Base
|
59
|
+
========================================================================== */
|
60
|
+
|
61
|
+
/**
|
62
|
+
* 1. Set default font family to sans-serif.
|
63
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
64
|
+
* user zoom.
|
65
|
+
*/
|
66
|
+
|
67
|
+
html {
|
68
|
+
font-family: sans-serif; /* 1 */
|
69
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
70
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Remove default margin.
|
75
|
+
*/
|
76
|
+
|
77
|
+
body {
|
78
|
+
margin: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
/* ==========================================================================
|
82
|
+
Links
|
83
|
+
========================================================================== */
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Remove the gray background color from active links in IE 10.
|
87
|
+
*/
|
88
|
+
|
89
|
+
a {
|
90
|
+
background: transparent;
|
91
|
+
}
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
95
|
+
*/
|
96
|
+
|
97
|
+
a:active,
|
98
|
+
a:hover {
|
99
|
+
outline: 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
/* ==========================================================================
|
103
|
+
Lists
|
104
|
+
========================================================================== */
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Remove padding, margin and list style from ul's in navs
|
108
|
+
*/
|
109
|
+
|
110
|
+
nav > ul {
|
111
|
+
margin: 0;
|
112
|
+
padding: 0;
|
113
|
+
list-style: none;
|
114
|
+
}
|
115
|
+
|
116
|
+
/* ==========================================================================
|
117
|
+
Typography
|
118
|
+
========================================================================== */
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Address variable `h1` font-size and margin within `section` and `article`
|
122
|
+
* contexts in Firefox 4+, Safari 5, and Chrome.
|
123
|
+
*/
|
124
|
+
|
125
|
+
h1 {
|
126
|
+
font-size: 2em;
|
127
|
+
margin: 0.67em 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
132
|
+
*/
|
133
|
+
|
134
|
+
abbr[title] {
|
135
|
+
border-bottom: 1px dotted;
|
136
|
+
}
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
140
|
+
*/
|
141
|
+
|
142
|
+
b,
|
143
|
+
strong {
|
144
|
+
font-weight: bold;
|
145
|
+
}
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Address styling not present in Safari 5 and Chrome.
|
149
|
+
*/
|
150
|
+
|
151
|
+
dfn {
|
152
|
+
font-style: italic;
|
153
|
+
}
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Address differences between Firefox and other browsers.
|
157
|
+
*/
|
158
|
+
|
159
|
+
hr {
|
160
|
+
-moz-box-sizing: content-box;
|
161
|
+
box-sizing: content-box;
|
162
|
+
height: 0;
|
163
|
+
}
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Address styling not present in IE 8/9.
|
167
|
+
*/
|
168
|
+
|
169
|
+
mark {
|
170
|
+
background: #ff0;
|
171
|
+
color: #000;
|
172
|
+
}
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Correct font family set oddly in Safari 5 and Chrome.
|
176
|
+
*/
|
177
|
+
|
178
|
+
code,
|
179
|
+
kbd,
|
180
|
+
pre,
|
181
|
+
samp {
|
182
|
+
font-family: monospace, serif;
|
183
|
+
font-size: 1em;
|
184
|
+
}
|
185
|
+
|
186
|
+
/**
|
187
|
+
* Improve readability of pre-formatted text in all browsers.
|
188
|
+
*/
|
189
|
+
|
190
|
+
pre {
|
191
|
+
white-space: pre-wrap;
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Set consistent quote types.
|
196
|
+
*/
|
197
|
+
|
198
|
+
q {
|
199
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
200
|
+
}
|
201
|
+
|
202
|
+
/**
|
203
|
+
* Address inconsistent and variable font size in all browsers.
|
204
|
+
*/
|
205
|
+
|
206
|
+
small {
|
207
|
+
font-size: 80%;
|
208
|
+
}
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
212
|
+
*/
|
213
|
+
|
214
|
+
sub,
|
215
|
+
sup {
|
216
|
+
font-size: 75%;
|
217
|
+
line-height: 0;
|
218
|
+
position: relative;
|
219
|
+
vertical-align: baseline;
|
220
|
+
}
|
221
|
+
|
222
|
+
sup {
|
223
|
+
top: -0.5em;
|
224
|
+
}
|
225
|
+
|
226
|
+
sub {
|
227
|
+
bottom: -0.25em;
|
228
|
+
}
|
229
|
+
|
230
|
+
/* ==========================================================================
|
231
|
+
Embedded content
|
232
|
+
========================================================================== */
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Remove border when inside `a` element in IE 8/9.
|
236
|
+
*/
|
237
|
+
|
238
|
+
img {
|
239
|
+
border: 0;
|
240
|
+
}
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Correct overflow displayed oddly in IE 9.
|
244
|
+
*/
|
245
|
+
|
246
|
+
svg:not(:root) {
|
247
|
+
overflow: hidden;
|
248
|
+
}
|
249
|
+
|
250
|
+
/* ==========================================================================
|
251
|
+
Figures
|
252
|
+
========================================================================== */
|
253
|
+
|
254
|
+
/**
|
255
|
+
* Address margin not present in IE 8/9 and Safari 5.
|
256
|
+
*/
|
257
|
+
|
258
|
+
figure {
|
259
|
+
margin: 1em 40px;
|
260
|
+
}
|
261
|
+
|
262
|
+
/* ==========================================================================
|
263
|
+
Forms
|
264
|
+
========================================================================== */
|
265
|
+
|
266
|
+
/**
|
267
|
+
* 1. Define consistent border, margin, and padding.
|
268
|
+
* 2. Address width being affected by wide descendants in Chrome and Firefox.
|
269
|
+
*/
|
270
|
+
|
271
|
+
fieldset {
|
272
|
+
border: 1px solid #c0c0c0; /* 1 */
|
273
|
+
margin: 0 2px; /* 1 */
|
274
|
+
min-width: 0; /* 2 */
|
275
|
+
padding: 0.35em 0.625em 0.75em; /* 1 */
|
276
|
+
}
|
277
|
+
|
278
|
+
/**
|
279
|
+
* 1. Correct `color` not being inherited in IE 8/9.
|
280
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
281
|
+
*/
|
282
|
+
|
283
|
+
legend {
|
284
|
+
border: 0; /* 1 */
|
285
|
+
padding: 0; /* 2 */
|
286
|
+
}
|
287
|
+
|
288
|
+
/**
|
289
|
+
* 1. Correct color not being inherited in all browsers.
|
290
|
+
* Known issue: `select` will not inherit color in Chrome and Safari on OS X.
|
291
|
+
* 2. Correct font properties not being inherited in all browsers.
|
292
|
+
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
293
|
+
*/
|
294
|
+
|
295
|
+
button,
|
296
|
+
input,
|
297
|
+
optgroup,
|
298
|
+
select,
|
299
|
+
textarea {
|
300
|
+
color: inherit; /* 1 */
|
301
|
+
font: inherit; /* 2 */
|
302
|
+
margin: 0; /* 3 */
|
303
|
+
}
|
304
|
+
|
305
|
+
/**
|
306
|
+
* Re-apply the `font-weight` to avoid modifying the default UX, and because
|
307
|
+
* the default cannot be changed in Chrome and Safari on OS X.
|
308
|
+
*/
|
309
|
+
|
310
|
+
optgroup {
|
311
|
+
font-weight: bold;
|
312
|
+
}
|
313
|
+
|
314
|
+
/**
|
315
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
316
|
+
* the UA stylesheet.
|
317
|
+
*/
|
318
|
+
|
319
|
+
button,
|
320
|
+
input {
|
321
|
+
line-height: normal;
|
322
|
+
}
|
323
|
+
|
324
|
+
/**
|
325
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
326
|
+
* All other form control elements do not inherit `text-transform` values.
|
327
|
+
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
328
|
+
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
329
|
+
*/
|
330
|
+
|
331
|
+
button,
|
332
|
+
select {
|
333
|
+
text-transform: none;
|
334
|
+
}
|
335
|
+
|
336
|
+
/**
|
337
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
338
|
+
* and `video` controls.
|
339
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
340
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
341
|
+
* `input` and others.
|
342
|
+
*/
|
343
|
+
|
344
|
+
button,
|
345
|
+
html input[type="button"], /* 1 */
|
346
|
+
input[type="reset"],
|
347
|
+
input[type="submit"] {
|
348
|
+
-webkit-appearance: button; /* 2 */
|
349
|
+
cursor: pointer; /* 3 */
|
350
|
+
}
|
351
|
+
|
352
|
+
/**
|
353
|
+
* Re-set default cursor for disabled elements.
|
354
|
+
*/
|
355
|
+
|
356
|
+
button[disabled],
|
357
|
+
html input[disabled] {
|
358
|
+
cursor: default;
|
359
|
+
}
|
360
|
+
|
361
|
+
/**
|
362
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
363
|
+
* 2. Remove excess padding in IE 8/9/10.
|
364
|
+
*/
|
365
|
+
|
366
|
+
input[type="checkbox"],
|
367
|
+
input[type="radio"] {
|
368
|
+
box-sizing: border-box; /* 1 */
|
369
|
+
padding: 0; /* 2 */
|
370
|
+
}
|
371
|
+
|
372
|
+
/**
|
373
|
+
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
374
|
+
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
375
|
+
* (include `-moz` to future-proof).
|
376
|
+
*/
|
377
|
+
|
378
|
+
input[type="search"] {
|
379
|
+
-webkit-appearance: textfield; /* 1 */
|
380
|
+
-moz-box-sizing: content-box;
|
381
|
+
-webkit-box-sizing: content-box; /* 2 */
|
382
|
+
box-sizing: content-box;
|
383
|
+
}
|
384
|
+
|
385
|
+
/**
|
386
|
+
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
387
|
+
* on OS X.
|
388
|
+
*/
|
389
|
+
|
390
|
+
input[type="search"]::-webkit-search-cancel-button,
|
391
|
+
input[type="search"]::-webkit-search-decoration {
|
392
|
+
-webkit-appearance: none;
|
393
|
+
}
|
394
|
+
|
395
|
+
/**
|
396
|
+
* Remove inner padding and border in Firefox 4+.
|
397
|
+
*/
|
398
|
+
|
399
|
+
button::-moz-focus-inner,
|
400
|
+
input::-moz-focus-inner {
|
401
|
+
border: 0;
|
402
|
+
padding: 0;
|
403
|
+
}
|
404
|
+
|
405
|
+
/**
|
406
|
+
* 1. Remove default vertical scrollbar in IE 8/9.
|
407
|
+
* 2. Improve readability and alignment in all browsers.
|
408
|
+
*/
|
409
|
+
|
410
|
+
textarea {
|
411
|
+
overflow: auto; /* 1 */
|
412
|
+
vertical-align: top; /* 2 */
|
413
|
+
}
|
414
|
+
|
415
|
+
/* ==========================================================================
|
416
|
+
Tables
|
417
|
+
========================================================================== */
|
418
|
+
|
419
|
+
/**
|
420
|
+
* Remove most spacing between table cells.
|
421
|
+
*/
|
422
|
+
|
423
|
+
table {
|
424
|
+
border-collapse: collapse;
|
425
|
+
border-spacing: 0;
|
426
|
+
}
|
427
|
+
|
428
|
+
td,
|
429
|
+
th {
|
430
|
+
padding: 0;
|
431
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
//---------------------------------------------------------------//
|
2
|
+
// Boilerplate Variables
|
3
|
+
//---------------------------------------------------------------//
|
4
|
+
|
5
|
+
|
6
|
+
// Breakpoints
|
7
|
+
// ------------------------------------------//
|
8
|
+
|
9
|
+
// Extra small screen / phone
|
10
|
+
$screen-xs: 480px;
|
11
|
+
$screen-xs-min: $screen-xs;
|
12
|
+
|
13
|
+
// Small screen / tablet
|
14
|
+
$screen-sm: 768px;
|
15
|
+
$screen-sm-min: $screen-sm;
|
16
|
+
|
17
|
+
// Medium screen / desktop
|
18
|
+
$screen-md: 992px;
|
19
|
+
$screen-md-min: $screen-md;
|
20
|
+
|
21
|
+
// Large screen / wide desktop
|
22
|
+
$screen-lg: 1200px;
|
23
|
+
$screen-lg-min: $screen-lg;
|
24
|
+
|
25
|
+
// So media queries don't overlap when required, provide a maximum
|
26
|
+
$screen-xs-max: ($screen-sm-min - 1);
|
27
|
+
$screen-sm-max: ($screen-md-min - 1);
|
28
|
+
$screen-md-max: ($screen-lg-min - 1);
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Wck
|
4
|
+
class InstallGenerator < ::Rails::Generators::Base
|
5
|
+
desc 'Install the WCK layout and set up the front end project structure'
|
6
|
+
|
7
|
+
def self.source_root
|
8
|
+
File.expand_path '../templates', __FILE__
|
9
|
+
end
|
10
|
+
|
11
|
+
def copy_views
|
12
|
+
%w[layouts/application shared/_header shared/_footer].each do |file|
|
13
|
+
copy_file "#{file}.html.erb", "app/views/#{file}.html.erb"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def create_asset_bolierplate
|
18
|
+
%w[images/content images/interface javascripts/modules
|
19
|
+
stylesheets/modules stylesheets/theme stylesheets/layouts].each do |dir|
|
20
|
+
empty_directory "app/assets/#{dir}"
|
21
|
+
run "touch app/assets/#{dir}/.keep"
|
22
|
+
end
|
23
|
+
|
24
|
+
remove_file 'app/assets/stylesheets/application.css'
|
25
|
+
copy_file 'stylesheets/application.css.scss', 'app/assets/stylesheets/application.css.scss'
|
26
|
+
|
27
|
+
%w[fonts theme].each do |file|
|
28
|
+
copy_file "stylesheets/theme/_#{file}.scss", "app/assets/stylesheets/theme/_#{file}.scss"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def the_humans_are_dead
|
33
|
+
%w[humans robots].each do |file|
|
34
|
+
copy_file "public/#{file}.txt"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lte IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
|
3
|
+
<!--[if IE 8]> <html class="no-js lt-ie10 lt-ie9"> <![endif]-->
|
4
|
+
<!--[if IE 9]> <html class="no-js lt-ie10"> <![endif]-->
|
5
|
+
<!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
<!-- Meta Tags -->
|
8
|
+
<meta charset="utf-8">
|
9
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
10
|
+
<%= csrf_meta_tags %>
|
11
|
+
|
12
|
+
<!-- Site Info -->
|
13
|
+
<title>Site Title</title>
|
14
|
+
<meta name="description" content="TODO: meta description">
|
15
|
+
<meta name="keywords" content="TODO: meta keywords" />
|
16
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
17
|
+
|
18
|
+
<!-- Stylesheets -->
|
19
|
+
<%= stylesheet_link_tag "application" %>
|
20
|
+
|
21
|
+
<!-- Scripts -->
|
22
|
+
<%= javascript_include_tag "application" %>
|
23
|
+
</head>
|
24
|
+
|
25
|
+
<body>
|
26
|
+
<%= render 'shared/header' %>
|
27
|
+
<%= yield %>
|
28
|
+
<%= render 'shared/footer' %>
|
29
|
+
|
30
|
+
<!-- Notifications -->
|
31
|
+
<ul id="notifications">
|
32
|
+
<% if flash[:alert] %>
|
33
|
+
<li class="alert error">
|
34
|
+
<p><%= flash[:alert] %></p>
|
35
|
+
<a class="close"></a>
|
36
|
+
</li>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
<% if flash[:notice] %>
|
40
|
+
<li class="alert success">
|
41
|
+
<p><%= flash[:notice] %></p>
|
42
|
+
<a class="close"></a>
|
43
|
+
</li>
|
44
|
+
<% end %>
|
45
|
+
</ul>
|
46
|
+
</body>
|
47
|
+
</html>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
/* humanstxt.org */
|
2
|
+
|
3
|
+
/* THE RAWNET TEAM */
|
4
|
+
|
5
|
+
Designers: Jay Dick @jaydick
|
6
|
+
Mat Johnson @madebymat
|
7
|
+
Matt Pascoe
|
8
|
+
|
9
|
+
UI Developers: Simon Sturgess @dahliacreative
|
10
|
+
Jason Liggi @liggi
|
11
|
+
|
12
|
+
Developers: Rob Parvin @robparvin
|
13
|
+
Daniel Upton @boxofrad
|
14
|
+
Tom Beynon @Tom_Beynon
|
15
|
+
Andrew Pepler @vertism
|
16
|
+
Pedro Piedade @iampedropiedade
|
17
|
+
James Crooke @jamescrooke
|
18
|
+
Ville Hellman @efexen
|
19
|
+
|
20
|
+
======================================================================
|
21
|
+
|
22
|
+
Site: www.rawnet.com
|
23
|
+
Twitter: @rawnet
|
24
|
+
Location: Berkshire House, 39-51 High Street, Ascot,
|
25
|
+
Berkshire SL5 7HY
|
26
|
+
United Kingdom
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
:G1.
|
32
|
+
:L:1C;
|
33
|
+
if;;;iC,
|
34
|
+
Ci;::;;ti
|
35
|
+
iL;;, .;;tLC. .CCG
|
36
|
+
;C;;: .i;C;tt .,,. ,:::,. ... .,, .:;i;, .:;;:. CCCG
|
37
|
+
ffii: ;iiiiiC. :CCCCCCCi 1CCCCCCCCCL. CCCC: CCCC. fCCC: .CGCCCCCCCG1 :CCCCCCCCGL. .CCCCCCCCCC
|
38
|
+
:G1ii. :ii,:1iC. 1CCCCLt1ff ;CL1:,,:tCCCC, tCCCL :CCCCC CCCC. 1GCCGL;;tCCCCC. CCCCC;,,iCCCG; .CCCCffff1
|
39
|
+
1C11: ;1: :11C .CCCC; . :CCCL .CCCC, LCCCCC; tCCC1 .GCCG, LCCC1 LCCCi .CCCL .CCCG,
|
40
|
+
1Ltt, 1. itft .CCCC. iLCCCCCCCCCL 1CCCL iCCCLCCC .CCCC ,GCCG. 1CCCf .GCCCLLLLLCGCCCf .CCCG,
|
41
|
+
,Gtf: :; ,ftG .CCCC. tCCCCL1ii1CCCL CCCCi.CCC1,CCCL CCCC, ,GCCG. 1CCCf .GCCCGGGGGGCL1. .CCCG,
|
42
|
+
;CLf iCCt, .LLG. .CCCC. .CCCC. ,CCCL GCCCCCCC 1CCCCCCC; ,GCCG. 1CCCf LCCCt .CCCG:
|
43
|
+
;CCf .LGGGGCt. .CCG. .CCCC. LCCCC1;;1CCCC; .CCCCCC. fCCCCC1 ,GCCG. 1CCCf LCCCGL1;;itCG, tCCCCCffLG
|
44
|
+
.GCC. tt.;CGGGGC; 1CCC fCCC. ;CCCCCCCCCL. LCCG. 1CCCi LGCG. ,CCCf .fGCCCCCCCG1 ;GGCCCCGt
|
45
|
+
iGCC. iCCCCCCCCCt iCCG: .... . . .,,,. ..
|
46
|
+
iGCCf.fCCCCCCCC,:CCCG:
|
47
|
+
.LCCCCLCCCCCCCCCCGt
|
48
|
+
iCGCCCCCCCCGL:
|
@@ -0,0 +1 @@
|
|
1
|
+
<footer role="contentinfo"></footer>
|
@@ -0,0 +1 @@
|
|
1
|
+
<header role="banner"></header>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
//---------------------------------------------------------------//
|
2
|
+
// Imports
|
3
|
+
//---------------------------------------------------------------//
|
4
|
+
|
5
|
+
@import "wck";
|
6
|
+
|
7
|
+
//---------------------------------------------------------------//
|
8
|
+
// Plugins
|
9
|
+
//---------------------------------------------------------------//
|
10
|
+
|
11
|
+
//---------------------------------------------------------------//
|
12
|
+
// Theme
|
13
|
+
//---------------------------------------------------------------//
|
14
|
+
|
15
|
+
@import "theme/fonts";
|
16
|
+
@import "theme/theme";
|
17
|
+
|
18
|
+
// Typography
|
19
|
+
|
20
|
+
// Forms
|
21
|
+
|
22
|
+
// Buttons
|
23
|
+
|
24
|
+
// Tables
|
25
|
+
|
26
|
+
//---------------------------------------------------------------//
|
27
|
+
// Layouts
|
28
|
+
//---------------------------------------------------------------//
|
29
|
+
|
30
|
+
//---------------------------------------------------------------//
|
31
|
+
// Modules
|
32
|
+
//---------------------------------------------------------------//
|
@@ -0,0 +1,22 @@
|
|
1
|
+
//---------------------------------------------------------------//
|
2
|
+
// Typography
|
3
|
+
//---------------------------------------------------------------//
|
4
|
+
|
5
|
+
// Fonts
|
6
|
+
// ------------------------------------------//
|
7
|
+
$font-brand: Arial, sans-serif;
|
8
|
+
|
9
|
+
|
10
|
+
//---------------------------------------------------------------//
|
11
|
+
// Color Pallette
|
12
|
+
//---------------------------------------------------------------//
|
13
|
+
|
14
|
+
// Brand
|
15
|
+
// ------------------------------------------//
|
16
|
+
$color-brand-primary: #FFF;
|
17
|
+
$color-brand-secondary: #000;
|
18
|
+
|
19
|
+
/// Base
|
20
|
+
// ------------------------------------------//
|
21
|
+
$color-base-dark: #000;
|
22
|
+
$color-base-light: #fff;
|
data/lib/wck.rb
ADDED
data/lib/wck/version.rb
ADDED
data/wck.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'wck/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "wck"
|
8
|
+
spec.version = Wck::VERSION
|
9
|
+
spec.authors = ["Daniel Upton", "Simon Sturgess"]
|
10
|
+
spec.email = ["dupton@rawnet.com", "ssturgess@rawnet.com"]
|
11
|
+
spec.summary = %q{Website Creation Kit}
|
12
|
+
spec.description = %q{A curated collection of CSS, HTML and SASS mixins for getting a rails front end off ground, rawnet style.}
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
spec.add_dependency "bourbon", "~> 3.1"
|
23
|
+
spec.add_dependency "rails", ">= 3.1.0"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,125 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wck
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel Upton
|
8
|
+
- Simon Sturgess
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.5'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.5'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: bourbon
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.1'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.1'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rails
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.1.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.1.0
|
70
|
+
description: A curated collection of CSS, HTML and SASS mixins for getting a rails
|
71
|
+
front end off ground, rawnet style.
|
72
|
+
email:
|
73
|
+
- dupton@rawnet.com
|
74
|
+
- ssturgess@rawnet.com
|
75
|
+
executables: []
|
76
|
+
extensions: []
|
77
|
+
extra_rdoc_files: []
|
78
|
+
files:
|
79
|
+
- .gitignore
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- app/assets/stylesheets/wck.css.scss
|
85
|
+
- app/assets/stylesheets/wck/_helpers.scss
|
86
|
+
- app/assets/stylesheets/wck/_mixins.scss
|
87
|
+
- app/assets/stylesheets/wck/_normalize.scss
|
88
|
+
- app/assets/stylesheets/wck/_variables.scss
|
89
|
+
- lib/generators/wck/install/install_generator.rb
|
90
|
+
- lib/generators/wck/install/templates/layouts/application.html.erb
|
91
|
+
- lib/generators/wck/install/templates/public/humans.txt
|
92
|
+
- lib/generators/wck/install/templates/public/robots.txt
|
93
|
+
- lib/generators/wck/install/templates/shared/_footer.html.erb
|
94
|
+
- lib/generators/wck/install/templates/shared/_header.html.erb
|
95
|
+
- lib/generators/wck/install/templates/stylesheets/application.css.scss
|
96
|
+
- lib/generators/wck/install/templates/stylesheets/theme/_fonts.scss
|
97
|
+
- lib/generators/wck/install/templates/stylesheets/theme/_theme.scss
|
98
|
+
- lib/wck.rb
|
99
|
+
- lib/wck/version.rb
|
100
|
+
- wck.gemspec
|
101
|
+
homepage:
|
102
|
+
licenses:
|
103
|
+
- MIT
|
104
|
+
metadata: {}
|
105
|
+
post_install_message:
|
106
|
+
rdoc_options: []
|
107
|
+
require_paths:
|
108
|
+
- lib
|
109
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
requirements: []
|
120
|
+
rubyforge_project:
|
121
|
+
rubygems_version: 2.0.3
|
122
|
+
signing_key:
|
123
|
+
specification_version: 4
|
124
|
+
summary: Website Creation Kit
|
125
|
+
test_files: []
|