compass-inuit 4.2.1 → 4.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.
@@ -201,6 +201,7 @@
201
201
  }
202
202
 
203
203
  @if $arrow-edge == left{
204
+
204
205
  @extend %arrow--near;
205
206
 
206
207
  &:before{
@@ -226,3 +227,59 @@
226
227
  }
227
228
 
228
229
  }
230
+
231
+
232
+ /**
233
+ * Media query mixin.
234
+ *
235
+ * It’s not great practice to define solid breakpoints up-front, preferring to
236
+ * modify your design when it needs it, rather than assuming you’ll want a
237
+ * change at ‘mobile’. However, as inuit.css is required to take a hands off
238
+ * approach to design decisions, this is the closest we can get to baked-in
239
+ * responsiveness. It’s flexible enough to allow you to set your own breakpoints
240
+ * but solid enough to be frameworkified.
241
+ *
242
+ * We define some broad breakpoints in our vars file that are picked up here
243
+ * for use in a simple media query mixin. Our options are:
244
+ *
245
+ * palm
246
+ * lap
247
+ * portable
248
+ * desk
249
+ *
250
+ * Not using a media query will, naturally, serve styles to all devices.
251
+ *
252
+ * `@include media-query(palm){ [styles here] }`
253
+ *
254
+ * We work out your end points for you:
255
+ */
256
+ $palm-end: $lap-start +-1;
257
+ $lap-end: $desk-start +-1;
258
+
259
+ @mixin media-query($media-query){
260
+
261
+ @if $media-query == palm{
262
+
263
+ @media only screen and (max-width:$palm-end +px) { @content; }
264
+
265
+ }
266
+
267
+ @if $media-query == lap{
268
+
269
+ @media only screen and (min-width:$lap-start +px) and (max-width:$lap-end +px) { @content; }
270
+
271
+ }
272
+
273
+ @if $media-query == portable{
274
+
275
+ @media only screen and (max-width:$lap-end +px) { @content; }
276
+
277
+ }
278
+
279
+ @if $media-query == desk{
280
+
281
+ @media only screen and (min-width:$desk-start +px) { @content; }
282
+
283
+ }
284
+
285
+ }
@@ -93,3 +93,247 @@
93
93
  .nine-twelfths { @extend .three-quarters; }
94
94
  .ten-twelfths { @extend .five-sixths; }
95
95
  .eleven-twelfths { width:91.666%; }
96
+
97
+
98
+ /**
99
+ * If you have set `$responsive` to ‘true’ in `_vars.scss` then you now have
100
+ * access to these classes. You can define at which breakpoing you’d like an
101
+ * element to be a certain size, e.g.:
102
+ *
103
+ * `<div class="g one-quarter lap-one-half palm-one-whole"> ... </div>`
104
+ *
105
+ * This would create a `div` that, at ‘desktop’ sizes, takes up a quarter of the
106
+ * horizontal space, a half of that space at ‘tablet’ sizes, and goes full width
107
+ * at ‘mobile’ sizes.
108
+ *
109
+ * Demo: jsfiddle.net/inuitcss/WS4Ge
110
+ *
111
+ */
112
+
113
+ @if $responsive == true{
114
+
115
+ @include media-query(palm){
116
+
117
+ .palm-one-whole { width:100%; }
118
+
119
+ .palm-one-half { width:50%; }
120
+
121
+ .palm-one-third { width:33.333%; }
122
+ .palm-two-thirds { width:66.666%; }
123
+
124
+ .palm-one-quarter { width:25%; }
125
+ .palm-two-quarters { @extend .palm-one-half; }
126
+ .palm-three-quarters { width:75%; }
127
+
128
+ .palm-one-fifth { width:20%; }
129
+ .palm-two-fifths { width:40%; }
130
+ .palm-three-fifths { width:60%; }
131
+ .palm-four-fifths { width:80%; }
132
+
133
+ .palm-one-sixth { width:16.666%; }
134
+ .palm-two-sixths { @extend .palm-one-third; }
135
+ .palm-three-sixths { @extend .palm-one-half; }
136
+ .palm-four-sixths { @extend .palm-two-thirds; }
137
+ .palm-five-sixths { width:83.333%; }
138
+
139
+ .palm-one-eighth { width:12.5%; }
140
+ .palm-two-eighths { @extend .palm-one-quarter; }
141
+ .palm-three-eighths { width:37.5%; }
142
+ .palm-four-eighths { @extend .palm-one-half; }
143
+ .palm-five-eighths { width:62.5%; }
144
+ .palm-six-eighths { @extend .palm-three-quarters; }
145
+ .palm-seven-eighths { width:87.5%; }
146
+
147
+ .palm-one-tenth { width:10%; }
148
+ .palm-two-tenths { @extend .palm-one-fifth; }
149
+ .palm-three-tenths { width:30%; }
150
+ .palm-four-tenths { @extend .palm-two-fifths; }
151
+ .palm-five-tenths { @extend .palm-one-half; }
152
+ .palm-six-tenths { @extend .palm-three-fifths; }
153
+ .palm-seven-tenths { width:70%; }
154
+ .palm-eight-tenths { @extend .palm-four-fifths; }
155
+ .palm-nine-tenths { width:90%; }
156
+
157
+ .palm-one-twelfth { width:8.333%; }
158
+ .palm-two-twelfths { @extend .palm-one-sixth; }
159
+ .palm-three-twelfths { @extend .palm-one-quarter; }
160
+ .palm-four-twelfths { @extend .palm-one-third; }
161
+ .palm-five-twelfths { width:41.666% }
162
+ .palm-six-twelfths { @extend .palm-one-half; }
163
+ .palm-seven-twelfths { width:58.333%; }
164
+ .palm-eight-twelfths { @extend .palm-two-thirds; }
165
+ .palm-nine-twelfths { @extend .palm-three-quarters; }
166
+ .palm-ten-twelfths { @extend .palm-five-sixths; }
167
+ .palm-eleven-twelfths { width:91.666%; }
168
+
169
+ }/* end palm */
170
+
171
+ @include media-query(lap){
172
+
173
+ .lap-one-whole { width:100%; }
174
+
175
+ .lap-one-half { width:50%; }
176
+
177
+ .lap-one-third { width:33.333%; }
178
+ .lap-two-thirds { width:66.666%; }
179
+
180
+ .lap-one-quarter { width:25%; }
181
+ .lap-two-quarters { @extend .lap-one-half; }
182
+ .lap-three-quarters { width:75%; }
183
+
184
+ .lap-one-fifth { width:20%; }
185
+ .lap-two-fifths { width:40%; }
186
+ .lap-three-fifths { width:60%; }
187
+ .lap-four-fifths { width:80%; }
188
+
189
+ .lap-one-sixth { width:16.666%; }
190
+ .lap-two-sixths { @extend .lap-one-third; }
191
+ .lap-three-sixths { @extend .lap-one-half; }
192
+ .lap-four-sixths { @extend .lap-two-thirds; }
193
+ .lap-five-sixths { width:83.333%; }
194
+
195
+ .lap-one-eighth { width:12.5%; }
196
+ .lap-two-eighths { @extend .lap-one-quarter; }
197
+ .lap-three-eighths { width:37.5%; }
198
+ .lap-four-eighths { @extend .lap-one-half; }
199
+ .lap-five-eighths { width:62.5%; }
200
+ .lap-six-eighths { @extend .lap-three-quarters; }
201
+ .lap-seven-eighths { width:87.5%; }
202
+
203
+ .lap-one-tenth { width:10%; }
204
+ .lap-two-tenths { @extend .lap-one-fifth; }
205
+ .lap-three-tenths { width:30%; }
206
+ .lap-four-tenths { @extend .lap-two-fifths; }
207
+ .lap-five-tenths { @extend .lap-one-half; }
208
+ .lap-six-tenths { @extend .lap-three-fifths; }
209
+ .lap-seven-tenths { width:70%; }
210
+ .lap-eight-tenths { @extend .lap-four-fifths; }
211
+ .lap-nine-tenths { width:90%; }
212
+
213
+ .lap-one-twelfth { width:8.333%; }
214
+ .lap-two-twelfths { @extend .lap-one-sixth; }
215
+ .lap-three-twelfths { @extend .lap-one-quarter; }
216
+ .lap-four-twelfths { @extend .lap-one-third; }
217
+ .lap-five-twelfths { width:41.666% }
218
+ .lap-six-twelfths { @extend .lap-one-half; }
219
+ .lap-seven-twelfths { width:58.333%; }
220
+ .lap-eight-twelfths { @extend .lap-two-thirds; }
221
+ .lap-nine-twelfths { @extend .lap-three-quarters; }
222
+ .lap-ten-twelfths { @extend .lap-five-sixths; }
223
+ .lap-eleven-twelfths { width:91.666%; }
224
+
225
+ }/* end lap */
226
+
227
+ @include media-query(portable){
228
+
229
+ .portable-one-whole { width:100%; }
230
+
231
+ .portable-one-half { width:50%; }
232
+
233
+ .portable-one-third { width:33.333%; }
234
+ .portable-two-thirds { width:66.666%; }
235
+
236
+ .portable-one-quarter { width:25%; }
237
+ .portable-two-quarters { @extend .portable-one-half; }
238
+ .portable-three-quarters { width:75%; }
239
+
240
+ .portable-one-fifth { width:20%; }
241
+ .portable-two-fifths { width:40%; }
242
+ .portable-three-fifths { width:60%; }
243
+ .portable-four-fifths { width:80%; }
244
+
245
+ .portable-one-sixth { width:16.666%; }
246
+ .portable-two-sixths { @extend .portable-one-third; }
247
+ .portable-three-sixths { @extend .portable-one-half; }
248
+ .portable-four-sixths { @extend .portable-two-thirds; }
249
+ .portable-five-sixths { width:83.333%; }
250
+
251
+ .portable-one-eighth { width:12.5%; }
252
+ .portable-two-eighths { @extend .portable-one-quarter; }
253
+ .portable-three-eighths { width:37.5%; }
254
+ .portable-four-eighths { @extend .portable-one-half; }
255
+ .portable-five-eighths { width:62.5%; }
256
+ .portable-six-eighths { @extend .portable-three-quarters; }
257
+ .portable-seven-eighths { width:87.5%; }
258
+
259
+ .portable-one-tenth { width:10%; }
260
+ .portable-two-tenths { @extend .portable-one-fifth; }
261
+ .portable-three-tenths { width:30%; }
262
+ .portable-four-tenths { @extend .portable-two-fifths; }
263
+ .portable-five-tenths { @extend .portable-one-half; }
264
+ .portable-six-tenths { @extend .portable-three-fifths; }
265
+ .portable-seven-tenths { width:70%; }
266
+ .portable-eight-tenths { @extend .portable-four-fifths; }
267
+ .portable-nine-tenths { width:90%; }
268
+
269
+ .portable-one-twelfth { width:8.333%; }
270
+ .portable-two-twelfths { @extend .portable-one-sixth; }
271
+ .portable-three-twelfths { @extend .portable-one-quarter; }
272
+ .portable-four-twelfths { @extend .portable-one-third; }
273
+ .portable-five-twelfths { width:41.666% }
274
+ .portable-six-twelfths { @extend .portable-one-half; }
275
+ .portable-seven-twelfths { width:58.333%; }
276
+ .portable-eight-twelfths { @extend .portable-two-thirds; }
277
+ .portable-nine-twelfths { @extend .portable-three-quarters; }
278
+ .portable-ten-twelfths { @extend .portable-five-sixths; }
279
+ .portable-eleven-twelfths { width:91.666%; }
280
+
281
+ }/* end portable */
282
+
283
+ @include media-query(desk){
284
+
285
+ .desk-one-whole { width:100%; }
286
+
287
+ .desk-one-half { width:50%; }
288
+
289
+ .desk-one-third { width:33.333%; }
290
+ .desk-two-thirds { width:66.666%; }
291
+
292
+ .desk-one-quarter { width:25%; }
293
+ .desk-two-quarters { @extend .desk-one-half; }
294
+ .desk-three-quarters { width:75%; }
295
+
296
+ .desk-one-fifth { width:20%; }
297
+ .desk-two-fifths { width:40%; }
298
+ .desk-three-fifths { width:60%; }
299
+ .desk-four-fifths { width:80%; }
300
+
301
+ .desk-one-sixth { width:16.666%; }
302
+ .desk-two-sixths { @extend .desk-one-third; }
303
+ .desk-three-sixths { @extend .desk-one-half; }
304
+ .desk-four-sixths { @extend .desk-two-thirds; }
305
+ .desk-five-sixths { width:83.333%; }
306
+
307
+ .desk-one-eighth { width:12.5%; }
308
+ .desk-two-eighths { @extend .desk-one-quarter; }
309
+ .desk-three-eighths { width:37.5%; }
310
+ .desk-four-eighths { @extend .desk-one-half; }
311
+ .desk-five-eighths { width:62.5%; }
312
+ .desk-six-eighths { @extend .desk-three-quarters; }
313
+ .desk-seven-eighths { width:87.5%; }
314
+
315
+ .desk-one-tenth { width:10%; }
316
+ .desk-two-tenths { @extend .desk-one-fifth; }
317
+ .desk-three-tenths { width:30%; }
318
+ .desk-four-tenths { @extend .desk-two-fifths; }
319
+ .desk-five-tenths { @extend .desk-one-half; }
320
+ .desk-six-tenths { @extend .desk-three-fifths; }
321
+ .desk-seven-tenths { width:70%; }
322
+ .desk-eight-tenths { @extend .desk-four-fifths; }
323
+ .desk-nine-tenths { width:90%; }
324
+
325
+ .desk-one-twelfth { width:8.333%; }
326
+ .desk-two-twelfths { @extend .desk-one-sixth; }
327
+ .desk-three-twelfths { @extend .desk-one-quarter; }
328
+ .desk-four-twelfths { @extend .desk-one-third; }
329
+ .desk-five-twelfths { width:41.666% }
330
+ .desk-six-twelfths { @extend .desk-one-half; }
331
+ .desk-seven-twelfths { width:58.333%; }
332
+ .desk-eight-twelfths { @extend .desk-two-thirds; }
333
+ .desk-nine-twelfths { @extend .desk-three-quarters; }
334
+ .desk-ten-twelfths { @extend .desk-five-sixths; }
335
+ .desk-eleven-twelfths { width:91.666%; }
336
+
337
+ }/* end desk */
338
+
339
+ } /* endif */
@@ -35,6 +35,15 @@ $base-line-height: 24!default;
35
35
  $brand-round: 4!default;
36
36
 
37
37
 
38
+ /**
39
+ * Responsiveness?
40
+ * Tell inuit.css when breakpoints start, in pixels.
41
+ */
42
+ $responsive: true;
43
+ $lap-start: 481;
44
+ $desk-start: 1024;
45
+
46
+
38
47
  /**
39
48
  * Font-sizes (in pixels). Refer to relevant sections for their implementations.
40
49
  */
@@ -9,6 +9,8 @@
9
9
  * Here we set up some variables, include the inuit.css framework, then add our
10
10
  * project-specific components afterwards.
11
11
  */
12
+
13
+
12
14
  // Setup
13
15
  @import "vars";
14
16
  @import "compass-inuit";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-inuit
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: '4.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: