minable 0.0.1
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/.gitignore +8 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +52 -0
- data/LICENSE +51 -0
- data/Rakefile +9 -0
- data/app/assets/stylesheets/_global.scss +8 -0
- data/app/assets/stylesheets/_minable.scss +36 -0
- data/app/assets/stylesheets/_settings.scss +25 -0
- data/app/assets/stylesheets/_shame.scss +1 -0
- data/app/assets/stylesheets/components/_all.scss +6 -0
- data/app/assets/stylesheets/components/_containers.scss +1 -0
- data/app/assets/stylesheets/components/_footer.scss +1 -0
- data/app/assets/stylesheets/components/_header.scss +1 -0
- data/app/assets/stylesheets/components/_typography.scss +1 -0
- data/app/assets/stylesheets/framework/_all.scss +10 -0
- data/app/assets/stylesheets/framework/_normalize.scss +406 -0
- data/app/assets/stylesheets/framework/_typecsset.scss +340 -0
- data/app/assets/stylesheets/framework/grid/_all.scss +4 -0
- data/app/assets/stylesheets/framework/grid/_grid-core.scss +58 -0
- data/app/assets/stylesheets/framework/grid/_grid-unit.scss +195 -0
- data/app/assets/stylesheets/helpers/_all.scss +5 -0
- data/app/assets/stylesheets/helpers/classes/_all.scss +3 -0
- data/app/assets/stylesheets/helpers/classes/_display-classes.scss +33 -0
- data/app/assets/stylesheets/helpers/functions/_all.scss +3 -0
- data/app/assets/stylesheets/helpers/functions/_strip-unit.scss +4 -0
- data/app/assets/stylesheets/helpers/mixins/_all.scss +4 -0
- data/app/assets/stylesheets/helpers/mixins/_rem-fallback.scss +33 -0
- data/app/assets/stylesheets/helpers/mixins/_replace-text.scss +16 -0
- data/app/assets/stylesheets/modules/_all.scss +1 -0
- data/app/assets/stylesheets/templates/_404.scss +1 -0
- data/app/assets/stylesheets/templates/_all.scss +3 -0
- data/app/assets/stylesheets/templates/_home.scss +1 -0
- data/bin/minable +4 -0
- data/features/install.feature +29 -0
- data/features/step_definitions/minable_steps.rb +24 -0
- data/features/support/env.rb +1 -0
- data/features/support/minable_support.rb +19 -0
- data/features/update.feature +30 -0
- data/features/version.feature +6 -0
- data/lib/minable/engine.rb +4 -0
- data/lib/minable/generator.rb +80 -0
- data/lib/minable/version.rb +3 -0
- data/lib/minable.rb +27 -0
- data/lib/tasks/install.rake +20 -0
- data/minable.gemspec +28 -0
- data/readme.md +56 -0
- metadata +155 -0
@@ -0,0 +1,340 @@
|
|
1
|
+
/**
|
2
|
+
* Typecsset
|
3
|
+
*
|
4
|
+
* Typecsset is a small, unopinionated library for creating beautifully set type
|
5
|
+
* on the web. Typecsset gives perfect vertical rhythm at any configurable font
|
6
|
+
* size, as well as many other typographical niceties.
|
7
|
+
*/
|
8
|
+
|
9
|
+
|
10
|
+
//------------------------------------\\
|
11
|
+
// SETTINGS
|
12
|
+
//------------------------------------\\
|
13
|
+
// Typecsset needs some variables setting before it can get started. Some of
|
14
|
+
// these variables can be overriden by developers, others need to remain
|
15
|
+
// untouched because Typecsset will assign them automatically based on what
|
16
|
+
// you’ve told it.
|
17
|
+
|
18
|
+
// What would you like your base font-size to be? Define in pixels; the library
|
19
|
+
// will convert measurements to the most appropriate units (rems or unitless).
|
20
|
+
$typecsset-base-font-size: 16px !default;
|
21
|
+
$typecsset-base-line-height: 24px !default;
|
22
|
+
|
23
|
+
// Heading sizes
|
24
|
+
$typecsset-h1-size: 48px !default;
|
25
|
+
$typecsset-h2-size: 36px !default;
|
26
|
+
$typecsset-h3-size: 30px !default;
|
27
|
+
$typecsset-h4-size: 24px !default;
|
28
|
+
$typecsset-h5-size: 20px !default;
|
29
|
+
$typecsset-h6-size: 18px !default;
|
30
|
+
|
31
|
+
// Would you like indented (rather than spaced) paragraph delimiting?
|
32
|
+
$typecsset-indented-paragraphs: false !default;
|
33
|
+
|
34
|
+
// Would you like to show a baseline grid? This is handy during development.
|
35
|
+
$typecsset-show-baseline: false !default;
|
36
|
+
|
37
|
+
// Do not modify these variables; they are internal settings upon which the
|
38
|
+
// library depends.
|
39
|
+
$typecsset-magic-number: $typecsset-base-line-height;
|
40
|
+
$typecsset-magic-ratio: $typecsset-base-line-height / $typecsset-base-font-size;
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
//------------------------------------\\
|
47
|
+
// TOOLS
|
48
|
+
//------------------------------------\\
|
49
|
+
// Typecsset has a number of its own tools which it uses to generate its CSS
|
50
|
+
// more efficiently.
|
51
|
+
|
52
|
+
// Quickly generate a font-size in rems, with a pixel fallback, based on the
|
53
|
+
// value we pass into the mixin, e.g.:
|
54
|
+
//
|
55
|
+
// h1 {
|
56
|
+
// @include typecsset-font-size(24px);
|
57
|
+
// }
|
58
|
+
//
|
59
|
+
@mixin typecsset-font-size($font-size, $line-height: true) {
|
60
|
+
font-size: $font-size;
|
61
|
+
font-size: ($font-size / $typecsset-base-font-size) * 1rem;
|
62
|
+
|
63
|
+
@if $line-height == true {
|
64
|
+
line-height: ceil($font-size / $typecsset-base-line-height) * ($typecsset-base-line-height / $font-size);
|
65
|
+
}
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
// Space elements by an amount based on your magic number. Pass in the property
|
70
|
+
// to be indented as a paramater, e.g.:
|
71
|
+
//
|
72
|
+
// pre {
|
73
|
+
// @include typecsset-space(padding-left);
|
74
|
+
// }
|
75
|
+
//
|
76
|
+
@mixin typecsset-space($property) {
|
77
|
+
#{$property}: 2 * $typecsset-magic-number;
|
78
|
+
#{$property}: 2 * $typecsset-magic-ratio + rem;
|
79
|
+
}
|
80
|
+
|
81
|
+
// A small, internally-used function to remove the units from a given value.
|
82
|
+
@function typecsset-strip-units($number) {
|
83
|
+
@return $number / ($number * 0 + 1);
|
84
|
+
}
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
/*------------------------------------*\
|
91
|
+
#SHARED
|
92
|
+
\*------------------------------------*/
|
93
|
+
/**
|
94
|
+
* A lot of elements in Typecsset need to share some declarations (mainly for
|
95
|
+
* vertical rhythm), so we `@extend` some silent classes.
|
96
|
+
*/
|
97
|
+
%typecsset-reset {
|
98
|
+
margin: 0;
|
99
|
+
padding: 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
%typecsset-vertical-rhythm {
|
103
|
+
@extend %typecsset-reset;
|
104
|
+
margin-bottom: $typecsset-magic-number;
|
105
|
+
margin-bottom: $typecsset-magic-ratio + rem;
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
/*------------------------------------*\
|
113
|
+
#BASE
|
114
|
+
\*------------------------------------*/
|
115
|
+
/**
|
116
|
+
* 1. Set the base element’s `font-size` to the value of your choosing.
|
117
|
+
* 2. Work out the unitless `line-height` for your project based around your
|
118
|
+
* desired `line-height` (defined previously in pixels), and your project’s
|
119
|
+
* base font size.
|
120
|
+
*/
|
121
|
+
|
122
|
+
@if $typecsset-show-baseline == true {
|
123
|
+
/**
|
124
|
+
* 3. If you have chosen to display a baseline grid, we turn it on here.
|
125
|
+
*/
|
126
|
+
}
|
127
|
+
|
128
|
+
html {
|
129
|
+
font-size: $typecsset-base-font-size; /* [1] */
|
130
|
+
line-height: $typecsset-base-line-height / $typecsset-base-font-size; /* [2] */
|
131
|
+
|
132
|
+
// If you have chosen to display a baseline grid, we turn it on here.
|
133
|
+
@if $typecsset-show-baseline == true {
|
134
|
+
|
135
|
+
$typecsset-baseline-size: typecsset-strip-units($typecsset-magic-number);
|
136
|
+
|
137
|
+
background-image: url(http://basehold.it/i/#{$typecsset-baseline-size}); /* [3] */
|
138
|
+
}
|
139
|
+
|
140
|
+
}
|
141
|
+
|
142
|
+
body {
|
143
|
+
margin: 0;
|
144
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
/*------------------------------------*\
|
151
|
+
#HEADINGS
|
152
|
+
\*------------------------------------*/
|
153
|
+
h1 {
|
154
|
+
@extend %typecsset-vertical-rhythm;
|
155
|
+
@include typecsset-font-size($typecsset-h1-size);
|
156
|
+
}
|
157
|
+
|
158
|
+
h2 {
|
159
|
+
@extend %typecsset-vertical-rhythm;
|
160
|
+
@include typecsset-font-size($typecsset-h2-size);
|
161
|
+
}
|
162
|
+
|
163
|
+
h3 {
|
164
|
+
@extend %typecsset-vertical-rhythm;
|
165
|
+
@include typecsset-font-size($typecsset-h3-size);
|
166
|
+
}
|
167
|
+
|
168
|
+
h4 {
|
169
|
+
@extend %typecsset-vertical-rhythm;
|
170
|
+
@include typecsset-font-size($typecsset-h4-size);
|
171
|
+
}
|
172
|
+
|
173
|
+
h5 {
|
174
|
+
@extend %typecsset-vertical-rhythm;
|
175
|
+
@include typecsset-font-size($typecsset-h5-size);
|
176
|
+
}
|
177
|
+
|
178
|
+
h6 {
|
179
|
+
@extend %typecsset-vertical-rhythm;
|
180
|
+
@include typecsset-font-size($typecsset-h6-size);
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
/*------------------------------------*\
|
188
|
+
#LISTS
|
189
|
+
\*------------------------------------*/
|
190
|
+
ul, ol, dd {
|
191
|
+
@extend %typecsset-vertical-rhythm;
|
192
|
+
@include typecsset-space(margin-left);
|
193
|
+
}
|
194
|
+
|
195
|
+
li > ul,
|
196
|
+
li > ol {
|
197
|
+
margin-bottom: 0;
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
/*------------------------------------*\
|
205
|
+
#PARAGRAPHS
|
206
|
+
\*------------------------------------*/
|
207
|
+
p {
|
208
|
+
@extend %typecsset-vertical-rhythm;
|
209
|
+
|
210
|
+
@if $typecsset-indented-paragraphs == true {
|
211
|
+
|
212
|
+
+ p {
|
213
|
+
@include typecsset-space(text-indent);
|
214
|
+
margin-top: -$typecsset-magic-number;
|
215
|
+
margin-top: -$typecsset-magic-ratio + rem;
|
216
|
+
}
|
217
|
+
|
218
|
+
}
|
219
|
+
|
220
|
+
}
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Not strictly a paragraph, but probably doesn’t need its own section.
|
224
|
+
*/
|
225
|
+
address {
|
226
|
+
@extend %typecsset-vertical-rhythm;
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
/*------------------------------------*\
|
234
|
+
#CODE
|
235
|
+
\*------------------------------------*/
|
236
|
+
pre {
|
237
|
+
@extend %typecsset-vertical-rhythm;
|
238
|
+
}
|
239
|
+
|
240
|
+
/**
|
241
|
+
* 1. Fix an odd quirk whereby, without this, code blocks are rendered at a
|
242
|
+
* font-size smaller than 1em.
|
243
|
+
*/
|
244
|
+
code,
|
245
|
+
kbd,
|
246
|
+
pre,
|
247
|
+
samp {
|
248
|
+
font-family: monospace, monospace; /* [1] */
|
249
|
+
}
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
/*------------------------------------*\
|
256
|
+
#QUOTES
|
257
|
+
\*------------------------------------*/
|
258
|
+
/**
|
259
|
+
* 1. Hang the opening quote of the blockquote.
|
260
|
+
*/
|
261
|
+
blockquote {
|
262
|
+
text-indent: -0.4em; /* [1] */
|
263
|
+
}
|
264
|
+
|
265
|
+
/**
|
266
|
+
* Set up quote marks on quoting elements. This is very English-based, so we are
|
267
|
+
* using “, ”, ‘, and ’ quotes.
|
268
|
+
*/
|
269
|
+
blockquote {
|
270
|
+
@extend %typecsset-vertical-rhythm;
|
271
|
+
quotes: "“" "”";
|
272
|
+
@include typecsset-space(margin-left);
|
273
|
+
|
274
|
+
p {
|
275
|
+
|
276
|
+
&:before {
|
277
|
+
content: "“";
|
278
|
+
content: open-quote;
|
279
|
+
}
|
280
|
+
|
281
|
+
&:after {
|
282
|
+
content: "";
|
283
|
+
content: no-close-quote;
|
284
|
+
}
|
285
|
+
|
286
|
+
&:last-of-type:after {
|
287
|
+
content: "”";
|
288
|
+
content: close-quote;
|
289
|
+
}
|
290
|
+
|
291
|
+
}
|
292
|
+
|
293
|
+
}
|
294
|
+
|
295
|
+
q {
|
296
|
+
quotes: "‘" "’" "“" "”";
|
297
|
+
|
298
|
+
&:before {
|
299
|
+
content: "‘";
|
300
|
+
content: open-quote;
|
301
|
+
}
|
302
|
+
|
303
|
+
&:after {
|
304
|
+
content: "’";
|
305
|
+
content: close-quote;
|
306
|
+
}
|
307
|
+
|
308
|
+
q:before {
|
309
|
+
content: "“";
|
310
|
+
content: open-quote;
|
311
|
+
}
|
312
|
+
|
313
|
+
q:after{
|
314
|
+
content: "”";
|
315
|
+
content: close-quote;
|
316
|
+
}
|
317
|
+
|
318
|
+
}
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
/*------------------------------------*\
|
325
|
+
#TABLES
|
326
|
+
\*------------------------------------*/
|
327
|
+
/**
|
328
|
+
* Crude table styles; tables are very difficult to keep on the baseline.
|
329
|
+
*/
|
330
|
+
table {
|
331
|
+
@extend %typecsset-vertical-rhythm;
|
332
|
+
width: 100%;
|
333
|
+
border-collapse: collapse;
|
334
|
+
border-spacing: 0;
|
335
|
+
}
|
336
|
+
|
337
|
+
th,
|
338
|
+
td {
|
339
|
+
padding: $typecsset-base-line-height / 2;
|
340
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// Minable Grid Core
|
2
|
+
|
3
|
+
/* =================== Basic usage ===================
|
4
|
+
|
5
|
+
<div class="min-container"> Sets outer container (auto centered)
|
6
|
+
<div class="min-g"> Sets responive row container, negative margin to counters outer margin
|
7
|
+
<div class="min-u-1-4"> Sets 1/4 width element
|
8
|
+
|
9
|
+
</div>
|
10
|
+
<div class="min-u-3-4"> Sets 3/4 width element
|
11
|
+
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
*/
|
17
|
+
|
18
|
+
.min-g {
|
19
|
+
display: -webkit-flex;
|
20
|
+
-webkit-flex-flow: row wrap;
|
21
|
+
// IE10 uses display: flexbox
|
22
|
+
display: -ms-flexbox;
|
23
|
+
-ms-flex-flow: row wrap;
|
24
|
+
|
25
|
+
font-size: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
.min-u {
|
29
|
+
display: inline-block;
|
30
|
+
*display: inline;
|
31
|
+
}
|
32
|
+
|
33
|
+
// Requried variables - leaves these be.
|
34
|
+
$breakpoints: false !default; // Required for the grid extender
|
35
|
+
$site-usable-gutter: strip-unit($site-gutter) / 2; // Cuts the defined gutter in half for use as padding
|
36
|
+
|
37
|
+
// This element would wrap any outer most elements to restrict them to the $site-width
|
38
|
+
.min-container {
|
39
|
+
max-width: $site-width;
|
40
|
+
margin: 0 auto;
|
41
|
+
}
|
42
|
+
|
43
|
+
// Set a negative offset for gutter padding
|
44
|
+
.min-g .min-g {
|
45
|
+
margin-right: -#{$site-usable-gutter}px;
|
46
|
+
margin-left: -#{$site-usable-gutter}px;
|
47
|
+
}
|
48
|
+
|
49
|
+
// We want this guff to apply to our custom grids as well.
|
50
|
+
[class *= "min-u"] {
|
51
|
+
display: inline-block;
|
52
|
+
*display: inline;
|
53
|
+
font-size: $browser-default-font-size;
|
54
|
+
padding-right: #{$site-usable-gutter}px;
|
55
|
+
padding-left: #{$site-usable-gutter}px;
|
56
|
+
vertical-align: top;
|
57
|
+
zoom: 1;
|
58
|
+
}
|
@@ -0,0 +1,195 @@
|
|
1
|
+
// Minable Grid Units
|
2
|
+
|
3
|
+
// Sets default grid classes
|
4
|
+
.min-u-1 {
|
5
|
+
width: 100%;
|
6
|
+
}
|
7
|
+
|
8
|
+
.min-u-1-2 {
|
9
|
+
width: 50%;
|
10
|
+
*width: 49.969%;
|
11
|
+
}
|
12
|
+
|
13
|
+
.min-u-1-3 {
|
14
|
+
width: 33.3333%;
|
15
|
+
*width: 33.3023%;
|
16
|
+
}
|
17
|
+
|
18
|
+
.min-u-2-3 {
|
19
|
+
width: 66.6667%;
|
20
|
+
*width: 66.6357%;
|
21
|
+
}
|
22
|
+
|
23
|
+
.min-u-1-4 {
|
24
|
+
width: 25%;
|
25
|
+
*width: 24.969%;
|
26
|
+
}
|
27
|
+
|
28
|
+
.min-u-3-4 {
|
29
|
+
width: 75%;
|
30
|
+
*width: 74.969%;
|
31
|
+
}
|
32
|
+
|
33
|
+
.min-u-1-5 {
|
34
|
+
width: 20%;
|
35
|
+
*width: 19.969%;
|
36
|
+
}
|
37
|
+
|
38
|
+
.min-u-2-5 {
|
39
|
+
width: 40%;
|
40
|
+
*width: 39.969%;
|
41
|
+
}
|
42
|
+
|
43
|
+
.min-u-3-5 {
|
44
|
+
width: 60%;
|
45
|
+
*width: 59.969%;
|
46
|
+
}
|
47
|
+
|
48
|
+
.min-u-4-5 {
|
49
|
+
width: 80%;
|
50
|
+
*width: 79.969%;
|
51
|
+
}
|
52
|
+
|
53
|
+
.min-u-1-6 {
|
54
|
+
width: 16.6667%;
|
55
|
+
*width: 16.6357%;
|
56
|
+
}
|
57
|
+
|
58
|
+
.min-u-5-6 {
|
59
|
+
width: 83.3333%;
|
60
|
+
*width: 83.3023%;
|
61
|
+
}
|
62
|
+
|
63
|
+
.min-u-1-8 {
|
64
|
+
width: 12.5%;
|
65
|
+
*width: 12.469%;
|
66
|
+
}
|
67
|
+
|
68
|
+
.min-u-3-8 {
|
69
|
+
width: 37.5%;
|
70
|
+
*width: 37.469%;
|
71
|
+
}
|
72
|
+
|
73
|
+
.min-u-5-8 {
|
74
|
+
width: 62.5%;
|
75
|
+
*width: 62.469%;
|
76
|
+
}
|
77
|
+
|
78
|
+
.min-u-7-8 {
|
79
|
+
width: 87.5%;
|
80
|
+
*width: 87.469%;
|
81
|
+
}
|
82
|
+
|
83
|
+
.min-u-1-12 {
|
84
|
+
width: 8.3333%;
|
85
|
+
*width: 8.3023%;
|
86
|
+
}
|
87
|
+
|
88
|
+
.min-u-5-12 {
|
89
|
+
width: 41.6667%;
|
90
|
+
*width: 41.6357%;
|
91
|
+
}
|
92
|
+
|
93
|
+
.min-u-7-12 {
|
94
|
+
width: 58.3333%;
|
95
|
+
*width: 58.3023%;
|
96
|
+
}
|
97
|
+
|
98
|
+
.min-u-11-12 {
|
99
|
+
width: 91.6667%;
|
100
|
+
*width: 91.6357%;
|
101
|
+
}
|
102
|
+
|
103
|
+
// GRID EXTENDER
|
104
|
+
// Loop through each defined breakpoint to generate our grids (Set in settings.scss).
|
105
|
+
@if $breakpoints {
|
106
|
+
@each $breakpoint in $breakpoints {
|
107
|
+
|
108
|
+
// Get the breakpoint details.
|
109
|
+
$breakpoint-name: nth($breakpoint,1);
|
110
|
+
$breakpoint-value: strip-unit(nth($breakpoint,2)) / strip-unit($browser-default-font-size);
|
111
|
+
|
112
|
+
// Define your grid.
|
113
|
+
@media (max-width: #{$breakpoint-value}em) {
|
114
|
+
.min-u-#{$breakpoint-name}-1 {
|
115
|
+
width: 100%;
|
116
|
+
}
|
117
|
+
.min-u-#{$breakpoint-name}-1-2 {
|
118
|
+
width: 50%;
|
119
|
+
*width: 49.969%;
|
120
|
+
}
|
121
|
+
.min-u-#{$breakpoint-name}-1-3 {
|
122
|
+
width: 33.33333%;
|
123
|
+
*width: 33.3023%;
|
124
|
+
}
|
125
|
+
.min-u-#{$breakpoint-name}-2-3 {
|
126
|
+
width: 66.66666%;
|
127
|
+
*width: 66.6357%;
|
128
|
+
}
|
129
|
+
.min-u-#{$breakpoint-name}-1-4 {
|
130
|
+
width: 25%;
|
131
|
+
*width: 24.969%;
|
132
|
+
}
|
133
|
+
.min-u-#{$breakpoint-name}-3-4 {
|
134
|
+
width: 75%;
|
135
|
+
*width: 74.969%;
|
136
|
+
}
|
137
|
+
.min-u-#{$breakpoint-name}-1-5 {
|
138
|
+
width: 20%;
|
139
|
+
*width: 19.969%;
|
140
|
+
}
|
141
|
+
.min-u-#{$breakpoint-name}-2-5 {
|
142
|
+
width: 40%;
|
143
|
+
*width: 39.969%;
|
144
|
+
}
|
145
|
+
.min-u-#{$breakpoint-name}-3-5 {
|
146
|
+
width: 60%;
|
147
|
+
*width: 59.969%;
|
148
|
+
}
|
149
|
+
.min-u-#{$breakpoint-name}-4-5 {
|
150
|
+
width: 80%;
|
151
|
+
*width: 79.969%;
|
152
|
+
}
|
153
|
+
.min-u-#{$breakpoint-name}-1-6 {
|
154
|
+
width: 16.666%;
|
155
|
+
*width: 16.6357%;
|
156
|
+
}
|
157
|
+
.min-u-#{$breakpoint-name}-5-6 {
|
158
|
+
width: 83.33%;
|
159
|
+
*width: 83.3023%;
|
160
|
+
}
|
161
|
+
.min-u-#{$breakpoint-name}-1-8 {
|
162
|
+
width: 12.5%;
|
163
|
+
*width: 12.469%;
|
164
|
+
}
|
165
|
+
.min-u-#{$breakpoint-name}-3-8 {
|
166
|
+
width: 37.5%;
|
167
|
+
*width: 37.469%;
|
168
|
+
}
|
169
|
+
.min-u-#{$breakpoint-name}-5-8 {
|
170
|
+
width: 62.5%;
|
171
|
+
*width: 62.469%;
|
172
|
+
}
|
173
|
+
.min-u-#{$breakpoint-name}-7-8 {
|
174
|
+
width: 87.5%;
|
175
|
+
*width: 87.469%;
|
176
|
+
}
|
177
|
+
.min-u-#{$breakpoint-name}-1-12 {
|
178
|
+
width: 8.3333%;
|
179
|
+
*width: 8.3023%;
|
180
|
+
}
|
181
|
+
.min-u-#{$breakpoint-name}-5-12 {
|
182
|
+
width: 41.6666%;
|
183
|
+
*width: 41.6357%;
|
184
|
+
}
|
185
|
+
.min-u-#{$breakpoint-name}-7-12 {
|
186
|
+
width: 58.3333%;
|
187
|
+
*width: 58.3023%;
|
188
|
+
}
|
189
|
+
.min-u-#{$breakpoint-name}-11-12 {
|
190
|
+
width: 91.6666%;
|
191
|
+
*width: 91.6357%;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
};
|
195
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Contains any classes used to hide or show elements, these will only be output when used
|
2
|
+
|
3
|
+
// Hide text from visually-able users but keep it available for screen readers.
|
4
|
+
.screen-reader-text {
|
5
|
+
position: absolute !important;
|
6
|
+
clip: rect(1px, 1px, 1px, 1px);
|
7
|
+
clip: rect(1px 1px 1px 1px); // IE6, IE7 (deprecated syntax)
|
8
|
+
padding:0 !important;
|
9
|
+
border:0 !important;
|
10
|
+
height: 1px !important;
|
11
|
+
width: 1px !important;
|
12
|
+
overflow: hidden;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Hide elements from visual users but not from screen readers
|
16
|
+
%visually-hidden
|
17
|
+
{
|
18
|
+
position: absolute !important;
|
19
|
+
clip: rect(1px 1px 1px 1px); /* IE6, IE7 (deprecated syntax) */
|
20
|
+
clip: rect(1px, 1px, 1px, 1px);
|
21
|
+
padding:0 !important;
|
22
|
+
border:0 !important;
|
23
|
+
height: 1px !important;
|
24
|
+
width: 1px !important;
|
25
|
+
overflow: hidden;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Hide elements from 'all the people'
|
29
|
+
%fully-hidden
|
30
|
+
{
|
31
|
+
display: none;
|
32
|
+
visibility: hidden;
|
33
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// My modified version of Karl Merkli's rem mixin from http://css-tricks.com/snippets/css/less-mixin-for-rem-font-sizing/.
|
2
|
+
|
3
|
+
// Pass in a property name and the target pixel values and the mixin will spit out the pixel fallback version and the rem version.
|
4
|
+
|
5
|
+
@mixin rem-fallback($property, $values...) {
|
6
|
+
$max: length($values);
|
7
|
+
$pxValues: '';
|
8
|
+
$remValues: '';
|
9
|
+
|
10
|
+
@for $i from 1 through $max {
|
11
|
+
$value: strip-unit(nth($values, $i));
|
12
|
+
|
13
|
+
// If the value is '0' don't output the unit.
|
14
|
+
@if $value == 0 {
|
15
|
+
$pxValues: #{$pxValues + $value*1};
|
16
|
+
$remValues: #{$remValues + $value/16};
|
17
|
+
}
|
18
|
+
|
19
|
+
// Else do output the unit.
|
20
|
+
@else {
|
21
|
+
$pxValues: #{$pxValues + $value*1}px;
|
22
|
+
$remValues: #{$remValues + $value/16}rem;
|
23
|
+
}
|
24
|
+
|
25
|
+
@if $i < $max {
|
26
|
+
$pxValues: #{$pxValues + " "};
|
27
|
+
$remValues: #{$remValues + " "};
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
#{$property}: $pxValues;
|
32
|
+
#{$property}: $remValues;
|
33
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Replace text with image
|
2
|
+
@mixin replace-text {
|
3
|
+
overflow: hidden;
|
4
|
+
text-indent: 100%;
|
5
|
+
white-space: nowrap;
|
6
|
+
|
7
|
+
.lt-ie8 & {
|
8
|
+
border: 0;
|
9
|
+
color: transparent;
|
10
|
+
font: 0/0 a;
|
11
|
+
overflow: auto;
|
12
|
+
text-indent: 0;
|
13
|
+
text-shadow: none;
|
14
|
+
white-space: normal;
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
// Use this to include styling for specific jQuery plugins etc
|
@@ -0,0 +1 @@
|
|
1
|
+
// 404 page styling, make it pretty!
|