jekyll-theme-prologue 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +63 -0
  3. data/README.md +93 -0
  4. data/_includes/footer.html +10 -0
  5. data/_includes/head.html +19 -0
  6. data/_includes/header.html +78 -0
  7. data/_includes/section.html +6 -0
  8. data/_layouts/default.html +59 -0
  9. data/_sample-config.yml +61 -0
  10. data/_sass/jekyll-theme-prologue.scss +1050 -0
  11. data/_sass/libs/_functions.scss +34 -0
  12. data/_sass/libs/_mixins.scss +398 -0
  13. data/_sass/libs/_skel.scss +587 -0
  14. data/_sass/libs/_vars.scss +22 -0
  15. data/assets/css/font-awesome.min.css +4 -0
  16. data/assets/css/ie8.css +52 -0
  17. data/assets/css/ie9.css +15 -0
  18. data/assets/css/images/ie/grad0-15.svg +9 -0
  19. data/assets/css/images/overlay.png +0 -0
  20. data/assets/css/main.scss +5 -0
  21. data/assets/fonts/FontAwesome.otf +0 -0
  22. data/assets/fonts/fontawesome-webfont.eot +0 -0
  23. data/assets/fonts/fontawesome-webfont.svg +685 -0
  24. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  25. data/assets/fonts/fontawesome-webfont.woff +0 -0
  26. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  27. data/assets/images/avatar.jpg +0 -0
  28. data/assets/images/banner.jpg +0 -0
  29. data/assets/images/pic02.jpg +0 -0
  30. data/assets/images/pic03.jpg +0 -0
  31. data/assets/images/pic04.jpg +0 -0
  32. data/assets/images/pic05.jpg +0 -0
  33. data/assets/images/pic06.jpg +0 -0
  34. data/assets/images/pic07.jpg +0 -0
  35. data/assets/images/pic08.jpg +0 -0
  36. data/assets/images/screenshot.png +0 -0
  37. data/assets/js/ie/PIE.htc +96 -0
  38. data/assets/js/ie/backgroundsize.min.htc +7 -0
  39. data/assets/js/ie/html5shiv.js +8 -0
  40. data/assets/js/ie/respond.min.js +6 -0
  41. data/assets/js/jquery.min.js +5 -0
  42. data/assets/js/jquery.scrolly.min.js +2 -0
  43. data/assets/js/jquery.scrollzer.min.js +2 -0
  44. data/assets/js/main.js +119 -0
  45. data/assets/js/skel.min.js +2 -0
  46. data/assets/js/util.js +587 -0
  47. metadata +118 -0
@@ -0,0 +1,34 @@
1
+ /// Gets a duration value.
2
+ /// @param {string} $keys Key(s).
3
+ /// @return {string} Value.
4
+ @function _duration($keys...) {
5
+ @return val($duration, $keys...);
6
+ }
7
+
8
+ /// Gets a font value.
9
+ /// @param {string} $keys Key(s).
10
+ /// @return {string} Value.
11
+ @function _font($keys...) {
12
+ @return val($font, $keys...);
13
+ }
14
+
15
+ /// Gets a misc value.
16
+ /// @param {string} $keys Key(s).
17
+ /// @return {string} Value.
18
+ @function _misc($keys...) {
19
+ @return val($misc, $keys...);
20
+ }
21
+
22
+ /// Gets a palette value.
23
+ /// @param {string} $keys Key(s).
24
+ /// @return {string} Value.
25
+ @function _palette($keys...) {
26
+ @return val($palette, $keys...);
27
+ }
28
+
29
+ /// Gets a size value.
30
+ /// @param {string} $keys Key(s).
31
+ /// @return {string} Value.
32
+ @function _size($keys...) {
33
+ @return val($size, $keys...);
34
+ }
@@ -0,0 +1,398 @@
1
+ /// Makes an element's :before pseudoelement a FontAwesome icon.
2
+ /// @param {string} $content Optional content value to use.
3
+ /// @param {string} $where Optional pseudoelement to target (before or after).
4
+ @mixin icon($content: false, $where: before) {
5
+
6
+ text-decoration: none;
7
+
8
+ &:#{$where} {
9
+
10
+ @if $content {
11
+ content: $content;
12
+ }
13
+
14
+ -moz-osx-font-smoothing: grayscale;
15
+ -webkit-font-smoothing: antialiased;
16
+ font-family: FontAwesome;
17
+ font-style: normal;
18
+ font-weight: normal;
19
+ text-transform: none !important;
20
+
21
+ }
22
+
23
+ }
24
+
25
+ /// Applies padding to an element, taking the current element-margin value into account.
26
+ /// @param {mixed} $tb Top/bottom padding.
27
+ /// @param {mixed} $lr Left/right padding.
28
+ /// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
29
+ /// @param {bool} $important If true, adds !important.
30
+ @mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
31
+
32
+ @if $important {
33
+ $important: '!important';
34
+ }
35
+
36
+ $x: 0.1em;
37
+
38
+ @if unit(_size(element-margin)) == 'rem' {
39
+ $x: 0.1rem;
40
+ }
41
+
42
+ padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
43
+
44
+ }
45
+
46
+ /// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp).
47
+ /// @param {string} $svg SVG data URL.
48
+ /// @return {string} Encoded SVG data URL.
49
+ @function svg-url($svg) {
50
+
51
+ $svg: str-replace($svg, '"', '\'');
52
+ $svg: str-replace($svg, '%', '%25');
53
+ $svg: str-replace($svg, '<', '%3C');
54
+ $svg: str-replace($svg, '>', '%3E');
55
+ $svg: str-replace($svg, '&', '%26');
56
+ $svg: str-replace($svg, '#', '%23');
57
+ $svg: str-replace($svg, '{', '%7B');
58
+ $svg: str-replace($svg, '}', '%7D');
59
+ $svg: str-replace($svg, ';', '%3B');
60
+
61
+ @return url("data:image/svg+xml;charset=utf8,#{$svg}");
62
+
63
+ }
64
+
65
+ /// Initializes base flexgrid classes.
66
+ /// @param {string} $vertical-align Vertical alignment of cells.
67
+ /// @param {string} $horizontal-align Horizontal alignment of cells.
68
+ @mixin flexgrid-base($vertical-align: null, $horizontal-align: null) {
69
+
70
+ // Grid.
71
+ @include vendor('display', 'flex');
72
+ @include vendor('flex-wrap', 'wrap');
73
+
74
+ // Vertical alignment.
75
+ @if ($vertical-align == top) {
76
+ @include vendor('align-items', 'flex-start');
77
+ }
78
+ @else if ($vertical-align == bottom) {
79
+ @include vendor('align-items', 'flex-end');
80
+ }
81
+ @else if ($vertical-align == center) {
82
+ @include vendor('align-items', 'center');
83
+ }
84
+ @else {
85
+ @include vendor('align-items', 'stretch');
86
+ }
87
+
88
+ // Horizontal alignment.
89
+ @if ($horizontal-align != null) {
90
+ text-align: $horizontal-align;
91
+ }
92
+
93
+ // Cells.
94
+ > * {
95
+ @include vendor('flex-shrink', '1');
96
+ @include vendor('flex-grow', '0');
97
+ }
98
+
99
+ }
100
+
101
+ /// Sets up flexgrid columns.
102
+ /// @param {integer} $columns Columns.
103
+ @mixin flexgrid-columns($columns) {
104
+
105
+ > * {
106
+ $cell-width: 100% / $columns;
107
+ width: #{$cell-width};
108
+ }
109
+
110
+ }
111
+
112
+ /// Sets up flexgrid gutters.
113
+ /// @param {integer} $columns Columns.
114
+ /// @param {number} $gutters Gutters.
115
+ @mixin flexgrid-gutters($columns, $gutters) {
116
+
117
+ // Apply padding.
118
+ > * {
119
+ $cell-width: 100% / $columns;
120
+
121
+ padding: ($gutters * 0.5);
122
+ width: $cell-width;
123
+ }
124
+
125
+ }
126
+
127
+ /// Sets up flexgrid gutters (flush).
128
+ /// @param {integer} $columns Columns.
129
+ /// @param {number} $gutters Gutters.
130
+ @mixin flexgrid-gutters-flush($columns, $gutters) {
131
+
132
+ // Apply padding.
133
+ > * {
134
+ $cell-width: 100% / $columns;
135
+ $cell-width-pad: $gutters / $columns;
136
+
137
+ padding: ($gutters * 0.5);
138
+ width: calc(#{$cell-width} + #{$cell-width-pad});
139
+ }
140
+
141
+ // Clear top/bottom gutters.
142
+ > :nth-child(-n + #{$columns}) {
143
+ padding-top: 0;
144
+ }
145
+
146
+ > :nth-last-child(-n + #{$columns}) {
147
+ padding-bottom: 0;
148
+ }
149
+
150
+ // Clear left/right gutters.
151
+ > :nth-child(#{$columns}n + 1) {
152
+ padding-left: 0;
153
+ }
154
+
155
+ > :nth-child(#{$columns}n) {
156
+ padding-right: 0;
157
+ }
158
+
159
+ // Adjust widths of leftmost and rightmost cells.
160
+ > :nth-child(#{$columns}n + 1),
161
+ > :nth-child(#{$columns}n) {
162
+ $cell-width: 100% / $columns;
163
+ $cell-width-pad: ($gutters / $columns) - ($gutters / 2);
164
+
165
+ width: calc(#{$cell-width} + #{$cell-width-pad});
166
+ }
167
+
168
+ }
169
+
170
+ /// Reset flexgrid gutters (flush only).
171
+ /// Used to override a previous set of flexgrid gutter classes.
172
+ /// @param {integer} $columns Columns.
173
+ /// @param {number} $gutters Gutters.
174
+ /// @param {integer} $prev-columns Previous columns.
175
+ @mixin flexgrid-gutters-flush-reset($columns, $gutters, $prev-columns) {
176
+
177
+ // Apply padding.
178
+ > * {
179
+ $cell-width: 100% / $prev-columns;
180
+ $cell-width-pad: $gutters / $prev-columns;
181
+
182
+ padding: ($gutters * 0.5);
183
+ width: calc(#{$cell-width} + #{$cell-width-pad});
184
+ }
185
+
186
+ // Clear top/bottom gutters.
187
+ > :nth-child(-n + #{$prev-columns}) {
188
+ padding-top: ($gutters * 0.5);
189
+ }
190
+
191
+ > :nth-last-child(-n + #{$prev-columns}) {
192
+ padding-bottom: ($gutters * 0.5);
193
+ }
194
+
195
+ // Clear left/right gutters.
196
+ > :nth-child(#{$prev-columns}n + 1) {
197
+ padding-left: ($gutters * 0.5);
198
+ }
199
+
200
+ > :nth-child(#{$prev-columns}n) {
201
+ padding-right: ($gutters * 0.5);
202
+ }
203
+
204
+ // Adjust widths of leftmost and rightmost cells.
205
+ > :nth-child(#{$prev-columns}n + 1),
206
+ > :nth-child(#{$prev-columns}n) {
207
+ $cell-width: 100% / $columns;
208
+ $cell-width-pad: $gutters / $columns;
209
+
210
+ padding: ($gutters * 0.5);
211
+ width: calc(#{$cell-width} + #{$cell-width-pad});
212
+ }
213
+
214
+ }
215
+
216
+ /// Adds debug styles to current flexgrid element.
217
+ @mixin flexgrid-debug() {
218
+
219
+ box-shadow: 0 0 0 1px red;
220
+
221
+ > * {
222
+ box-shadow: inset 0 0 0 1px blue;
223
+ position: relative;
224
+
225
+ > * {
226
+ position: relative;
227
+ box-shadow: inset 0 0 0 1px green;
228
+ }
229
+ }
230
+
231
+ }
232
+
233
+ /// Initializes the current element as a flexgrid.
234
+ /// @param {integer} $columns Columns (optional).
235
+ /// @param {number} $gutters Gutters (optional).
236
+ /// @param {bool} $flush If true, clears padding around the very edge of the grid.
237
+ @mixin flexgrid($settings: ()) {
238
+
239
+ // Settings.
240
+
241
+ // Debug.
242
+ $debug: false;
243
+
244
+ @if (map-has-key($settings, 'debug')) {
245
+ $debug: map-get($settings, 'debug');
246
+ }
247
+
248
+ // Vertical align.
249
+ $vertical-align: null;
250
+
251
+ @if (map-has-key($settings, 'vertical-align')) {
252
+ $vertical-align: map-get($settings, 'vertical-align');
253
+ }
254
+
255
+ // Horizontal align.
256
+ $horizontal-align: null;
257
+
258
+ @if (map-has-key($settings, 'horizontal-align')) {
259
+ $horizontal-align: map-get($settings, 'horizontal-align');
260
+ }
261
+
262
+ // Columns.
263
+ $columns: null;
264
+
265
+ @if (map-has-key($settings, 'columns')) {
266
+ $columns: map-get($settings, 'columns');
267
+ }
268
+
269
+ // Gutters.
270
+ $gutters: 0;
271
+
272
+ @if (map-has-key($settings, 'gutters')) {
273
+ $gutters: map-get($settings, 'gutters');
274
+ }
275
+
276
+ // Flush.
277
+ $flush: true;
278
+
279
+ @if (map-has-key($settings, 'flush')) {
280
+ $flush: map-get($settings, 'flush');
281
+ }
282
+
283
+ // Initialize base grid.
284
+ @include flexgrid-base($vertical-align, $horizontal-align);
285
+
286
+ // Debug?
287
+ @if ($debug) {
288
+ @include flexgrid-debug;
289
+ }
290
+
291
+ // Columns specified?
292
+ @if ($columns != null) {
293
+
294
+ // Initialize columns.
295
+ @include flexgrid-columns($columns);
296
+
297
+ // Gutters specified?
298
+ @if ($gutters > 0) {
299
+
300
+ // Flush gutters?
301
+ @if ($flush) {
302
+
303
+ // Initialize gutters (flush).
304
+ @include flexgrid-gutters-flush($columns, $gutters);
305
+
306
+ }
307
+
308
+ // Otherwise ...
309
+ @else {
310
+
311
+ // Initialize gutters.
312
+ @include flexgrid-gutters($columns, $gutters);
313
+
314
+ }
315
+
316
+ }
317
+
318
+ }
319
+
320
+ }
321
+
322
+ /// Resizes a previously-initialized grid.
323
+ /// @param {integer} $columns Columns.
324
+ /// @param {number} $gutters Gutters (optional).
325
+ /// @param {list} $reset A list of previously-initialized grid columns (only if $flush is true).
326
+ /// @param {bool} $flush If true, clears padding around the very edge of the grid.
327
+ @mixin flexgrid-resize($settings: ()) {
328
+
329
+ // Settings.
330
+
331
+ // Columns.
332
+ $columns: 1;
333
+
334
+ @if (map-has-key($settings, 'columns')) {
335
+ $columns: map-get($settings, 'columns');
336
+ }
337
+
338
+ // Gutters.
339
+ $gutters: 0;
340
+
341
+ @if (map-has-key($settings, 'gutters')) {
342
+ $gutters: map-get($settings, 'gutters');
343
+ }
344
+
345
+ // Previous columns.
346
+ $prev-columns: false;
347
+
348
+ @if (map-has-key($settings, 'prev-columns')) {
349
+ $prev-columns: map-get($settings, 'prev-columns');
350
+ }
351
+
352
+ // Flush.
353
+ $flush: true;
354
+
355
+ @if (map-has-key($settings, 'flush')) {
356
+ $flush: map-get($settings, 'flush');
357
+ }
358
+
359
+ // Resize columns.
360
+ @include flexgrid-columns($columns);
361
+
362
+ // Gutters specified?
363
+ @if ($gutters > 0) {
364
+
365
+ // Flush gutters?
366
+ @if ($flush) {
367
+
368
+ // Previous columns specified?
369
+ @if ($prev-columns) {
370
+
371
+ // Convert to list if it isn't one already.
372
+ @if (type-of($prev-columns) != list) {
373
+ $prev-columns: ($prev-columns);
374
+ }
375
+
376
+ // Step through list of previous columns and reset them.
377
+ @each $x in $prev-columns {
378
+ @include flexgrid-gutters-flush-reset($columns, $gutters, $x);
379
+ }
380
+
381
+ }
382
+
383
+ // Resize gutters (flush).
384
+ @include flexgrid-gutters-flush($columns, $gutters);
385
+
386
+ }
387
+
388
+ // Otherwise ...
389
+ @else {
390
+
391
+ // Resize gutters.
392
+ @include flexgrid-gutters($columns, $gutters);
393
+
394
+ }
395
+
396
+ }
397
+
398
+ }
@@ -0,0 +1,587 @@
1
+ // skel.scss v3.0.2-dev | (c) skel.io | MIT licensed */
2
+
3
+ // Vars.
4
+
5
+ /// Breakpoints.
6
+ /// @var {list}
7
+ $breakpoints: () !global;
8
+
9
+ /// Vendor prefixes.
10
+ /// @var {list}
11
+ $vendor-prefixes: (
12
+ '-moz-',
13
+ '-webkit-',
14
+ '-ms-',
15
+ ''
16
+ );
17
+
18
+ /// Properties that should be vendorized.
19
+ /// @var {list}
20
+ $vendor-properties: (
21
+ 'align-content',
22
+ 'align-items',
23
+ 'align-self',
24
+ 'animation',
25
+ 'animation-delay',
26
+ 'animation-direction',
27
+ 'animation-duration',
28
+ 'animation-fill-mode',
29
+ 'animation-iteration-count',
30
+ 'animation-name',
31
+ 'animation-play-state',
32
+ 'animation-timing-function',
33
+ 'appearance',
34
+ 'backface-visibility',
35
+ 'box-sizing',
36
+ 'filter',
37
+ 'flex',
38
+ 'flex-basis',
39
+ 'flex-direction',
40
+ 'flex-flow',
41
+ 'flex-grow',
42
+ 'flex-shrink',
43
+ 'flex-wrap',
44
+ 'justify-content',
45
+ 'object-fit',
46
+ 'object-position',
47
+ 'order',
48
+ 'perspective',
49
+ 'pointer-events',
50
+ 'transform',
51
+ 'transform-origin',
52
+ 'transform-style',
53
+ 'transition',
54
+ 'transition-delay',
55
+ 'transition-duration',
56
+ 'transition-property',
57
+ 'transition-timing-function',
58
+ 'user-select'
59
+ );
60
+
61
+ /// Values that should be vendorized.
62
+ /// @var {list}
63
+ $vendor-values: (
64
+ 'filter',
65
+ 'flex',
66
+ 'linear-gradient',
67
+ 'radial-gradient',
68
+ 'transform'
69
+ );
70
+
71
+ // Functions.
72
+
73
+ /// Removes a specific item from a list.
74
+ /// @author Hugo Giraudel
75
+ /// @param {list} $list List.
76
+ /// @param {integer} $index Index.
77
+ /// @return {list} Updated list.
78
+ @function remove-nth($list, $index) {
79
+
80
+ $result: null;
81
+
82
+ @if type-of($index) != number {
83
+ @warn "$index: #{quote($index)} is not a number for `remove-nth`.";
84
+ }
85
+ @else if $index == 0 {
86
+ @warn "List index 0 must be a non-zero integer for `remove-nth`.";
87
+ }
88
+ @else if abs($index) > length($list) {
89
+ @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
90
+ }
91
+ @else {
92
+
93
+ $result: ();
94
+ $index: if($index < 0, length($list) + $index + 1, $index);
95
+
96
+ @for $i from 1 through length($list) {
97
+
98
+ @if $i != $index {
99
+ $result: append($result, nth($list, $i));
100
+ }
101
+
102
+ }
103
+
104
+ }
105
+
106
+ @return $result;
107
+
108
+ }
109
+
110
+ /// Replaces a substring within another string.
111
+ /// @author Hugo Giraudel
112
+ /// @param {string} $string String.
113
+ /// @param {string} $search Substring.
114
+ /// @param {string} $replace Replacement.
115
+ /// @return {string} Updated string.
116
+ @function str-replace($string, $search, $replace: '') {
117
+
118
+ $index: str-index($string, $search);
119
+
120
+ @if $index {
121
+ @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
122
+ }
123
+
124
+ @return $string;
125
+
126
+ }
127
+
128
+ /// Replaces a substring within each string in a list.
129
+ /// @param {list} $strings List of strings.
130
+ /// @param {string} $search Substring.
131
+ /// @param {string} $replace Replacement.
132
+ /// @return {list} Updated list of strings.
133
+ @function str-replace-all($strings, $search, $replace: '') {
134
+
135
+ @each $string in $strings {
136
+ $strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
137
+ }
138
+
139
+ @return $strings;
140
+
141
+ }
142
+
143
+ /// Gets a value from a map.
144
+ /// @author Hugo Giraudel
145
+ /// @param {map} $map Map.
146
+ /// @param {string} $keys Key(s).
147
+ /// @return {string} Value.
148
+ @function val($map, $keys...) {
149
+
150
+ @if nth($keys, 1) == null {
151
+ $keys: remove-nth($keys, 1);
152
+ }
153
+
154
+ @each $key in $keys {
155
+ $map: map-get($map, $key);
156
+ }
157
+
158
+ @return $map;
159
+
160
+ }
161
+
162
+ // Mixins.
163
+
164
+ /// Sets the global box model.
165
+ /// @param {string} $model Model (default is content).
166
+ @mixin boxModel($model: 'content') {
167
+
168
+ $x: $model + '-box';
169
+
170
+ *, *:before, *:after {
171
+ -moz-box-sizing: #{$x};
172
+ -webkit-box-sizing: #{$x};
173
+ box-sizing: #{$x};
174
+ }
175
+
176
+ }
177
+
178
+ /// Wraps @content in a @media block using a given breakpoint.
179
+ /// @param {string} $breakpoint Breakpoint.
180
+ /// @param {map} $queries Additional queries.
181
+ @mixin breakpoint($breakpoint: null, $queries: null) {
182
+
183
+ $query: 'screen';
184
+
185
+ // Breakpoint.
186
+ @if $breakpoint and map-has-key($breakpoints, $breakpoint) {
187
+ $query: $query + ' and ' + map-get($breakpoints, $breakpoint);
188
+ }
189
+
190
+ // Queries.
191
+ @if $queries {
192
+ @each $k, $v in $queries {
193
+ $query: $query + ' and (' + $k + ':' + $v + ')';
194
+ }
195
+ }
196
+
197
+ @media #{$query} {
198
+ @content;
199
+ }
200
+
201
+ }
202
+
203
+ /// Wraps @content in a @media block targeting a specific orientation.
204
+ /// @param {string} $orientation Orientation.
205
+ @mixin orientation($orientation) {
206
+ @media screen and (orientation: #{$orientation}) {
207
+ @content;
208
+ }
209
+ }
210
+
211
+ /// Utility mixin for containers.
212
+ /// @param {mixed} $width Width.
213
+ @mixin containers($width) {
214
+
215
+ // Locked?
216
+ $lock: false;
217
+
218
+ @if length($width) == 2 {
219
+ $width: nth($width, 1);
220
+ $lock: true;
221
+ }
222
+
223
+ // Modifiers.
224
+ .container.\31 25\25 { width: 100%; max-width: $width * 1.25; min-width: $width; }
225
+ .container.\37 5\25 { width: $width * 0.75; }
226
+ .container.\35 0\25 { width: $width * 0.5; }
227
+ .container.\32 5\25 { width: $width * 0.25; }
228
+
229
+ // Main class.
230
+ .container {
231
+ @if $lock {
232
+ width: $width !important;
233
+ }
234
+ @else {
235
+ width: $width;
236
+ }
237
+ }
238
+
239
+ }
240
+
241
+ /// Utility mixin for grid.
242
+ /// @param {list} $gutters Column and row gutters (default is 40px).
243
+ /// @param {string} $breakpointName Optional breakpoint name.
244
+ @mixin grid($gutters: 40px, $breakpointName: null) {
245
+
246
+ // Gutters.
247
+ @include grid-gutters($gutters);
248
+ @include grid-gutters($gutters, \32 00\25, 2);
249
+ @include grid-gutters($gutters, \31 50\25, 1.5);
250
+ @include grid-gutters($gutters, \35 0\25, 0.5);
251
+ @include grid-gutters($gutters, \32 5\25, 0.25);
252
+
253
+ // Cells.
254
+ $x: '';
255
+
256
+ @if $breakpointName {
257
+ $x: '\\28' + $breakpointName + '\\29';
258
+ }
259
+
260
+ .\31 2u#{$x}, .\31 2u\24#{$x} { width: 100%; clear: none; margin-left: 0; }
261
+ .\31 1u#{$x}, .\31 1u\24#{$x} { width: 91.6666666667%; clear: none; margin-left: 0; }
262
+ .\31 0u#{$x}, .\31 0u\24#{$x} { width: 83.3333333333%; clear: none; margin-left: 0; }
263
+ .\39 u#{$x}, .\39 u\24#{$x} { width: 75%; clear: none; margin-left: 0; }
264
+ .\38 u#{$x}, .\38 u\24#{$x} { width: 66.6666666667%; clear: none; margin-left: 0; }
265
+ .\37 u#{$x}, .\37 u\24#{$x} { width: 58.3333333333%; clear: none; margin-left: 0; }
266
+ .\36 u#{$x}, .\36 u\24#{$x} { width: 50%; clear: none; margin-left: 0; }
267
+ .\35 u#{$x}, .\35 u\24#{$x} { width: 41.6666666667%; clear: none; margin-left: 0; }
268
+ .\34 u#{$x}, .\34 u\24#{$x} { width: 33.3333333333%; clear: none; margin-left: 0; }
269
+ .\33 u#{$x}, .\33 u\24#{$x} { width: 25%; clear: none; margin-left: 0; }
270
+ .\32 u#{$x}, .\32 u\24#{$x} { width: 16.6666666667%; clear: none; margin-left: 0; }
271
+ .\31 u#{$x}, .\31 u\24#{$x} { width: 8.3333333333%; clear: none; margin-left: 0; }
272
+
273
+ .\31 2u\24#{$x} + *,
274
+ .\31 1u\24#{$x} + *,
275
+ .\31 0u\24#{$x} + *,
276
+ .\39 u\24#{$x} + *,
277
+ .\38 u\24#{$x} + *,
278
+ .\37 u\24#{$x} + *,
279
+ .\36 u\24#{$x} + *,
280
+ .\35 u\24#{$x} + *,
281
+ .\34 u\24#{$x} + *,
282
+ .\33 u\24#{$x} + *,
283
+ .\32 u\24#{$x} + *,
284
+ .\31 u\24#{$x} + * {
285
+ clear: left;
286
+ }
287
+
288
+ .\-11u#{$x} { margin-left: 91.6666666667% }
289
+ .\-10u#{$x} { margin-left: 83.3333333333% }
290
+ .\-9u#{$x} { margin-left: 75% }
291
+ .\-8u#{$x} { margin-left: 66.6666666667% }
292
+ .\-7u#{$x} { margin-left: 58.3333333333% }
293
+ .\-6u#{$x} { margin-left: 50% }
294
+ .\-5u#{$x} { margin-left: 41.6666666667% }
295
+ .\-4u#{$x} { margin-left: 33.3333333333% }
296
+ .\-3u#{$x} { margin-left: 25% }
297
+ .\-2u#{$x} { margin-left: 16.6666666667% }
298
+ .\-1u#{$x} { margin-left: 8.3333333333% }
299
+
300
+ }
301
+
302
+ /// Utility mixin for grid.
303
+ /// @param {list} $gutters Gutters.
304
+ /// @param {string} $class Optional class name.
305
+ /// @param {integer} $multiplier Multiplier (default is 1).
306
+ @mixin grid-gutters($gutters, $class: null, $multiplier: 1) {
307
+
308
+ // Expand gutters if it's not a list.
309
+ @if length($gutters) == 1 {
310
+ $gutters: ($gutters, 0);
311
+ }
312
+
313
+ // Get column and row gutter values.
314
+ $c: nth($gutters, 1);
315
+ $r: nth($gutters, 2);
316
+
317
+ // Get class (if provided).
318
+ $x: '';
319
+
320
+ @if $class {
321
+ $x: '.' + $class;
322
+ }
323
+
324
+ // Default.
325
+ .row#{$x} > * { padding: ($r * $multiplier) 0 0 ($c * $multiplier); }
326
+ .row#{$x} { margin: ($r * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }
327
+
328
+ // Uniform.
329
+ .row.uniform#{$x} > * { padding: ($c * $multiplier) 0 0 ($c * $multiplier); }
330
+ .row.uniform#{$x} { margin: ($c * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }
331
+
332
+ }
333
+
334
+ /// Wraps @content in vendorized keyframe blocks.
335
+ /// @param {string} $name Name.
336
+ @mixin keyframes($name) {
337
+
338
+ @-moz-keyframes #{$name} { @content; }
339
+ @-webkit-keyframes #{$name} { @content; }
340
+ @-ms-keyframes #{$name} { @content; }
341
+ @keyframes #{$name} { @content; }
342
+
343
+ }
344
+
345
+ ///
346
+ /// Sets breakpoints.
347
+ /// @param {map} $x Breakpoints.
348
+ ///
349
+ @mixin skel-breakpoints($x: ()) {
350
+ $breakpoints: $x !global;
351
+ }
352
+
353
+ ///
354
+ /// Initializes layout module.
355
+ /// @param {map} config Config.
356
+ ///
357
+ @mixin skel-layout($config: ()) {
358
+
359
+ // Config.
360
+ $configPerBreakpoint: ();
361
+
362
+ $z: map-get($config, 'breakpoints');
363
+
364
+ @if $z {
365
+ $configPerBreakpoint: $z;
366
+ }
367
+
368
+ // Reset.
369
+ $x: map-get($config, 'reset');
370
+
371
+ @if $x {
372
+
373
+ /* Reset */
374
+
375
+ @include reset($x);
376
+
377
+ }
378
+
379
+ // Box model.
380
+ $x: map-get($config, 'boxModel');
381
+
382
+ @if $x {
383
+
384
+ /* Box Model */
385
+
386
+ @include boxModel($x);
387
+
388
+ }
389
+
390
+ // Containers.
391
+ $containers: map-get($config, 'containers');
392
+
393
+ @if $containers {
394
+
395
+ /* Containers */
396
+
397
+ .container {
398
+ margin-left: auto;
399
+ margin-right: auto;
400
+ }
401
+
402
+ // Use default is $containers is just "true".
403
+ @if $containers == true {
404
+ $containers: 960px;
405
+ }
406
+
407
+ // Apply base.
408
+ @include containers($containers);
409
+
410
+ // Apply per-breakpoint.
411
+ @each $name in map-keys($breakpoints) {
412
+
413
+ // Get/use breakpoint setting if it exists.
414
+ $x: map-get($configPerBreakpoint, $name);
415
+
416
+ // Per-breakpoint config exists?
417
+ @if $x {
418
+ $y: map-get($x, 'containers');
419
+
420
+ // Setting exists? Use it.
421
+ @if $y {
422
+ $containers: $y;
423
+ }
424
+
425
+ }
426
+
427
+ // Create @media block.
428
+ @media screen and #{map-get($breakpoints, $name)} {
429
+ @include containers($containers);
430
+ }
431
+
432
+ }
433
+
434
+ }
435
+
436
+ // Grid.
437
+ $grid: map-get($config, 'grid');
438
+
439
+ @if $grid {
440
+
441
+ /* Grid */
442
+
443
+ // Use defaults if $grid is just "true".
444
+ @if $grid == true {
445
+ $grid: ();
446
+ }
447
+
448
+ // Sub-setting: Gutters.
449
+ $grid-gutters: 40px;
450
+ $x: map-get($grid, 'gutters');
451
+
452
+ @if $x {
453
+ $grid-gutters: $x;
454
+ }
455
+
456
+ // Rows.
457
+ .row {
458
+ border-bottom: solid 1px transparent;
459
+ -moz-box-sizing: border-box;
460
+ -webkit-box-sizing: border-box;
461
+ box-sizing: border-box;
462
+ }
463
+
464
+ .row > * {
465
+ float: left;
466
+ -moz-box-sizing: border-box;
467
+ -webkit-box-sizing: border-box;
468
+ box-sizing: border-box;
469
+ }
470
+
471
+ .row:after, .row:before {
472
+ content: '';
473
+ display: block;
474
+ clear: both;
475
+ height: 0;
476
+ }
477
+
478
+ .row.uniform > * > :first-child {
479
+ margin-top: 0;
480
+ }
481
+
482
+ .row.uniform > * > :last-child {
483
+ margin-bottom: 0;
484
+ }
485
+
486
+ // Gutters (0%).
487
+ @include grid-gutters($grid-gutters, \30 \25, 0);
488
+
489
+ // Apply base.
490
+ @include grid($grid-gutters);
491
+
492
+ // Apply per-breakpoint.
493
+ @each $name in map-keys($breakpoints) {
494
+
495
+ // Get/use breakpoint setting if it exists.
496
+ $x: map-get($configPerBreakpoint, $name);
497
+
498
+ // Per-breakpoint config exists?
499
+ @if $x {
500
+ $y: map-get($x, 'grid');
501
+
502
+ // Setting exists?
503
+ @if $y {
504
+
505
+ // Sub-setting: Gutters.
506
+ $x: map-get($y, 'gutters');
507
+
508
+ @if $x {
509
+ $grid-gutters: $x;
510
+ }
511
+
512
+ }
513
+
514
+ }
515
+
516
+ // Create @media block.
517
+ @media screen and #{map-get($breakpoints, $name)} {
518
+ @include grid($grid-gutters, $name);
519
+ }
520
+
521
+ }
522
+
523
+ }
524
+
525
+ }
526
+
527
+ /// Resets browser styles.
528
+ /// @param {string} $mode Mode (default is 'normalize').
529
+ @mixin reset($mode: 'normalize') {
530
+
531
+ @if $mode == 'normalize' {
532
+
533
+ // normalize.css v3.0.2 | MIT License | git.io/normalize
534
+ html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
535
+
536
+ }
537
+ @else if $mode == 'full' {
538
+
539
+ // meyerweb.com/eric/tools/css/reset v2.0 | 20110126 | License: none (public domain)
540
+ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}body{line-height:1;}ol,ul{list-style:none;}blockquote,q{quotes:none;}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}table{border-collapse:collapse;border-spacing:0;}body{-webkit-text-size-adjust:none}
541
+
542
+ }
543
+
544
+ }
545
+
546
+ /// Vendorizes a declaration's property and/or value(s).
547
+ /// @param {string} $property Property.
548
+ /// @param {mixed} $value String/list of value(s).
549
+ @mixin vendor($property, $value) {
550
+
551
+ // Determine if property should expand.
552
+ $expandProperty: index($vendor-properties, $property);
553
+
554
+ // Determine if value should expand (and if so, add '-prefix-' placeholder).
555
+ $expandValue: false;
556
+
557
+ @each $x in $value {
558
+ @each $y in $vendor-values {
559
+ @if $y == str-slice($x, 1, str-length($y)) {
560
+
561
+ $value: set-nth($value, index($value, $x), '-prefix-' + $x);
562
+ $expandValue: true;
563
+
564
+ }
565
+ }
566
+ }
567
+
568
+ // Expand property?
569
+ @if $expandProperty {
570
+ @each $vendor in $vendor-prefixes {
571
+ #{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
572
+ }
573
+ }
574
+
575
+ // Expand just the value?
576
+ @elseif $expandValue {
577
+ @each $vendor in $vendor-prefixes {
578
+ #{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
579
+ }
580
+ }
581
+
582
+ // Neither? Treat them as a normal declaration.
583
+ @else {
584
+ #{$property}: #{$value};
585
+ }
586
+
587
+ }