skeletor_backbone 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/app/assets/images/skeletor/skeletor.png +0 -0
  4. data/app/assets/stylesheets/skeletor-preview.sass +17 -0
  5. data/app/assets/stylesheets/skeletor.sass +64 -13
  6. data/app/assets/stylesheets/skeletor/_css3.sass +16 -16
  7. data/app/assets/stylesheets/skeletor/_functions.sass +8 -8
  8. data/app/assets/stylesheets/skeletor/_mixins.sass +20 -18
  9. data/app/assets/stylesheets/skeletor/_modules.sass +6 -8
  10. data/app/assets/stylesheets/skeletor/_settings.sass +15 -8
  11. data/app/assets/stylesheets/skeletor/{base/debug.sass → core/_debug.sass} +10 -18
  12. data/app/assets/stylesheets/skeletor/{layout → core}/_grid.sass +0 -0
  13. data/app/assets/stylesheets/skeletor/core/_helpers.sass +142 -0
  14. data/app/assets/stylesheets/skeletor/{base/print.sass → core/_print.sass} +3 -1
  15. data/app/assets/stylesheets/skeletor/{base/reset.sass → core/_reset.sass} +6 -3
  16. data/app/assets/stylesheets/skeletor/{base/foundation.sass → core/base.sass} +81 -148
  17. data/app/assets/stylesheets/skeletor/core/content.sass +93 -0
  18. data/app/assets/stylesheets/skeletor/{layout/skeleton.sass → core/layout.sass} +45 -6
  19. data/app/assets/stylesheets/skeletor/globals/css3/_prefixer.sass +14 -14
  20. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_em.sass +8 -19
  21. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_modular_scale.sass +6 -16
  22. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_percent.sass +9 -20
  23. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_rem.sass +9 -20
  24. data/app/assets/stylesheets/skeletor/globals/functions/_strip_units.sass +6 -16
  25. data/app/assets/stylesheets/skeletor/globals/mixins/_font_size.sass +31 -0
  26. data/app/assets/stylesheets/skeletor/globals/mixins/_media_query.sass +2 -6
  27. data/app/assets/stylesheets/skeletor/globals/mixins/_rem.sass +6 -61
  28. data/app/assets/stylesheets/skeletor/globals/mixins/_vertical_spacing.sass +29 -0
  29. data/app/assets/stylesheets/skeletor/modules/_forms.sass +27 -0
  30. data/app/assets/stylesheets/skeletor/modules/_rules.sass +54 -0
  31. data/app/assets/stylesheets/skeletor/modules/_tables.sass +43 -0
  32. data/app/controllers/skeletor_backbone/skeletor_controller.rb +10 -0
  33. data/app/views/skeletor_backbone/skeletor/index.html.erb +445 -0
  34. data/config/routes.rb +5 -0
  35. data/lib/generators/skeletor/install_generator.rb +2 -1
  36. data/lib/skeletor_backbone.rb +2 -2
  37. data/lib/skeletor_backbone/version.rb +1 -1
  38. data/skeletor_backbone.gemspec +2 -2
  39. data/vendor/assets/stylesheets/normalize.css +177 -160
  40. data/vendor/assets/stylesheets/pesticide.sass +206 -0
  41. metadata +36 -25
  42. data/app/assets/stylesheets/skeletor/_all.sass +0 -5
  43. data/app/assets/stylesheets/skeletor/base/helpers.sass +0 -203
@@ -0,0 +1,29 @@
1
+ // Skeletor Vertical Spacing
2
+ // -> Shorthand for REM vertical spacing (margin-bottom)
3
+ //
4
+ // Available as:
5
+ // +skeletor-vertical-spacing()
6
+ // +s-vertical-spacing()
7
+ // +s-vs()
8
+ //
9
+ // -----------------------------------------------------------------------------
10
+
11
+ @import "skeletor/globals/mixins/rem"
12
+
13
+ // ----- Vertical Spacing Mixin ----- //
14
+ =skeletor-vertical-spacing($target)
15
+ +skeletor-rem(margin-bottom, $target)
16
+
17
+
18
+ // ----- Alias for Vertical Spacing Mixin ----- //
19
+ =s-vertical-spacing($target)
20
+ +skeletor-vertical-spacing($target)
21
+
22
+ =s-vs($target)
23
+ +skeletor-vertical-spacing($target)
24
+
25
+
26
+ // ----- If no-conflict set to allow simpler mixin name ----- //
27
+ // @if $no-conflict
28
+ // =vertical-spacing($target)
29
+ // +skeletor-vertical-spacing($target)
@@ -0,0 +1,27 @@
1
+ // Forms
2
+ // -> Module for styled `form` elements
3
+ //
4
+ // =============================================================================
5
+ // Table of Contents
6
+ // =============================================================================
7
+ //
8
+ // MODULE.....................Base module class
9
+ // MODIFIERS..................Modifiers to base module class
10
+ //
11
+
12
+ // -----------------------------------------------------------------------------
13
+ // :: MODULE
14
+ // -----------------------------------------------------------------------------
15
+ .form
16
+
17
+
18
+
19
+
20
+
21
+ // -----------------------------------------------------------------------------
22
+ // :: MODIFIERS
23
+ // -----------------------------------------------------------------------------
24
+
25
+ // ----- Fieldset with Border ----- //
26
+ .fieldset--bordered
27
+ border: 1px solid $light-gray
@@ -0,0 +1,54 @@
1
+ // Rules
2
+ // -> Module for styled `hr` elements
3
+ //
4
+ // =============================================================================
5
+ // Table of Contents
6
+ // =============================================================================
7
+ //
8
+ // IMPORTS....................Import Sass Settings and Functions
9
+ // MODULE.....................Base module class
10
+ // MODIFIERS..................Modifiers to base module class
11
+ //
12
+
13
+
14
+ // -----------------------------------------------------------------------------
15
+ // :: IMPORTS
16
+ // -----------------------------------------------------------------------------
17
+ @import "skeletor/globals/mixins/position"
18
+
19
+
20
+
21
+
22
+
23
+ // -----------------------------------------------------------------------------
24
+ // :: MODULE
25
+ // -----------------------------------------------------------------------------
26
+ .rule
27
+ @extend hr
28
+
29
+
30
+
31
+
32
+
33
+ // -----------------------------------------------------------------------------
34
+ // :: MODIFIERS
35
+ // -----------------------------------------------------------------------------
36
+ .rule--dotted
37
+ border-bottom-style: dotted
38
+
39
+ .rule--dashed
40
+ border-bottom-style: dashed
41
+
42
+ .rule--ornament
43
+ position: relative
44
+
45
+ &:after
46
+ +skeletor-position(absolute, 0px 0px 0 0px)
47
+ content: "\00A7"
48
+ line-height: 0
49
+ text-align: center
50
+
51
+ // Pass in arbitrary ornament through a data attribute.
52
+ // hr.rule--ornament{data-ornament="!"}
53
+ &[data-ornament]
54
+ content: attr(data-ornament)
@@ -0,0 +1,43 @@
1
+ // Tables
2
+ // -> Module for styled `table` elements
3
+ //
4
+ // =============================================================================
5
+ // Table of Contents
6
+ // =============================================================================
7
+ //
8
+ // MODULE.....................Base module class
9
+ // MODIFIERS..................Modifiers to base module class
10
+ //
11
+
12
+ // -----------------------------------------------------------------------------
13
+ // :: MODULE
14
+ // -----------------------------------------------------------------------------
15
+ .table
16
+
17
+
18
+
19
+
20
+
21
+ // -----------------------------------------------------------------------------
22
+ // :: MODIFIERS
23
+ // -----------------------------------------------------------------------------
24
+
25
+ // ----- Bordered Tables ----- //
26
+ .table--bordered
27
+ th, td
28
+ border: 1px solid $light-gray
29
+
30
+ &:empty
31
+ border: none
32
+
33
+ thead tr:last-child th
34
+ border-bottom-width: 2px
35
+
36
+ tbody tr th:last-of-type
37
+ border-right-width: 2px
38
+
39
+
40
+ // ----- Striped Tables ----- //
41
+ .table--striped
42
+ tbody tr:nth-of-type(odd)
43
+ background-color: $lightest-gray
@@ -0,0 +1,10 @@
1
+ module SkeletorBackbone
2
+ class SkeletorController < ActionController::Base
3
+
4
+ def index
5
+ params[:preview_style] = 'skeletor-preview' if params[:preview_style].blank? || params[:preview_style] == 'skeletor'
6
+ @preview_style = params[:preview_style]
7
+ end
8
+
9
+ end
10
+ end
@@ -0,0 +1,445 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Skeletor Preview</title>
6
+
7
+ <%= stylesheet_link_tag @preview_style %>
8
+
9
+ <style>
10
+ .cf:after {
11
+ clear: both;
12
+ content: '';
13
+ display: table;
14
+ }
15
+
16
+ .s-header {
17
+ background: #3975a7; /* #a2a9af, #778899, #bbc3cc, #c8cfd6, #3975a7*/
18
+ /* height: 120px;
19
+ padding: 10px;*/
20
+ margin-bottom: 20px;
21
+ }
22
+
23
+ .s-header h1 {
24
+ color: #eee;
25
+ margin-bottom: 0;
26
+ }
27
+
28
+ .s-header img {
29
+ float: left;
30
+ margin-right: 40px;
31
+ height: 120px;
32
+ width: auto;
33
+ }
34
+
35
+ .s-lead {
36
+ font-size: 20px;
37
+ color: #eee;
38
+ margin: 0;
39
+ }
40
+
41
+ .s-section {
42
+ margin: 0 auto;
43
+ width: 95%;
44
+ max-width: 1140px;
45
+ }
46
+
47
+ form {
48
+ width: 50%;
49
+ }
50
+
51
+ </style>
52
+ </head>
53
+
54
+ <body>
55
+
56
+ <header class="s-header cf">
57
+ <%= image_tag "skeletor/skeletor.png" %>
58
+ <h1>Skeletor Preview</h1>
59
+ <p class="s-lead">This preview page is used for visually testing various HTML elements</p>
60
+ </header>
61
+
62
+ <section class="s-section">
63
+
64
+ <h3>Paragraphs</h3>
65
+
66
+ <p>Bacon ipsum dolor sit amet pig salami chuck, fatback biltong andouille cow
67
+ jerky. Filet mignon brisket rump, landjaeger ground round short ribs shankle
68
+ ribeye meatloaf pancetta jerky. Boudin turkey meatball t-bone pig, beef ribs
69
+ spare ribs shank chuck kevin.</p>
70
+
71
+ <p>Short loin pork loin salami sausage, corned beef strip steak bacon tongue.
72
+ Shankle pork belly salami chuck porchetta venison flank, shank andouille jerky
73
+ pancetta. Ham shankle turducken pork ground round. Turducken sirloin t-bone,
74
+ fatback jerky pastrami biltong tenderloin kielbasa kevin pancetta doner.</p>
75
+
76
+ <hr class="rule--ornament">
77
+
78
+ <h3>Headings</h3>
79
+
80
+ <h1>Heading 1</h1>
81
+ <h2>Heading 2</h2>
82
+ <h3>Heading 3</h3>
83
+ <h4>Heading 4</h4>
84
+ <h5>Heading 5</h5>
85
+ <h6>Heading 6</h6>
86
+
87
+ <hr class="rule--ornament">
88
+
89
+ <h3>Unordered List</h3>
90
+
91
+ <ul>
92
+ <li>Unordered List Item 1</li>
93
+ <li>Unordered List Item 2</li>
94
+ <ul>
95
+ <li>Unordered List Item 2.1</li>
96
+ <li>Unordered List Item 2.2</li>
97
+ <ul>
98
+ <li>Unordered List Item 2.2.1</li>
99
+ <li>Unordered List Item 2.2.2</li>
100
+ <li>Unordered List Item 2.2.3</li>
101
+ </ul>
102
+ </ul>
103
+ <li>Unordered List Item 3</li>
104
+ <ul>
105
+ <li>Unordered List Item 3.1</li>
106
+ <li>Unordered List Item 3.2</li>
107
+ </ul>
108
+ <li>Unordered List Item 4</li>
109
+ </ul>
110
+
111
+ <hr class="rule--ornament">
112
+
113
+ <h3>Ordered List</h3>
114
+
115
+ <ol>
116
+ <li>Ordered List Item 1</li>
117
+ <li>Ordered List Item 2</li>
118
+ <ol>
119
+ <li>Ordered List Item 2.1</li>
120
+ <li>Ordered List Item 2.2</li>
121
+ <ol>
122
+ <li>Ordered List Item 2.2.1</li>
123
+ <li>Ordered List Item 2.2.2</li>
124
+ <li>Ordered List Item 2.2.3</li>
125
+ </ol>
126
+ </ol>
127
+ <li>Ordered List Item 3</li>
128
+ <ol>
129
+ <li>Ordered List Item 3.1</li>
130
+ <li>Ordered List Item 3.2</li>
131
+ </ol>
132
+ <li>Ordered List Item 4</li>
133
+ </ol>
134
+
135
+ <hr class="rule--ornament">
136
+
137
+ <h3>Definition List</h3>
138
+
139
+ <dl>
140
+ <dt>Topic One</dt>
141
+ <dd>This is the definition for Topic One.</dd>
142
+ <dt>Topic Two</dt>
143
+ <dd>This is the definition for Topic Two.</dd>
144
+ <dt>Topic Three</dt>
145
+ <dd>This is the definition for Topic Three.</dd>
146
+ </dl>
147
+
148
+ <hr class="rule--ornament">
149
+
150
+ <h3>Tables</h3>
151
+
152
+ <table>
153
+ <caption>Default Table - No Classes</caption>
154
+ <thead>
155
+ <tr>
156
+ <th>#</th>
157
+ <th>Column 1</th>
158
+ <th>Column 2</th>
159
+ <th>Column 3</th>
160
+ </tr>
161
+ </thead>
162
+
163
+ <tbody>
164
+ <tr>
165
+ <td>1</td>
166
+ <td>Item One</td>
167
+ <td>$17.53</td>
168
+ <td>true</td>
169
+ </tr>
170
+
171
+ <tr>
172
+ <td>2</td>
173
+ <td>Item Two</td>
174
+ <td>$9.71</td>
175
+ <td>true</td>
176
+ </tr>
177
+
178
+ <tr>
179
+ <td>3</td>
180
+ <td>Item 3</td>
181
+ <td>$23.55</td>
182
+ <td>false</td>
183
+ </tr>
184
+
185
+ <tr>
186
+ <td>4</td>
187
+ <td>Item Four</td>
188
+ <td>$12.04</td>
189
+ <td>false</td>
190
+ </tr>
191
+
192
+ <tr>
193
+ <td>5</td>
194
+ <td>Item Five</td>
195
+ <td>$21.93</td>
196
+ <td>true</td>
197
+ </tr>
198
+ </tbody>
199
+ </table>
200
+
201
+ <table class="table--bordered">
202
+ <caption>Table - Bordered</caption>
203
+ <thead>
204
+ <tr>
205
+ <th>#</th>
206
+ <th>Column 1</th>
207
+ <th>Column 2</th>
208
+ <th>Column 3</th>
209
+ </tr>
210
+ </thead>
211
+
212
+ <tbody>
213
+ <tr>
214
+ <td>1</td>
215
+ <td>Item One</td>
216
+ <td>$17.53</td>
217
+ <td>true</td>
218
+ </tr>
219
+
220
+ <tr>
221
+ <td>2</td>
222
+ <td>Item Two</td>
223
+ <td>$9.71</td>
224
+ <td>true</td>
225
+ </tr>
226
+
227
+ <tr>
228
+ <td>3</td>
229
+ <td>Item 3</td>
230
+ <td>$23.55</td>
231
+ <td>false</td>
232
+ </tr>
233
+
234
+ <tr>
235
+ <td>4</td>
236
+ <td>Item Four</td>
237
+ <td>$12.04</td>
238
+ <td>false</td>
239
+ </tr>
240
+
241
+ <tr>
242
+ <td>5</td>
243
+ <td>Item Five</td>
244
+ <td>$21.93</td>
245
+ <td>true</td>
246
+ </tr>
247
+ </tbody>
248
+ </table>
249
+
250
+ <table class="table--striped">
251
+ <caption>Table - Striped</caption>
252
+ <thead>
253
+ <tr>
254
+ <th>#</th>
255
+ <th>Column 1</th>
256
+ <th>Column 2</th>
257
+ <th>Column 3</th>
258
+ </tr>
259
+ </thead>
260
+
261
+ <tbody>
262
+ <tr>
263
+ <td>1</td>
264
+ <td>Item One</td>
265
+ <td>$17.53</td>
266
+ <td>true</td>
267
+ </tr>
268
+
269
+ <tr>
270
+ <td>2</td>
271
+ <td>Item Two</td>
272
+ <td>$9.71</td>
273
+ <td>true</td>
274
+ </tr>
275
+
276
+ <tr>
277
+ <td>3</td>
278
+ <td>Item 3</td>
279
+ <td>$23.55</td>
280
+ <td>false</td>
281
+ </tr>
282
+
283
+ <tr>
284
+ <td>4</td>
285
+ <td>Item Four</td>
286
+ <td>$12.04</td>
287
+ <td>false</td>
288
+ </tr>
289
+
290
+ <tr>
291
+ <td>5</td>
292
+ <td>Item Five</td>
293
+ <td>$21.93</td>
294
+ <td>true</td>
295
+ </tr>
296
+ </tbody>
297
+ </table>
298
+
299
+ <hr class="rule--ornament">
300
+
301
+ <h3>Forms</h3>
302
+
303
+ <form action="">
304
+ <fieldset>
305
+ <legend>Default Form - No Classes</legend>
306
+
307
+ <p>
308
+ <label>
309
+ <span>Required Text Input: </span>
310
+ <strong><abbr title="required">*</abbr></strong>
311
+ <input type="text" placeholder="Required Text input" required>
312
+ </label>
313
+ </p>
314
+
315
+ <p>
316
+ <label>
317
+ <span>Text Input: </span>
318
+ <input type="text" placeholder="Text input">
319
+ </label>
320
+ </p>
321
+
322
+ <p>
323
+ <label>
324
+ <span>Disabled Text Input: </span>
325
+ <input type="text" placeholder="Text input" disabled>
326
+ </label>
327
+ </p>
328
+
329
+ <p>
330
+ <label>
331
+ <span>Select input: </span>
332
+ <select>
333
+ <option>Option 1</option>
334
+ <option>Option 2</option>
335
+ <option>Option 3</option>
336
+ </select>
337
+ </label>
338
+ </p>
339
+
340
+ <p>
341
+ <label>
342
+ <input type="checkbox">
343
+ <span>Checkbox 1 </span>
344
+ </label>
345
+
346
+ <br>
347
+
348
+ <label>
349
+ <input type="checkbox">
350
+ <span>Checkbox 2 </span>
351
+ </label>
352
+ </p>
353
+
354
+ <p>
355
+ <label>
356
+ <input type="radio" name="rbox">
357
+ <span>Radio 1 </span>
358
+ </label>
359
+
360
+ <br>
361
+
362
+ <label>
363
+ <input type="radio" name="rbox">
364
+ <span>Radio 2 </span>
365
+ </label>
366
+ </p>
367
+
368
+ <p>
369
+ <label>Text area 1
370
+ <textarea name="textarea" rows="10" placeholder="Text area"></textarea>
371
+ </label>
372
+ </p>
373
+
374
+ <p>
375
+ <input type="submit" class="button button-primary">
376
+ <input type="reset" class="button" value="Clear">
377
+ </p>
378
+ </fieldset>
379
+ </form>
380
+
381
+ <form action="">
382
+ <fieldset class="fieldset--bordered">
383
+ <legend>Form - Fieldset Border</legend>
384
+ <p>
385
+ <label>
386
+ <span>Text Input: </span>
387
+ <input type="text" placeholder="Text input">
388
+ </label>
389
+ </p>
390
+
391
+ <p>
392
+ <input type="submit" class="button button-primary">
393
+ <input type="reset" class="button" value="Clear">
394
+ </p>
395
+ </fieldset>
396
+ </form>
397
+
398
+
399
+ <hr class="rule--ornament">
400
+
401
+ <h3>Blockquote</h3>
402
+
403
+ <blockquote cite="http://www.imdb.com/character/ch0000672/quotes">
404
+ <p>Some random quote by some random person.</p>
405
+ <footer><a href="">Random Person</a></footer>
406
+ </blockquote>
407
+
408
+ <hr class="rule--ornament">
409
+
410
+ <h3>Pre Code</h3>
411
+
412
+ <pre><code>&lt;p&gt;This is an example for pre code tags.&lt;/p&gt;</code></pre>
413
+
414
+ <hr class="rule--ornament">
415
+
416
+ <h3>Inline Text Formatting</h3>
417
+
418
+ <p>This is the <abbr title="Abbreviation">ABBR</abbr> element.</p>
419
+ <p>This is the <b>b</b> element.</p>
420
+ <p>This is the <cite>cite</cite> element.</p>
421
+ <p>This is the <code>code</code> element.</p>
422
+ <p>This is the <del>del</del> element.</p>
423
+ <p>This is the <dfn>dfn</dfn> element.</p>
424
+ <p>This is the <em>em</em> element.</p>
425
+ <p>This is the <i>i</i> element.</p>
426
+ <p>This is the <ins>ins</ins> element.</p>
427
+ <p>This is the <kbd>kbd</kbd> element.</p>
428
+ <p>This is the
429
+ <mark>mark</mark>
430
+ element.</p>
431
+ <p>This is the <samp>samp</samp> element.</p>
432
+ <p>This is the <small>small</small> element.</p>
433
+ <p>This is the <strong>strong</strong> element.</p>
434
+ <p>This is the <sub>sub</sub> element.</p>
435
+ <p>This is the <sup>sup</sup> element.</p>
436
+ <p>This is the <var>var</var> element.</p>
437
+
438
+ </section>
439
+
440
+ <footer class="s-footer">
441
+
442
+ </footer>
443
+
444
+ </body>
445
+ </html>