skeletor_backbone 0.0.3

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.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +43 -0
  6. data/Rakefile +1 -0
  7. data/app/assets/stylesheets/skeletor.sass +21 -0
  8. data/app/assets/stylesheets/skeletor/_all.sass +5 -0
  9. data/app/assets/stylesheets/skeletor/_css3.sass +26 -0
  10. data/app/assets/stylesheets/skeletor/_functions.sass +13 -0
  11. data/app/assets/stylesheets/skeletor/_mixins.sass +23 -0
  12. data/app/assets/stylesheets/skeletor/_settings.sass +153 -0
  13. data/app/assets/stylesheets/skeletor/base/debug.sass +132 -0
  14. data/app/assets/stylesheets/skeletor/base/foundation.sass +537 -0
  15. data/app/assets/stylesheets/skeletor/base/helpers.sass +203 -0
  16. data/app/assets/stylesheets/skeletor/base/print.sass +46 -0
  17. data/app/assets/stylesheets/skeletor/base/reset.sass +125 -0
  18. data/app/assets/stylesheets/skeletor/globals/css3/_animation.sass +34 -0
  19. data/app/assets/stylesheets/skeletor/globals/css3/_appearance.sass +39 -0
  20. data/app/assets/stylesheets/skeletor/globals/css3/_backface_visibility.sass +36 -0
  21. data/app/assets/stylesheets/skeletor/globals/css3/_border_radius.sass +75 -0
  22. data/app/assets/stylesheets/skeletor/globals/css3/_box_shadow.sass +38 -0
  23. data/app/assets/stylesheets/skeletor/globals/css3/_box_sizing.sass +40 -0
  24. data/app/assets/stylesheets/skeletor/globals/css3/_flexbox.sass +179 -0
  25. data/app/assets/stylesheets/skeletor/globals/css3/_gradients.sass +54 -0
  26. data/app/assets/stylesheets/skeletor/globals/css3/_hyphens.sass +38 -0
  27. data/app/assets/stylesheets/skeletor/globals/css3/_perspective.sass +50 -0
  28. data/app/assets/stylesheets/skeletor/globals/css3/_prefixer.sass +76 -0
  29. data/app/assets/stylesheets/skeletor/globals/css3/_tab_size.sass +39 -0
  30. data/app/assets/stylesheets/skeletor/globals/css3/_text_shadow.sass +38 -0
  31. data/app/assets/stylesheets/skeletor/globals/css3/_transform.sass +112 -0
  32. data/app/assets/stylesheets/skeletor/globals/css3/_transition.sass +35 -0
  33. data/app/assets/stylesheets/skeletor/globals/css3/_user_select.sass +39 -0
  34. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_em.sass +43 -0
  35. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_modular_scale.sass +85 -0
  36. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_percent.sass +42 -0
  37. data/app/assets/stylesheets/skeletor/globals/functions/_calculate_rem.sass +42 -0
  38. data/app/assets/stylesheets/skeletor/globals/functions/_strip_units.sass +38 -0
  39. data/app/assets/stylesheets/skeletor/globals/mixins/_accessibility.sass +49 -0
  40. data/app/assets/stylesheets/skeletor/globals/mixins/_grid_pull.sass +311 -0
  41. data/app/assets/stylesheets/skeletor/globals/mixins/_grid_push.sass +313 -0
  42. data/app/assets/stylesheets/skeletor/globals/mixins/_grid_widths.sass +275 -0
  43. data/app/assets/stylesheets/skeletor/globals/mixins/_hidpi.sass +38 -0
  44. data/app/assets/stylesheets/skeletor/globals/mixins/_media_query.sass +71 -0
  45. data/app/assets/stylesheets/skeletor/globals/mixins/_opacity.sass +36 -0
  46. data/app/assets/stylesheets/skeletor/globals/mixins/_position.sass +65 -0
  47. data/app/assets/stylesheets/skeletor/globals/mixins/_rem.sass +102 -0
  48. data/app/assets/stylesheets/skeletor/globals/mixins/_retina_image.sass +53 -0
  49. data/app/assets/stylesheets/skeletor/globals/mixins/_rgba.sass +37 -0
  50. data/app/assets/stylesheets/skeletor/globals/mixins/_silent_relative.sass +41 -0
  51. data/app/assets/stylesheets/skeletor/globals/mixins/_size.sass +71 -0
  52. data/app/assets/stylesheets/skeletor/globals/mixins/_triangle.sass +69 -0
  53. data/app/assets/stylesheets/skeletor/globals/mixins/_truncate_text.sass +41 -0
  54. data/app/assets/stylesheets/skeletor/globals/settings/_easing.sass +47 -0
  55. data/app/assets/stylesheets/skeletor/globals/settings/_font_stacks.sass +65 -0
  56. data/app/assets/stylesheets/skeletor/globals/settings/_html5_input_types.sass +51 -0
  57. data/app/assets/stylesheets/skeletor/layout/_grid.sass +147 -0
  58. data/app/assets/stylesheets/skeletor/layout/skeleton.sass +58 -0
  59. data/lib/generators/skeletor/install_generator.rb +26 -0
  60. data/lib/sass/sass_extend.rb +107 -0
  61. data/lib/skeletor_backbone.rb +23 -0
  62. data/lib/skeletor_backbone/version.rb +3 -0
  63. data/skeletor_backbone.gemspec +26 -0
  64. data/vendor/assets/stylesheets/normalize.css +406 -0
  65. metadata +163 -0
@@ -0,0 +1,537 @@
1
+ // Skeletor Base Styles
2
+ // These are good starting 'default' styles for a base stylesheet.
3
+ //
4
+ // =============================================================================
5
+ // Table of Contents
6
+ // =============================================================================
7
+ //
8
+ // IMPORTS.....................Import Sass Settings and Functions
9
+ // CLEARFIX....................Clearfix: contain floats
10
+ // VERTICAL RHYTHM.............Consistent vertical rhythm, via margin-bottom
11
+ // MAIN........................Main Elements
12
+ // HEADINGS....................Heading Elements and corresponding classes
13
+ // PARAGRAPHS..................Paragraph Elements
14
+ // HORIZONTAL RULES............Horizontal Rules and corresponding classes
15
+ // LINKS.......................Anchor/Link Elements
16
+ // IMAGES & OBJECTS............Image, Objects, and Embeds
17
+ // BLOCKQUOTE..................Blockquote style
18
+ // CODE........................Preformatted text and other code styles
19
+ // LISTS.......................List Elements
20
+ // TABLES......................Table Elements
21
+ // FORMS.......................Form Elements
22
+ //
23
+
24
+
25
+ // -----------------------------------------------------------------------------
26
+ // :: IMPORTS
27
+ // -----------------------------------------------------------------------------
28
+ @import "skeletor/globals/mixins/position"
29
+ @import "skeletor/globals/mixins/rem"
30
+ @import "skeletor/globals/mixins/rgba"
31
+ @import "skeletor/globals/mixins/media_query"
32
+ @import "skeletor/globals/css3/prefixer"
33
+ @import "skeletor/globals/css3/transition"
34
+ @import "skeletor/globals/css3/border_radius"
35
+ @import "skeletor/globals/css3/box_shadow"
36
+ @import "skeletor/globals/css3/tab_size"
37
+ @import "skeletor/globals/css3/hyphens"
38
+
39
+
40
+
41
+
42
+
43
+ // -----------------------------------------------------------------------------
44
+ // :: CLEARFIX
45
+ // -----------------------------------------------------------------------------
46
+
47
+ // Micro clearfix, as per: css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
48
+ // Extend the clearfix class with Sass to avoid the `.cf` class appearing over and over in your markup.
49
+ %clearfix
50
+ &:after
51
+ content: ""
52
+ clear: both
53
+ display: table
54
+
55
+ .cf
56
+ @extend %clearfix
57
+
58
+
59
+
60
+
61
+
62
+ // -----------------------------------------------------------------------------
63
+ // :: VERTICAL RHYTHM
64
+ // -----------------------------------------------------------------------------
65
+
66
+ // Where `margin-bottom` is concerned, this value will be the same as the
67
+ // base line-height. This allows us to keep a consistent vertical rhythm.
68
+ // As per: csswizardry.com/2012/06/single-direction-margin-declarations
69
+
70
+ %sass-margin-bottom
71
+ +skeletor-vertical-spacing($base-line-height)
72
+
73
+ // Set 'vertical rhythm' on Base elements
74
+ h1,h2,h3,h4,h5,h6,hgroup,
75
+ ul,ol,dl,blockquote,p,address,
76
+ table, fieldset,figure,pre, hr
77
+ @extend %sass-margin-bottom
78
+
79
+
80
+ // -----------------------------------------------------------------------------
81
+ // :: MAIN
82
+ // -----------------------------------------------------------------------------
83
+ html
84
+ font: #{skeletor-calculate-em($base-font-size)}/#{$line-height-ratio} $base-font-family
85
+ overflow-y: scroll
86
+ text-size-adjust: 100%
87
+ // TODO: Does font-size need to adjust by media-query?
88
+
89
+ html, body
90
+ height: 100%
91
+ min-height: 100%
92
+
93
+ html, button, input,
94
+ select, textarea
95
+ color: $base-font-color
96
+
97
+ // Highlighting - Remove text-shadow in selection h5bp.com/i
98
+ ::-moz-selection
99
+ background: #b3d4fc
100
+ text-shadow: none
101
+
102
+ ::selection
103
+ background: #b3d4fc
104
+ text-shadow: none
105
+
106
+ // change `background` for text selections when browser is unfocused
107
+ ::selection:window-inactive
108
+ background: #dedede
109
+
110
+ // remove background on images when selected
111
+ img::selection
112
+ background: transparent
113
+
114
+ img::-moz-selection
115
+ background: transparent
116
+
117
+
118
+
119
+
120
+
121
+ // -----------------------------------------------------------------------------
122
+ // :: HEADINGS
123
+ // -----------------------------------------------------------------------------
124
+
125
+ // As per: csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css
126
+ // When we define a heading we also define a corresponding class to go with it.
127
+ // This allows us to apply, say, `class=kilo` to a `h3`.
128
+
129
+ // Use `text-rendering` with caution - http://cbrac.co/SJt8p1
130
+ h1, h2, h3, h4, h5, h6
131
+ color: $header-font-color
132
+ font-family: $header-font-family
133
+ font-weight: 700
134
+ text-rendering: optimizeLegibility
135
+
136
+ h1, .kilo
137
+ +skeletor-font-size($h1-size)
138
+ h2, .hecto
139
+ +skeletor-font-size($h2-size)
140
+ h3, .deca
141
+ +skeletor-font-size($h3-size)
142
+ h4, .deci
143
+ +skeletor-font-size($h4-size)
144
+ h5, .centi
145
+ +skeletor-font-size($h5-size)
146
+ h6, .milli
147
+ +skeletor-font-size($h6-size)
148
+
149
+ // Larger font-sizes
150
+ .tera
151
+ +skeletor-font-size($tera-size)
152
+ .giga
153
+ +skeletor-font-size($giga-size)
154
+ .mega
155
+ +skeletor-font-size($mega-size)
156
+
157
+ //Smaller font-sizes
158
+ .micro
159
+ +skeletor-font-size($micro-size)
160
+ .nano
161
+ +skeletor-font-size($nano-size)
162
+ .pico
163
+ +skeletor-font-size($pico-size)
164
+
165
+
166
+
167
+
168
+
169
+ // -----------------------------------------------------------------------------
170
+ // :: PARAGRAPHS
171
+ // -----------------------------------------------------------------------------
172
+ p
173
+ color: $base-font-color
174
+ font-family: inherit
175
+
176
+
177
+
178
+
179
+
180
+ // -----------------------------------------------------------------------------
181
+ // :: HORIZONTAL RULES
182
+ // -----------------------------------------------------------------------------
183
+ // A better looking horizontal rule
184
+ hr, .rule
185
+ +skeletor-vertical-spacing($base-line-height - 2px)
186
+ border: none
187
+ border-bottom-width: 1px
188
+ border-bottom-style: solid
189
+ color: $gray
190
+ //display: block
191
+
192
+ // Extends `hr` element/class
193
+ .rule--dotted
194
+ border-bottom-style: dotted
195
+ .rule--dashed
196
+ border-bottom-style: dashed
197
+
198
+ // Extend `hr` element/class and adds section sign
199
+ .rule--ornament
200
+ position: relative
201
+
202
+ &:after
203
+ +skeletor-position(absolute, 0px 0px 0 0px)
204
+ content: "\00A7"
205
+ line-height: 0
206
+ text-align: center
207
+
208
+ // Pass in arbitrary ornament through a data attribute.
209
+ // hr.rule--ornament{data-ornament="!"}
210
+ &[data-ornament]
211
+ content: attr(data-ornament)
212
+
213
+
214
+
215
+
216
+
217
+ // -----------------------------------------------------------------------------
218
+ // :: LINKS
219
+ // -----------------------------------------------------------------------------
220
+ // remove gray background color from active links in ie 10
221
+ a
222
+ +skeletor-transition(all .3s ease-in-out)
223
+ background: transparent
224
+ color: $base-link-color
225
+ font-family: inherit
226
+ line-height: inherit
227
+ text-decoration: none
228
+
229
+ &:hover, &:focus
230
+ color: $hover-link-color
231
+
232
+ &:focus, &:hover, &:active
233
+ outline: none
234
+
235
+ img
236
+ border: none
237
+
238
+
239
+
240
+
241
+
242
+ // -----------------------------------------------------------------------------
243
+ // :: IMAGES & OBJECTS
244
+ // -----------------------------------------------------------------------------
245
+ // Fluid width audio and video elements
246
+ audio, video
247
+ width: 100%
248
+
249
+ // Fluid width media that mantains their aspect ratios
250
+ img, video
251
+ height: auto
252
+ max-width: 100%
253
+ width: auto\9
254
+
255
+ img
256
+ vertical-align: middle
257
+ -ms-interpolation-mode: bicubic
258
+
259
+ // Fluid Objects & Embeds
260
+ object, embed
261
+ height: 100%
262
+ max-width: 100%
263
+
264
+ // Non-fluid images/Objects/Embeds if `width` and/or `height` specified.
265
+ img[width], img[height],
266
+ object[width], object[height],
267
+ embed[width], object[height]
268
+ max-width: none
269
+
270
+ // Images in `figure` elements.
271
+ figure > img
272
+ display: block
273
+
274
+ figcaption
275
+ font-size: 75%
276
+ font-style: italic
277
+ margin-top: 0.563rem
278
+
279
+ // Fix SVG Height issue in Webkit browsers
280
+ svg
281
+ display: block
282
+ max-height: 100%
283
+ max-width: 100%
284
+
285
+
286
+
287
+
288
+
289
+ // -----------------------------------------------------------------------------
290
+ // :: BLOCKQUOTE
291
+ // -----------------------------------------------------------------------------
292
+ blockquote
293
+ padding-left: 1rem
294
+ border-left: 5px solid #e5e5e5
295
+ font-style: italic
296
+ font-family: $garamond
297
+
298
+ p
299
+ margin: 0
300
+ + p
301
+ margin-top: 1rem
302
+
303
+ // Use footer tag over cite inside blockquotes - http://cbrac.co/TCVK4P
304
+ footer, cite
305
+ color: $darker-gray
306
+ font-style: italic
307
+ font-size: 0.8125rem
308
+
309
+ // Add an m-dash character before the footer or cit tags
310
+ &:before
311
+ content: "\2014 \2009"
312
+
313
+
314
+
315
+
316
+
317
+ // -----------------------------------------------------------------------------
318
+ // :: CODE
319
+ // -----------------------------------------------------------------------------
320
+ // Correct `font-family` set oddly in Safari 5 and Chrome
321
+ code, kbd, pre, samp
322
+ color: $darkest-gray
323
+ font-family: $monospace
324
+
325
+ code, kbd
326
+ font-size: 75%
327
+
328
+ code
329
+ +skeletor-border-radius(3px)
330
+ background: $lightest-gray
331
+ border: 1px solid $light-gray
332
+ padding: 0 0.3rem
333
+ white-space: nowrap
334
+
335
+ // Increase `padding` at larger viewport widths
336
+ @if $responsive
337
+ +skeletor-media-query(palm)
338
+ code
339
+ padding: 0.1rem 0.3rem
340
+
341
+ kbd
342
+ +skeletor-border-radius(4px)
343
+ +skeletor-box-shadow(0 1px 0 $light-gray, inset 0 0 0 1px $white)
344
+ background: $lightest-gray
345
+ border: 1px solid $light-gray
346
+ margin-bottom: 1px
347
+ padding: 0 0.3rem
348
+ position: relative
349
+ top: -1px
350
+ white-space: nowrap
351
+
352
+ // Increase `padding` at larger viewport widths
353
+ @if $responsive
354
+ +skeletor-media-query(palm)
355
+ kbd
356
+ padding: 0.1rem 0.3rem
357
+
358
+ pre
359
+ +skeletor-box-shadow(inset 0 0 5px hsla(0, 0%, 0%, 0.6))
360
+ +skeletor-tab-size(4)
361
+ +skeletor-hyphens(none)
362
+ background: $black
363
+ color: $gray
364
+ overflow: auto
365
+ padding: 1rem
366
+ position: relative
367
+ white-space: pre
368
+ word-wrap: normal
369
+ word-break: normal
370
+
371
+ // Reset above <code> styles when nested inside <pre> tags
372
+ pre code
373
+ +skeletor-border-radius(0)
374
+ background: transparent
375
+ border: none
376
+ color: inherit
377
+ display: block
378
+ height: 100%
379
+ margin: 0
380
+ overflow: auto
381
+ padding: 0
382
+ white-space: pre
383
+
384
+
385
+
386
+
387
+
388
+ // -----------------------------------------------------------------------------
389
+ // :: LISTS
390
+ // -----------------------------------------------------------------------------
391
+ // Where `margin-left` is concerned try and indent elements by a consistent amount.
392
+ ul, ol, dd
393
+ +skeletor-rem(margin-left, (2 * $base-line-height))
394
+
395
+ // Remove Vertical spacing from nested lists.
396
+ li
397
+ > ul, ol
398
+ margin-bottom: 0
399
+
400
+ dl dt
401
+ color: $black
402
+ font-weight: 700
403
+
404
+ // Nested list-style types for ordered lists
405
+ ol
406
+ list-style: decimal
407
+ ol
408
+ list-style: upper-alpha
409
+ ol
410
+ list-style: lower-roman
411
+ ol
412
+ list-style: lower-alpha
413
+
414
+ nav ul, nav ol
415
+ list-style: none
416
+
417
+
418
+
419
+
420
+ // -----------------------------------------------------------------------------
421
+ // :: TABLES
422
+ // -----------------------------------------------------------------------------
423
+ table
424
+ empty-cells: show
425
+ max-width: 100%
426
+ width: 100%
427
+
428
+ table th, table td
429
+ overflow: visible
430
+ +skeletor-rem(padding, ($base-line-height / 3))
431
+ text-align: left
432
+ vertical-align: top
433
+ @if $responsive
434
+ +skeletor-media-query(palm)
435
+ +skeletor-rem(padding, ($base-line-height / 2))
436
+
437
+ table th, table tfoot td
438
+ color: $black
439
+ font-weight: 700
440
+
441
+ table thead th, table tfoot td
442
+ background-color: $lighter-gray
443
+
444
+ caption
445
+ font-style: italic
446
+ font-weight: 700
447
+ +skeletor-rem(padding-bottom, ($base-line-height / 5))
448
+
449
+ // Cell Alignments
450
+ [colspan]
451
+ text-align: center
452
+
453
+ [colspan="1"]
454
+ text-align: left
455
+
456
+ [rowspan]
457
+ vertical-align: middle
458
+
459
+ [rowspan="1"]
460
+ vertical-align: top
461
+
462
+ // Basic table styling
463
+
464
+ // Outer border only
465
+ .table-stripes tbody > tr:nth-child(odd) > td
466
+ background-color: $lightest-gray
467
+
468
+ .table-border
469
+ border: 1px solid $light-gray
470
+
471
+ // Border for rows
472
+ .table-border__rows
473
+ th, td
474
+ border-top: 1px solid $light-gray
475
+
476
+ // Border for rows and columns
477
+ .table-border__cells
478
+ th, td
479
+ border-left: 1px solid $light-gray
480
+ border-top: 1px solid $light-gray
481
+
482
+ // Remove top border to avoid 'double' border on tables
483
+ .table-border .table-border_cells, .table-border .table-border__rows
484
+ thead:first-child tr:first-child th, thead:first-child tr:first-child td
485
+ border-top: 0
486
+
487
+ // Cleanup outside borders
488
+ .table-border__cells
489
+ tr th:first-child, tr td:first-child
490
+ border-left: 0
491
+
492
+ tr:first-child th, thead:first-child tr:first-child th
493
+ border-top: 0
494
+
495
+ .table-border__rows tr:last-child td
496
+ border-bottom: 1px solid $light-gray
497
+
498
+
499
+
500
+
501
+
502
+ // -----------------------------------------------------------------------------
503
+ // :: FORMS
504
+ // -----------------------------------------------------------------------------
505
+ fieldset
506
+ +skeletor-rem(padding, $base-line-height)
507
+ //border: 0
508
+ //margin: 0
509
+
510
+ label
511
+ display: block
512
+
513
+ textarea
514
+ height: auto
515
+ resize: vertical
516
+
517
+ select
518
+ //width: 100%
519
+
520
+ #{$all-text-inputs}, textarea
521
+ +skeletor-rem(padding, $base-line-height)
522
+ +skeletor-vertical-spacing($base-line-height / 2)
523
+ +skeletor-transition(all 0.15s linear)
524
+ +skeletor-rgba(color, 0, 0, 0, 0.75)
525
+ background-color: #fff
526
+ border: 1px solid darken(#fff, 20%)
527
+ border-radius: 4px
528
+ box-shadow: inset 0 1px 2px rgba(0,0,0,0.1)
529
+ width: 100%
530
+
531
+ &:focus
532
+ background-color: darken(#fff, 2%)
533
+ border-color: darken(#fff, 40%)
534
+ outline: none
535
+
536
+ &[disabled]
537
+ background-color: darken(#fff, 10%)