inuit-rails 6.0.0.beta.4
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/.bowerrc +3 -0
- data/.document +5 -0
- data/.gitignore +55 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bower.json +19 -0
- data/inuit-rails.gemspec +24 -0
- data/lib/inuit-rails.rb +2 -0
- data/lib/inuit-rails/rails.rb +1 -0
- data/lib/inuit-rails/rails/engine.rb +6 -0
- data/lib/inuit-rails/rails/version.rb +5 -0
- data/vendor/assets/stylesheets/inuitcss/LICENSE +13 -0
- data/vendor/assets/stylesheets/inuitcss/circle.yml +17 -0
- data/vendor/assets/stylesheets/inuitcss/components/_example.components.buttons.scss +170 -0
- data/vendor/assets/stylesheets/inuitcss/elements/_elements.headings.scss +47 -0
- data/vendor/assets/stylesheets/inuitcss/elements/_elements.images.scss +28 -0
- data/vendor/assets/stylesheets/inuitcss/elements/_elements.page.scss +22 -0
- data/vendor/assets/stylesheets/inuitcss/elements/_elements.tables.scss +11 -0
- data/vendor/assets/stylesheets/inuitcss/example.main.scss +154 -0
- data/vendor/assets/stylesheets/inuitcss/generic/_generic.box-sizing.scss +22 -0
- data/vendor/assets/stylesheets/inuitcss/generic/_generic.normalize.scss +461 -0
- data/vendor/assets/stylesheets/inuitcss/generic/_generic.reset.scss +53 -0
- data/vendor/assets/stylesheets/inuitcss/generic/_generic.shared.scss +36 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.block.scss +63 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.box.scss +48 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.crop.scss +99 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.flag.scss +214 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.layout.scss +247 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.list-bare.scss +13 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.list-inline.scss +53 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.media.scss +152 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.pack.scss +90 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.ratio.scss +85 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.tables.scss +74 -0
- data/vendor/assets/stylesheets/inuitcss/objects/_objects.wrapper.scss +51 -0
- data/vendor/assets/stylesheets/inuitcss/settings/_example.settings.config.scss +24 -0
- data/vendor/assets/stylesheets/inuitcss/settings/_example.settings.global.scss +9 -0
- data/vendor/assets/stylesheets/inuitcss/settings/_settings.core.scss +93 -0
- data/vendor/assets/stylesheets/inuitcss/tools/_tools.clearfix.scss +19 -0
- data/vendor/assets/stylesheets/inuitcss/tools/_tools.font-size.scss +44 -0
- data/vendor/assets/stylesheets/inuitcss/tools/_tools.hidden.scss +15 -0
- data/vendor/assets/stylesheets/inuitcss/tools/_tools.rem.scss +48 -0
- data/vendor/assets/stylesheets/inuitcss/utilities/_utilities.clearfix.scss +11 -0
- data/vendor/assets/stylesheets/inuitcss/utilities/_utilities.headings.scss +36 -0
- data/vendor/assets/stylesheets/inuitcss/utilities/_utilities.hide.scss +21 -0
- data/vendor/assets/stylesheets/inuitcss/utilities/_utilities.print.scss +90 -0
- data/vendor/assets/stylesheets/inuitcss/utilities/_utilities.spacing.scss +57 -0
- data/vendor/assets/stylesheets/inuitcss/utilities/_utilities.widths.scss +167 -0
- data/vendor/assets/stylesheets/sass-mq/_mq.scss +287 -0
- data/vendor/assets/stylesheets/sass-mq/show-breakpoints.gif +0 -0
- metadata +144 -0
@@ -0,0 +1,247 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
#LAYOUT
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Grid-like layout system.
|
7
|
+
*
|
8
|
+
* The layout object provides us with a column-style layout system. This file
|
9
|
+
* contains the basic structural elements, but classes should be complemented
|
10
|
+
* with width utilities, for example:
|
11
|
+
*
|
12
|
+
* <div class="o-layout">
|
13
|
+
* <div class="o-layout__item u-1/2">
|
14
|
+
* </div>
|
15
|
+
* <div class="o-layout__item u-1/2">
|
16
|
+
* </div>
|
17
|
+
* </div>
|
18
|
+
*
|
19
|
+
* The above will create a two-column structure in which each column will
|
20
|
+
* fluidly fill half of the width of the parent. We can have more complex
|
21
|
+
* systems:
|
22
|
+
*
|
23
|
+
* <div class="o-layout">
|
24
|
+
* <div class="o-layout__item u-1/1 u-1/3@medium">
|
25
|
+
* </div>
|
26
|
+
* <div class="o-layout__item u-1/2 u-1/3@medium">
|
27
|
+
* </div>
|
28
|
+
* <div class="o-layout__item u-1/2 u-1/3@medium">
|
29
|
+
* </div>
|
30
|
+
* </div>
|
31
|
+
*
|
32
|
+
* The above will create a system in which the first item will be 100% width
|
33
|
+
* until we enter our medium breakpoint, when it will become 33.333% width. The
|
34
|
+
* second and third items will be 50% of their parent, until they also become
|
35
|
+
* 33.333% width at the medium breakpoint.
|
36
|
+
*
|
37
|
+
* We can also manipulate entire layout systems by adding a series of modifiers
|
38
|
+
* to the `.o-layout` block. For example:
|
39
|
+
*
|
40
|
+
* <div class="o-layout o-layout--reverse">
|
41
|
+
*
|
42
|
+
* This will reverse the displayed order of the system so that it runs in the
|
43
|
+
* opposite order to our source, effectively flipping the system over.
|
44
|
+
*
|
45
|
+
* <div class="o-layout o-layout--[right|center]">
|
46
|
+
*
|
47
|
+
* This will cause the system to fill up from either the centre or the right
|
48
|
+
* hand side. Default behaviour is to fill up the layout system from the left.
|
49
|
+
*
|
50
|
+
* There are plenty more options available to us: explore them below.
|
51
|
+
*/
|
52
|
+
|
53
|
+
// By default we use the `font-size: 0;` trick to remove whitespace between
|
54
|
+
// items. Set this to true in order to use a markup-based strategy like
|
55
|
+
// commenting out whitespace or minifying HTML.
|
56
|
+
$inuit-use-markup-fix: false !default;
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
/* Default/mandatory classes.
|
63
|
+
========================================================================== */
|
64
|
+
|
65
|
+
/**
|
66
|
+
* 1. Allows us to use the layout object on any type of element.
|
67
|
+
* 2. We need to defensively reset any box-model properties.
|
68
|
+
* 3. Use the negative margin trick for multi-row grids:
|
69
|
+
* http://csswizardry.com/2011/08/building-better-grid-systems/
|
70
|
+
*/
|
71
|
+
|
72
|
+
.o-layout {
|
73
|
+
display: block; /* [1] */
|
74
|
+
margin: 0; /* [2] */
|
75
|
+
padding: 0; /* [2] */
|
76
|
+
list-style: none; /* [1] */
|
77
|
+
margin-left: -$inuit-global-spacing-unit; /* [3] */
|
78
|
+
|
79
|
+
@if ($inuit-use-markup-fix == false) {
|
80
|
+
font-size: 0;
|
81
|
+
}
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
/**
|
87
|
+
* 1. Required in order to combine fluid widths with fixed gutters.
|
88
|
+
* 2. Allows us to manipulate grids vertically, with text-level properties,
|
89
|
+
* etc.
|
90
|
+
* 3. Default item alignment is with the tops of each other, like most
|
91
|
+
* traditional grid/layout systems.
|
92
|
+
* 4. By default, all layout items are full-width (mobile first).
|
93
|
+
* 5. Gutters provided by left padding:
|
94
|
+
* http://csswizardry.com/2011/08/building-better-grid-systems/
|
95
|
+
* 6. Fallback for old IEs not supporting `rem` values.
|
96
|
+
*/
|
97
|
+
|
98
|
+
.o-layout__item {
|
99
|
+
box-sizing: border-box; /* [1] */
|
100
|
+
display: inline-block; /* [2] */
|
101
|
+
vertical-align: top; /* [3] */
|
102
|
+
width: 100%; /* [4] */
|
103
|
+
padding-left: $inuit-global-spacing-unit; /* [5] */
|
104
|
+
|
105
|
+
@if ($inuit-use-markup-fix == false) {
|
106
|
+
font-size: $inuit-global-font-size; /* [6] */
|
107
|
+
font-size: 1rem;
|
108
|
+
}
|
109
|
+
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
/* Gutter size modifiers.
|
117
|
+
========================================================================== */
|
118
|
+
|
119
|
+
.o-layout--tiny {
|
120
|
+
margin-left: -$inuit-global-spacing-unit-tiny;
|
121
|
+
|
122
|
+
> .o-layout__item {
|
123
|
+
padding-left: $inuit-global-spacing-unit-tiny;
|
124
|
+
}
|
125
|
+
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
.o-layout--small {
|
130
|
+
margin-left: -$inuit-global-spacing-unit-small;
|
131
|
+
|
132
|
+
> .o-layout__item {
|
133
|
+
padding-left: $inuit-global-spacing-unit-small;
|
134
|
+
}
|
135
|
+
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
.o-layout--large {
|
140
|
+
margin-left: -$inuit-global-spacing-unit-large;
|
141
|
+
|
142
|
+
> .o-layout__item {
|
143
|
+
padding-left: $inuit-global-spacing-unit-large;
|
144
|
+
}
|
145
|
+
|
146
|
+
}
|
147
|
+
|
148
|
+
|
149
|
+
.o-layout--huge {
|
150
|
+
margin-left: -$inuit-global-spacing-unit-huge;
|
151
|
+
|
152
|
+
> .o-layout__item {
|
153
|
+
padding-left: $inuit-global-spacing-unit-huge;
|
154
|
+
}
|
155
|
+
|
156
|
+
}
|
157
|
+
|
158
|
+
|
159
|
+
.o-layout--flush {
|
160
|
+
margin-left: 0;
|
161
|
+
|
162
|
+
> .o-layout__item {
|
163
|
+
padding-left: 0;
|
164
|
+
}
|
165
|
+
|
166
|
+
}
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
/* Vertical alignment modifiers.
|
173
|
+
========================================================================== */
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Align all grid items to the middles of each other.
|
177
|
+
*/
|
178
|
+
|
179
|
+
.o-layout--middle {
|
180
|
+
|
181
|
+
> .o-layout__item {
|
182
|
+
vertical-align: middle;
|
183
|
+
}
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
/**
|
189
|
+
* Align all grid items to the bottoms of each other.
|
190
|
+
*/
|
191
|
+
|
192
|
+
.o-layout--bottom {
|
193
|
+
|
194
|
+
> .o-layout__item {
|
195
|
+
vertical-align: bottom;
|
196
|
+
}
|
197
|
+
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
/* Fill order modifiers.
|
205
|
+
========================================================================== */
|
206
|
+
|
207
|
+
/**
|
208
|
+
* Fill up the layout system from the centre.
|
209
|
+
*/
|
210
|
+
|
211
|
+
.o-layout--center {
|
212
|
+
text-align: center;
|
213
|
+
|
214
|
+
> .o-layout__item {
|
215
|
+
text-align: left;
|
216
|
+
}
|
217
|
+
|
218
|
+
}
|
219
|
+
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Fill up the layout system from the right-hand side.
|
223
|
+
*/
|
224
|
+
|
225
|
+
.o-layout--right {
|
226
|
+
text-align: right;
|
227
|
+
|
228
|
+
> .o-layout__item {
|
229
|
+
text-align: left;
|
230
|
+
}
|
231
|
+
|
232
|
+
}
|
233
|
+
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Reverse the rendered order of the grid system.
|
237
|
+
*/
|
238
|
+
|
239
|
+
.o-layout--reverse {
|
240
|
+
direction: rtl;
|
241
|
+
|
242
|
+
> .o-layout__item {
|
243
|
+
direction: ltr;
|
244
|
+
text-align: left;
|
245
|
+
}
|
246
|
+
|
247
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
#LIST-BARE
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Strip list-like appearance from lists by removing their bullets, and any
|
7
|
+
* indentation.
|
8
|
+
*/
|
9
|
+
|
10
|
+
.o-list-bare {
|
11
|
+
list-style: none;
|
12
|
+
margin-left: 0;
|
13
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
#LIST-INLINE
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* The list-inline object simply displays a list of items in one line.
|
7
|
+
*/
|
8
|
+
|
9
|
+
.o-list-inline {
|
10
|
+
margin-left: 0;
|
11
|
+
list-style: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
.o-list-inline__item {
|
16
|
+
display: inline-block;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
/* Delimited list.
|
24
|
+
========================================================================== */
|
25
|
+
|
26
|
+
/**
|
27
|
+
* By default, applying this class will comma separate your list items. You can
|
28
|
+
* change the delimiter by predefining the following variable:
|
29
|
+
*/
|
30
|
+
|
31
|
+
$inuit-list-inline-delimiter: ",\00A0" !default;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* 1. Fallback for old IEs not supporting `rem` values.
|
35
|
+
*/
|
36
|
+
|
37
|
+
.o-list-inline--delimited {
|
38
|
+
font-size: 0;
|
39
|
+
|
40
|
+
> .o-list-inline__item {
|
41
|
+
font-size: $inuit-global-font-size; /* [1] */
|
42
|
+
font-size: 1rem;
|
43
|
+
}
|
44
|
+
|
45
|
+
> .o-list-inline__item + .o-list-inline__item {
|
46
|
+
|
47
|
+
&:before {
|
48
|
+
content: "#{$inuit-list-inline-delimiter}";
|
49
|
+
}
|
50
|
+
|
51
|
+
}
|
52
|
+
|
53
|
+
}
|
@@ -0,0 +1,152 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
#MEDIA
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Place any image- and text-like content side-by-side, as per:
|
7
|
+
* http://www.stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code
|
8
|
+
*/
|
9
|
+
|
10
|
+
.o-media {
|
11
|
+
@include inuit-clearfix();
|
12
|
+
display: block;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
.o-media__img {
|
17
|
+
float: left;
|
18
|
+
margin-right: $inuit-global-spacing-unit;
|
19
|
+
|
20
|
+
> img {
|
21
|
+
display: block;
|
22
|
+
}
|
23
|
+
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
.o-media__body {
|
28
|
+
overflow: hidden;
|
29
|
+
display: block;
|
30
|
+
|
31
|
+
&,
|
32
|
+
> :last-child {
|
33
|
+
margin-bottom: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
/* Size variants
|
43
|
+
========================================================================== */
|
44
|
+
|
45
|
+
/**
|
46
|
+
* Modify the amount of space between our image and our text. We also have
|
47
|
+
* reversible options for all available sizes.
|
48
|
+
*/
|
49
|
+
|
50
|
+
.o-media--tiny {
|
51
|
+
|
52
|
+
> .o-media__img {
|
53
|
+
margin-right: $inuit-global-spacing-unit-tiny;
|
54
|
+
}
|
55
|
+
|
56
|
+
&.o-media--reverse {
|
57
|
+
|
58
|
+
> .o-media__img {
|
59
|
+
margin-right: 0;
|
60
|
+
margin-left: $inuit-global-spacing-unit-tiny;
|
61
|
+
}
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
.o-media--small {
|
69
|
+
|
70
|
+
> .o-media__img {
|
71
|
+
margin-right: $inuit-global-spacing-unit-small;
|
72
|
+
}
|
73
|
+
|
74
|
+
&.o-media--reverse {
|
75
|
+
|
76
|
+
> .o-media__img {
|
77
|
+
margin-right: 0;
|
78
|
+
margin-left: $inuit-global-spacing-unit-small;
|
79
|
+
}
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
.o-media--large {
|
87
|
+
|
88
|
+
> .o-media__img {
|
89
|
+
margin-right: $inuit-global-spacing-unit-large;
|
90
|
+
}
|
91
|
+
|
92
|
+
&.o-media--reverse {
|
93
|
+
|
94
|
+
> .o-media__img {
|
95
|
+
margin-right: 0;
|
96
|
+
margin-left: $inuit-global-spacing-unit-large;
|
97
|
+
}
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
.o-media--huge {
|
105
|
+
|
106
|
+
> .o-media__img {
|
107
|
+
margin-right: $inuit-global-spacing-unit-huge;
|
108
|
+
}
|
109
|
+
|
110
|
+
&.o-media--reverse {
|
111
|
+
|
112
|
+
> .o-media__img {
|
113
|
+
margin-right: 0;
|
114
|
+
margin-left: $inuit-global-spacing-unit-huge;
|
115
|
+
}
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
/* Reversed media objects
|
126
|
+
========================================================================== */
|
127
|
+
|
128
|
+
.o-media--reverse {
|
129
|
+
|
130
|
+
> .o-media__img {
|
131
|
+
float: right;
|
132
|
+
margin-right: 0;
|
133
|
+
margin-left: $inuit-global-spacing-unit;
|
134
|
+
}
|
135
|
+
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
/* Gutterless media objects
|
143
|
+
========================================================================== */
|
144
|
+
|
145
|
+
.o-media--flush {
|
146
|
+
|
147
|
+
> .o-media__img {
|
148
|
+
margin-right: 0;
|
149
|
+
margin-left: 0;
|
150
|
+
}
|
151
|
+
|
152
|
+
}
|