sled 4.5.5

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 (63) hide show
  1. data/LICENSE +13 -0
  2. data/README.md +24 -0
  3. data/lib/generators/inuit/install/USAGE +9 -0
  4. data/lib/generators/inuit/install/install_generator.rb +10 -0
  5. data/lib/generators/inuit/install/templates/inuit_and_override.css.scss +3 -0
  6. data/lib/sled.rb +8 -0
  7. data/lib/sled/version.rb +3 -0
  8. data/vendor/assets/stylesheets/_vars.scss +124 -0
  9. data/vendor/assets/stylesheets/assets/batch/batch.eot +0 -0
  10. data/vendor/assets/stylesheets/assets/batch/batch.svg +360 -0
  11. data/vendor/assets/stylesheets/assets/batch/batch.ttf +0 -0
  12. data/vendor/assets/stylesheets/assets/batch/batch.woff +0 -0
  13. data/vendor/assets/stylesheets/assets/batch/batch_webfont_reference.pdf +0 -0
  14. data/vendor/assets/stylesheets/inuit.css/_inuit.scss +210 -0
  15. data/vendor/assets/stylesheets/inuit.css/base/_code.scss +63 -0
  16. data/vendor/assets/stylesheets/inuit.css/base/_forms.scss +174 -0
  17. data/vendor/assets/stylesheets/inuit.css/base/_headings.scss +60 -0
  18. data/vendor/assets/stylesheets/inuit.css/base/_images.scss +67 -0
  19. data/vendor/assets/stylesheets/inuit.css/base/_links.scss +37 -0
  20. data/vendor/assets/stylesheets/inuit.css/base/_lists.scss +19 -0
  21. data/vendor/assets/stylesheets/inuit.css/base/_main.scss +8 -0
  22. data/vendor/assets/stylesheets/inuit.css/base/_paragraphs.scss +11 -0
  23. data/vendor/assets/stylesheets/inuit.css/base/_quotes.scss +96 -0
  24. data/vendor/assets/stylesheets/inuit.css/base/_smallprint.scss +13 -0
  25. data/vendor/assets/stylesheets/inuit.css/base/_tables.scss +163 -0
  26. data/vendor/assets/stylesheets/inuit.css/generic/_brand.scss +18 -0
  27. data/vendor/assets/stylesheets/inuit.css/generic/_clearfix.scss +15 -0
  28. data/vendor/assets/stylesheets/inuit.css/generic/_debug.scss +168 -0
  29. data/vendor/assets/stylesheets/inuit.css/generic/_helper.scss +112 -0
  30. data/vendor/assets/stylesheets/inuit.css/generic/_mixins.scss +299 -0
  31. data/vendor/assets/stylesheets/inuit.css/generic/_normalize.scss +396 -0
  32. data/vendor/assets/stylesheets/inuit.css/generic/_pull.scss +123 -0
  33. data/vendor/assets/stylesheets/inuit.css/generic/_push.scss +123 -0
  34. data/vendor/assets/stylesheets/inuit.css/generic/_reset.scss +80 -0
  35. data/vendor/assets/stylesheets/inuit.css/generic/_shared.scss +61 -0
  36. data/vendor/assets/stylesheets/inuit.css/generic/_widths.scss +154 -0
  37. data/vendor/assets/stylesheets/inuit.css/objects/_arrows.scss +143 -0
  38. data/vendor/assets/stylesheets/inuit.css/objects/_batch.scss +15 -0
  39. data/vendor/assets/stylesheets/inuit.css/objects/_block-list.scss +40 -0
  40. data/vendor/assets/stylesheets/inuit.css/objects/_breadcrumb.scss +59 -0
  41. data/vendor/assets/stylesheets/inuit.css/objects/_buttons.scss +44 -0
  42. data/vendor/assets/stylesheets/inuit.css/objects/_columns.scss +18 -0
  43. data/vendor/assets/stylesheets/inuit.css/objects/_flexbox.scss +51 -0
  44. data/vendor/assets/stylesheets/inuit.css/objects/_flyout.scss +59 -0
  45. data/vendor/assets/stylesheets/inuit.css/objects/_greybox.scss +54 -0
  46. data/vendor/assets/stylesheets/inuit.css/objects/_grids.scss +99 -0
  47. data/vendor/assets/stylesheets/inuit.css/objects/_icon-text.scss +36 -0
  48. data/vendor/assets/stylesheets/inuit.css/objects/_island.scss +34 -0
  49. data/vendor/assets/stylesheets/inuit.css/objects/_link-complex.scss +28 -0
  50. data/vendor/assets/stylesheets/inuit.css/objects/_lozenges.scss +42 -0
  51. data/vendor/assets/stylesheets/inuit.css/objects/_marginalia.scss +48 -0
  52. data/vendor/assets/stylesheets/inuit.css/objects/_matrix.scss +98 -0
  53. data/vendor/assets/stylesheets/inuit.css/objects/_media.scss +56 -0
  54. data/vendor/assets/stylesheets/inuit.css/objects/_nav.scss +151 -0
  55. data/vendor/assets/stylesheets/inuit.css/objects/_options.scss +41 -0
  56. data/vendor/assets/stylesheets/inuit.css/objects/_pagination.scss +46 -0
  57. data/vendor/assets/stylesheets/inuit.css/objects/_rules.scss +61 -0
  58. data/vendor/assets/stylesheets/inuit.css/objects/_split.scss +35 -0
  59. data/vendor/assets/stylesheets/inuit.css/objects/_sprite.scss +92 -0
  60. data/vendor/assets/stylesheets/inuit.css/objects/_stats.scss +48 -0
  61. data/vendor/assets/stylesheets/inuit.css/objects/_this-or-this.scss +34 -0
  62. data/vendor/assets/stylesheets/style.scss +23 -0
  63. metadata +126 -0
@@ -0,0 +1,123 @@
1
+ /*------------------------------------*\
2
+ $PUSH
3
+ \*------------------------------------*/
4
+ /**
5
+ * Push classes, to move grid items over to the right by certain amounts.
6
+ */
7
+
8
+ /**
9
+ * Not a particularly great selector, but the DRYest way to do things.
10
+ */
11
+ [class*="push--"]{ position:relative; }
12
+
13
+ @mixin push-setup($namespace: "") {
14
+
15
+ /**
16
+ * Whole
17
+ */
18
+ .push--#{$namespace}one-whole { left:100%; }
19
+
20
+
21
+ /**
22
+ * Halves
23
+ */
24
+ .push--#{$namespace}one-half { left:50%; }
25
+
26
+
27
+ /**
28
+ * Thirds
29
+ */
30
+ .push--#{$namespace}one-third { left:33.333%; }
31
+ .push--#{$namespace}two-thirds { left:66.666%; }
32
+
33
+
34
+ /**
35
+ * Quarters
36
+ */
37
+ .push--#{$namespace}one-quarter { left:25%; }
38
+ .push--#{$namespace}two-quarters { @extend .push--#{$namespace}one-half; }
39
+ .push--#{$namespace}three-quarters { left:75%; }
40
+
41
+
42
+ /**
43
+ * Fifths
44
+ */
45
+ .push--#{$namespace}one-fifth { left:20%; }
46
+ .push--#{$namespace}two-fifths { left:40%; }
47
+ .push--#{$namespace}three-fifths { left:60%; }
48
+ .push--#{$namespace}four-fifths { left:80%; }
49
+
50
+
51
+ /**
52
+ * Sixths
53
+ */
54
+ .push--#{$namespace}one-sixth { left:16.666%; }
55
+ .push--#{$namespace}two-sixths { @extend .push--#{$namespace}one-third; }
56
+ .push--#{$namespace}three-sixths { @extend .push--#{$namespace}one-half; }
57
+ .push--#{$namespace}four-sixths { @extend .push--#{$namespace}two-thirds; }
58
+ .push--#{$namespace}five-sixths { left:83.333%; }
59
+
60
+
61
+ /**
62
+ * Eighths
63
+ */
64
+ .push--#{$namespace}one-eighth { left:12.5%; }
65
+ .push--#{$namespace}two-eighths { @extend .push--#{$namespace}one-quarter; }
66
+ .push--#{$namespace}three-eighths { left:37.5%; }
67
+ .push--#{$namespace}four-eighths { @extend .push--#{$namespace}one-half; }
68
+ .push--#{$namespace}five-eighths { left:62.5%; }
69
+ .push--#{$namespace}six-eighths { @extend .push--#{$namespace}three-quarters; }
70
+ .push--#{$namespace}seven-eighths { left:87.5%; }
71
+
72
+
73
+ /**
74
+ * Tenths
75
+ */
76
+ .push--#{$namespace}one-tenth { left:10%; }
77
+ .push--#{$namespace}two-tenths { @extend .push--#{$namespace}one-fifth; }
78
+ .push--#{$namespace}three-tenths { left:30%; }
79
+ .push--#{$namespace}four-tenths { @extend .push--#{$namespace}two-fifths; }
80
+ .push--#{$namespace}five-tenths { @extend .push--#{$namespace}one-half; }
81
+ .push--#{$namespace}six-tenths { @extend .push--#{$namespace}three-fifths; }
82
+ .push--#{$namespace}seven-tenths { left:70%; }
83
+ .push--#{$namespace}eight-tenths { @extend .push--#{$namespace}four-fifths; }
84
+ .push--#{$namespace}nine-tenths { left:90%; }
85
+
86
+
87
+ /**
88
+ * Twelfths
89
+ */
90
+ .push--#{$namespace}one-twelfth { left:8.333%; }
91
+ .push--#{$namespace}two-twelfths { @extend .push--#{$namespace}one-sixth; }
92
+ .push--#{$namespace}three-twelfths { @extend .push--#{$namespace}one-quarter; }
93
+ .push--#{$namespace}four-twelfths { @extend .push--#{$namespace}one-third; }
94
+ .push--#{$namespace}five-twelfths { left:41.666% }
95
+ .push--#{$namespace}six-twelfths { @extend .push--#{$namespace}one-half; }
96
+ .push--#{$namespace}seven-twelfths { left:58.333%; }
97
+ .push--#{$namespace}eight-twelfths { @extend .push--#{$namespace}two-thirds; }
98
+ .push--#{$namespace}nine-twelfths { @extend .push--#{$namespace}three-quarters; }
99
+ .push--#{$namespace}ten-twelfths { @extend .push--#{$namespace}five-sixths; }
100
+ .push--#{$namespace}eleven-twelfths { left:91.666%; }
101
+ }
102
+
103
+ @include push-setup();
104
+
105
+ @if $responsive-push == true{
106
+
107
+ @include media-query(palm){
108
+ @include push-setup("palm-");
109
+ }
110
+
111
+ @include media-query(lap){
112
+ @include push-setup("lap-");
113
+ }
114
+
115
+ @include media-query(portable){
116
+ @include push-setup("portable-");
117
+ }
118
+
119
+ @include media-query(desk){
120
+ @include push-setup("desk-");
121
+ }
122
+
123
+ } /* endif */
@@ -0,0 +1,80 @@
1
+ /*------------------------------------*\
2
+ $RESET
3
+ \*------------------------------------*/
4
+ /**
5
+ * A more considered reset; more of a restart...
6
+ * As per: csswizardry.com/2011/10/reset-restarted
7
+ */
8
+
9
+ @if $global-border-box == true{
10
+ /**
11
+ * Let’s make the box model all nice, shall we…?
12
+ */
13
+ *{
14
+ &,
15
+ &:before,
16
+ &:after{
17
+ @include vendor(box-sizing, border-box);
18
+ }
19
+ }
20
+ }
21
+
22
+ /**
23
+ * The usual...
24
+ */
25
+ h1,h2,h3,h4,h5,h6,
26
+ p,blockquote,pre,
27
+ dl,dd,ol,ul,
28
+ form,fieldset,legend,
29
+ table,th,td,caption,
30
+ hr{
31
+ margin:0;
32
+ padding:0;
33
+ }
34
+
35
+ /**
36
+ * Give a help cursor to elements that give extra info on `:hover`.
37
+ */
38
+ abbr[title],dfn[title]{
39
+ cursor:help;
40
+ }
41
+
42
+ /**
43
+ * Remove underlines from potentially troublesome elements.
44
+ */
45
+ a,u,ins{
46
+ text-decoration:none;
47
+ }
48
+
49
+ /**
50
+ * Apply faux underline via `border-bottom`.
51
+ */
52
+ ins{
53
+ border-bottom:1px solid;
54
+ }
55
+
56
+ /**
57
+ * So that `alt` text is visually offset if images don’t load.
58
+ */
59
+ img{
60
+ font-style:italic;
61
+ }
62
+
63
+ /**
64
+ * Give form elements some cursor interactions...
65
+ */
66
+ label,
67
+ input,
68
+ textarea,
69
+ button,
70
+ select,
71
+ option{
72
+ cursor:pointer;
73
+ }
74
+ .text-input:active,
75
+ .text-input:focus,
76
+ textarea:active,
77
+ textarea:focus{
78
+ cursor:text;
79
+ outline:none;
80
+ }
@@ -0,0 +1,61 @@
1
+ /*------------------------------------*\
2
+ $SHARED
3
+ \*------------------------------------*/
4
+ /**
5
+ * Where `margin-bottom` is concerned, this value will be the same as the
6
+ * base line-height. This allows us to keep a consistent vertical rhythm.
7
+ * As per: csswizardry.com/2012/06/single-direction-margin-declarations
8
+ */
9
+ /**
10
+ * Base elements
11
+ */
12
+ h1,h2,h3,h4,h5,h6,hgroup,
13
+ ul,ol,dl,
14
+ blockquote,p,address,
15
+ table,
16
+ fieldset,figure,
17
+ pre,
18
+ /**
19
+ * Objects and abstractions
20
+ */
21
+ %sass-margin-bottom,
22
+ .media,
23
+ .island,
24
+ .islet{
25
+ margin-bottom:$base-spacing-unit;
26
+ margin-bottom:($base-spacing-unit / $base-font-size)*1rem;
27
+
28
+ .islet &{
29
+ margin-bottom:$base-spacing-unit / 2;
30
+ margin-bottom:(($base-spacing-unit / $base-font-size) / 2)*1rem;
31
+ }
32
+ }
33
+
34
+
35
+ /**
36
+ * Doubled up `margin-bottom` helper class.
37
+ */
38
+ .landmark{
39
+ margin-bottom:2 * $base-spacing-unit;
40
+ margin-bottom:(2 * $base-spacing-unit / $base-font-size)*1rem;
41
+ }
42
+
43
+
44
+ /**
45
+ * `hr` elements only take up a few pixels, so we need to give them special
46
+ * treatment regarding vertical rhythm.
47
+ */
48
+ hr{
49
+ margin-bottom:$base-spacing-unit - 2px;
50
+ margin-bottom:(($base-spacing-unit - 2px) / $base-font-size)*1rem;
51
+ }
52
+
53
+
54
+ /**
55
+ * Where `margin-left` is concerned we want to try and indent certain elements
56
+ * by a consistent amount. Define that amount once, here.
57
+ */
58
+ ul,ol,dd{
59
+ margin-left:2 * $base-spacing-unit;
60
+ margin-left:(2 * $base-spacing-unit / $base-font-size)*1rem;
61
+ }
@@ -0,0 +1,154 @@
1
+ /*------------------------------------*\
2
+ $WIDTHS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Sizes in human readable format. These are used in conjunction with other
6
+ * objects and abstractions found in inuit.css, most commonly the grid system
7
+ * and faux flexbox.
8
+ *
9
+ * We have a mixin to generate our widths and their breakpoint-specific
10
+ * variations.
11
+ */
12
+
13
+ @mixin grid-setup($namespace: "") {
14
+ /**
15
+ * Whole
16
+ */
17
+ .#{$namespace}one-whole { width:100%; }
18
+
19
+
20
+ /**
21
+ * Halves
22
+ */
23
+ .#{$namespace}one-half { width:50%; }
24
+
25
+
26
+ /**
27
+ * Thirds
28
+ */
29
+ .#{$namespace}one-third { width:33.333%; }
30
+ .#{$namespace}two-thirds { width:66.666%; }
31
+
32
+
33
+ /**
34
+ * Quarters
35
+ */
36
+ .#{$namespace}one-quarter { width:25%; }
37
+ .#{$namespace}two-quarters { @extend .#{$namespace}one-half; }
38
+ .#{$namespace}three-quarters { width:75%; }
39
+
40
+
41
+ /**
42
+ * Fifths
43
+ */
44
+ .#{$namespace}one-fifth { width:20%; }
45
+ .#{$namespace}two-fifths { width:40%; }
46
+ .#{$namespace}three-fifths { width:60%; }
47
+ .#{$namespace}four-fifths { width:80%; }
48
+
49
+
50
+ /**
51
+ * Sixths
52
+ */
53
+ .#{$namespace}one-sixth { width:16.666%; }
54
+ .#{$namespace}two-sixths { @extend .#{$namespace}one-third; }
55
+ .#{$namespace}three-sixths { @extend .#{$namespace}one-half; }
56
+ .#{$namespace}four-sixths { @extend .#{$namespace}two-thirds; }
57
+ .#{$namespace}five-sixths { width:83.333%; }
58
+
59
+
60
+ /**
61
+ * Eighths
62
+ */
63
+ .#{$namespace}one-eighth { width:12.5%; }
64
+ .#{$namespace}two-eighths { @extend .#{$namespace}one-quarter; }
65
+ .#{$namespace}three-eighths { width:37.5%; }
66
+ .#{$namespace}four-eighths { @extend .#{$namespace}one-half; }
67
+ .#{$namespace}five-eighths { width:62.5%; }
68
+ .#{$namespace}six-eighths { @extend .#{$namespace}three-quarters; }
69
+ .#{$namespace}seven-eighths { width:87.5%; }
70
+
71
+
72
+ /**
73
+ * Tenths
74
+ */
75
+ .#{$namespace}one-tenth { width:10%; }
76
+ .#{$namespace}two-tenths { @extend .#{$namespace}one-fifth; }
77
+ .#{$namespace}three-tenths { width:30%; }
78
+ .#{$namespace}four-tenths { @extend .#{$namespace}two-fifths; }
79
+ .#{$namespace}five-tenths { @extend .#{$namespace}one-half; }
80
+ .#{$namespace}six-tenths { @extend .#{$namespace}three-fifths; }
81
+ .#{$namespace}seven-tenths { width:70%; }
82
+ .#{$namespace}eight-tenths { @extend .#{$namespace}four-fifths; }
83
+ .#{$namespace}nine-tenths { width:90%; }
84
+
85
+
86
+ /**
87
+ * Twelfths
88
+ */
89
+ .#{$namespace}one-twelfth { width:8.333%; }
90
+ .#{$namespace}two-twelfths { @extend .#{$namespace}one-sixth; }
91
+ .#{$namespace}three-twelfths { @extend .#{$namespace}one-quarter; }
92
+ .#{$namespace}four-twelfths { @extend .#{$namespace}one-third; }
93
+ .#{$namespace}five-twelfths { width:41.666% }
94
+ .#{$namespace}six-twelfths { @extend .#{$namespace}one-half; }
95
+ .#{$namespace}seven-twelfths { width:58.333%; }
96
+ .#{$namespace}eight-twelfths { @extend .#{$namespace}two-thirds; }
97
+ .#{$namespace}nine-twelfths { @extend .#{$namespace}three-quarters; }
98
+ .#{$namespace}ten-twelfths { @extend .#{$namespace}five-sixths; }
99
+ .#{$namespace}eleven-twelfths { width:91.666%; }
100
+ }
101
+
102
+ @include grid-setup();
103
+
104
+
105
+
106
+ /**
107
+ * If you have set `$responsive` to ‘true’ in `_vars.scss` then you now have
108
+ * access to these classes. You can define at which breakpoint you’d like an
109
+ * element to be a certain size, e.g.:
110
+ *
111
+ * `<div class="g one-quarter lap-one-half palm-one-whole"> ... </div>`
112
+ *
113
+ * This would create a `div` that, at ‘desktop’ sizes, takes up a quarter of the
114
+ * horizontal space, a half of that space at ‘tablet’ sizes, and goes full width
115
+ * at ‘mobile’ sizes.
116
+ *
117
+ * Demo: jsfiddle.net/inuitcss/WS4Ge
118
+ *
119
+ */
120
+
121
+ @if $responsive == true{
122
+
123
+ @include media-query(palm){
124
+ @include grid-setup("palm-");
125
+ }
126
+
127
+ @include media-query(lap){
128
+ @include grid-setup("lap-");
129
+ }
130
+
131
+ @include media-query(portable){
132
+ @include grid-setup("portable-");
133
+ }
134
+
135
+ @include media-query(desk){
136
+ @include grid-setup("desk-");
137
+ }
138
+
139
+
140
+ /**
141
+ * If you have set the additional `$responsive-extra` variable to ‘true’ in
142
+ * `_vars.scss` then you now have access to the following class available to
143
+ * accomodate much larger screen resolutions.
144
+ */
145
+
146
+ @if $responsive-extra == true{
147
+
148
+ @include media-query(desk-wide){
149
+ @include grid-setup("deskwide-");
150
+ }
151
+
152
+ }
153
+
154
+ } /* endif */
@@ -0,0 +1,143 @@
1
+ /*------------------------------------*\
2
+ $ARROWS
3
+ \*------------------------------------*/
4
+ /**
5
+ * It is a common design treatment to give an element a triangular points-out
6
+ * arrow, we typically build these with CSS. These following classes allow us to
7
+ * generate these arbitrarily with a mixin, `@arrow()`.
8
+ */
9
+
10
+ $arrow-size: $half-spacing-unit!default;
11
+ $arrow-border: 1!default;
12
+ $border: $arrow-size;
13
+ $arrow: $arrow-size - $arrow-border;
14
+
15
+ /**
16
+ * Forms the basis for any/all CSS arrows.
17
+ */
18
+ %arrow{
19
+ position:relative;
20
+
21
+ &:before,
22
+ &:after{
23
+ content:"";
24
+ position:absolute;
25
+ border-collapse:separate;
26
+ }
27
+ &:before{
28
+ border:$border solid transparent;
29
+ }
30
+ &:after{
31
+ border:$arrow solid transparent;
32
+ }
33
+ }
34
+
35
+
36
+ /**
37
+ * Define individual edges so we can combine what we need, when we need.
38
+ */
39
+ %arrow--top{
40
+ @extend %arrow;
41
+
42
+ &:before,
43
+ &:after{
44
+ bottom:100%;
45
+ }
46
+ }
47
+
48
+ %arrow--upper{
49
+ @extend %arrow;
50
+
51
+ &:before{
52
+ top:$arrow;
53
+ }
54
+ &:after{
55
+ top:$border;
56
+ }
57
+ }
58
+
59
+ %arrow--middle{
60
+ @extend %arrow;
61
+
62
+ &:before,
63
+ &:after{
64
+ top:50%;
65
+ margin-top:-$border;
66
+ }
67
+ &:after{
68
+ margin-top:-$arrow;
69
+ }
70
+ }
71
+
72
+ %arrow--lower{
73
+ @extend %arrow;
74
+
75
+ &:before{
76
+ bottom:$arrow;
77
+ }
78
+ &:after{
79
+ bottom:$border;
80
+ }
81
+ }
82
+
83
+ %arrow--bottom{
84
+ @extend %arrow;
85
+
86
+ &:before,
87
+ &:after{
88
+ top:100%;
89
+ }
90
+ }
91
+
92
+ %arrow--near{
93
+ @extend %arrow;
94
+
95
+ &:before,
96
+ &:after{
97
+ right:100%;
98
+ }
99
+ }
100
+
101
+ %arrow--left{
102
+ @extend %arrow;
103
+
104
+ &:before{
105
+ left:$arrow;
106
+ }
107
+ &:after{
108
+ left:$border;
109
+ }
110
+ }
111
+
112
+ %arrow--center{
113
+ @extend %arrow;
114
+
115
+ &:before,
116
+ &:after{
117
+ left:50%;
118
+ margin-left:-$border;
119
+ }
120
+ &:after{
121
+ margin-left:-$arrow;
122
+ }
123
+ }
124
+
125
+ %arrow--right{
126
+ @extend %arrow;
127
+
128
+ &:before{
129
+ right:$arrow;
130
+ }
131
+ &:after{
132
+ right:$border;
133
+ }
134
+ }
135
+
136
+ %arrow--far{
137
+ @extend %arrow;
138
+
139
+ &:before,
140
+ &:after{
141
+ left:100%;
142
+ }
143
+ }