jekyll-theme-consulting 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/banner.html +12 -6
  3. data/_includes/contact.html +13 -0
  4. data/_includes/footer.html +3 -38
  5. data/_includes/head.html +6 -5
  6. data/_includes/header.html +37 -9
  7. data/_includes/navigation.html +9 -5
  8. data/_includes/scripts.html +5 -7
  9. data/_includes/sidebar.html +17 -0
  10. data/_includes/thread.html +21 -0
  11. data/_layouts/default.html +32 -16
  12. data/_layouts/home.html +4 -2
  13. data/_layouts/landing.html +21 -0
  14. data/_layouts/page.html +1 -1
  15. data/_layouts/post.html +22 -7
  16. data/_sass/base/_page.scss +39 -0
  17. data/_sass/base/_typography.scss +186 -140
  18. data/_sass/components/_box.scss +26 -247
  19. data/_sass/components/_button.scss +87 -65
  20. data/_sass/components/_features.scss +156 -0
  21. data/_sass/components/_form.scss +182 -88
  22. data/_sass/components/_icon.scss +17 -0
  23. data/_sass/components/_image.scss +74 -37
  24. data/_sass/components/_list.scss +255 -25
  25. data/_sass/components/_mini-posts.scss +31 -0
  26. data/_sass/components/_posts.scss +179 -0
  27. data/_sass/components/_section.scss +39 -0
  28. data/_sass/components/_table.scss +81 -35
  29. data/_sass/ie8.scss +28 -0
  30. data/_sass/ie9.scss +84 -0
  31. data/_sass/layout/_banner.scss +75 -44
  32. data/_sass/layout/_footer.scss +18 -44
  33. data/_sass/layout/_header.scss +49 -85
  34. data/_sass/layout/_main.scss +58 -0
  35. data/_sass/layout/_menu.scss +98 -0
  36. data/_sass/layout/_sidebar.scss +222 -0
  37. data/_sass/layout/_wrapper.scss +13 -0
  38. data/_sass/libs/_functions.scss +0 -56
  39. data/_sass/libs/_mixins.scss +1 -8
  40. data/_sass/libs/_skel.scss +585 -0
  41. data/_sass/libs/_vars.scss +25 -15
  42. data/_sass/main.scss +58 -51
  43. data/assets/css/font-awesome.min.css +2 -2
  44. data/assets/css/ie8.scss +5 -0
  45. data/assets/css/ie9.scss +5 -0
  46. data/assets/css/main.scss +5 -0
  47. data/assets/fonts/FontAwesome.otf +0 -0
  48. data/assets/fonts/fontawesome-webfont.eot +0 -0
  49. data/assets/fonts/fontawesome-webfont.svg +682 -2668
  50. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  51. data/assets/fonts/fontawesome-webfont.woff +0 -0
  52. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  53. data/assets/images/pic01.jpg +0 -0
  54. data/assets/images/pic02.jpg +0 -0
  55. data/assets/images/pic03.jpg +0 -0
  56. data/assets/images/pic04.jpg +0 -0
  57. data/assets/images/pic05.jpg +0 -0
  58. data/assets/images/pic06.jpg +0 -0
  59. data/assets/images/pic07.jpg +0 -0
  60. data/assets/images/pic08.jpg +0 -0
  61. data/assets/images/pic09.jpg +0 -0
  62. data/assets/images/pic10.jpg +0 -0
  63. data/assets/images/pic11.jpg +0 -0
  64. data/assets/js/ie/.directory +3 -0
  65. data/assets/js/ie/html5shiv.js +8 -0
  66. data/assets/js/ie/respond.min.js +6 -0
  67. data/assets/js/jquery.min.js +5 -2
  68. data/assets/js/main.js +255 -76
  69. data/assets/js/skel.min.js +2 -0
  70. metadata +35 -30
  71. data/_sass/base/_reset.scss +0 -70
  72. data/_sass/components/_actions.scss +0 -18
  73. data/_sass/components/_container.scss +0 -14
  74. data/_sass/components/_icons.scss +0 -44
  75. data/_sass/components/_menu.scss +0 -21
  76. data/_sass/components/_poptrox.scss +0 -121
  77. data/_sass/components/_row.scss +0 -21
  78. data/_sass/components/_sections.scss +0 -18
  79. data/_sass/layout/_breakpoints.scss +0 -358
  80. data/_sass/libs/_breakpoints.scss +0 -223
  81. data/_sass/libs/_html-grid.scss +0 -149
  82. data/_sass/libs/_vendor.scss +0 -376
  83. data/_sass/noscript.scss +0 -25
  84. data/assets/css/images/arrow.svg +0 -17
  85. data/assets/css/images/banner.svg +0 -206
  86. data/assets/css/images/circles.svg +0 -30
  87. data/assets/css/images/falling.svg +0 -37
  88. data/assets/css/images/loader.gif +0 -0
  89. data/assets/css/images/overlay.png +0 -0
  90. data/assets/css/images/poptrox-closer.svg +0 -6
  91. data/assets/css/images/poptrox-nav.svg +0 -6
  92. data/assets/css/noscript.css +0 -19
  93. data/assets/css/styles.scss +0 -4
  94. data/assets/images/bouncing.svg +0 -50
  95. data/assets/js/breakpoints.min.js +0 -2
  96. data/assets/js/browser.min.js +0 -2
  97. data/assets/js/jquery.poptrox.min.js +0 -2
  98. data/assets/js/jquery.scrolly.min.js +0 -2
@@ -0,0 +1,222 @@
1
+ ///
2
+ /// Editorial by HTML5 UP
3
+ /// html5up.net | @ajlkn
4
+ /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
5
+ ///
6
+
7
+ /* Sidebar */
8
+
9
+ #search {
10
+ form {
11
+ @include icon;
12
+ position: relative;
13
+
14
+ &:before {
15
+ @include vendor('transform', 'scaleX(-1)');
16
+ color: _palette(fg);
17
+ content: '\f002';
18
+ cursor: default;
19
+ display: block;
20
+ font-size: 2em;
21
+ height: _size(element-height) / 1.375;
22
+ line-height: _size(element-height) / 1.375;
23
+ opacity: 0.325;
24
+ position: absolute;
25
+ right: 0;
26
+ text-align: center;
27
+ top: 0;
28
+ width: _size(element-height) / 1.375;
29
+ }
30
+
31
+ input[type="text"] {
32
+ padding-right: _size(element-height);
33
+ }
34
+ }
35
+ }
36
+
37
+ #sidebar {
38
+ $pad: 2em / 0.9;
39
+
40
+ @include vendor('flex-grow', '0');
41
+ @include vendor('flex-shrink', '0');
42
+ @include vendor('transition', (
43
+ 'margin-left 0.5s ease',
44
+ 'box-shadow 0.5s ease'
45
+ ));
46
+ background-color: _palette(bg-alt);
47
+ font-size: 0.9em;
48
+ position: relative;
49
+ width: _size(sidebar-width);
50
+
51
+ h2 {
52
+ font-size: (1.25em / 0.9);
53
+ }
54
+
55
+ > .inner {
56
+ @include padding($pad, $pad, (0, 0, $pad, 0));
57
+ position: relative;
58
+ width: _size(sidebar-width);
59
+
60
+ > * {
61
+ border-bottom: solid 2px _palette(border);
62
+ margin: 0 0 (_size(element-margin) * 1.75) 0;
63
+ padding: 0 0 (_size(element-margin) * 1.75) 0;
64
+
65
+ > :last-child {
66
+ margin-bottom: 0;
67
+ }
68
+
69
+ &:last-child {
70
+ border-bottom: 0;
71
+ margin-bottom: 0;
72
+ padding-bottom: 0;
73
+ }
74
+ }
75
+
76
+ > .alt {
77
+ background-color: darken(_palette(bg-alt), 2);
78
+ border-bottom: 0;
79
+ margin: ($pad * -1) 0 ($pad * 2) ($pad * -1);
80
+ padding: $pad;
81
+ width: calc(100% + #{$pad * 2});
82
+ }
83
+ }
84
+
85
+ .toggle {
86
+ @include icon;
87
+ @include vendor('transition', 'left 0.5s ease');
88
+ -webkit-tap-highlight-color: rgba(255,255,255,0);
89
+ border: 0;
90
+ display: block;
91
+ height: 7.5em;
92
+ left: _size(sidebar-width);
93
+ line-height: 7.5em;
94
+ outline: 0;
95
+ overflow: hidden;
96
+ position: absolute;
97
+ text-align: center;
98
+ text-indent: 7.5em;
99
+ top: 0;
100
+ width: 6em;
101
+ z-index: _misc(z-index-base);
102
+
103
+ &:before {
104
+ content: '\f0c9';
105
+ font-size: 2rem;
106
+ height: inherit;
107
+ left: 0;
108
+ line-height: inherit;
109
+ position: absolute;
110
+ text-indent: 0;
111
+ top: 0;
112
+ width: inherit;
113
+ }
114
+ }
115
+
116
+ &.inactive {
117
+ margin-left: (_size(sidebar-width) * -1);
118
+ }
119
+
120
+ @include breakpoint(xlarge) {
121
+ $pad: 1.5em / 0.9;
122
+
123
+ width: _size(sidebar-width-alt);
124
+
125
+ > .inner {
126
+ @include padding($pad, $pad, (0, 0, $pad, 0));
127
+ width: _size(sidebar-width-alt);
128
+
129
+ > .alt {
130
+ margin: ($pad * -1) 0 ($pad * 2) ($pad * -1);
131
+ padding: $pad;
132
+ width: calc(100% + #{$pad * 2});
133
+ }
134
+ }
135
+
136
+ .toggle {
137
+ height: 6.25em;
138
+ left: _size(sidebar-width-alt);
139
+ line-height: 6.25em;
140
+ text-indent: 5em;
141
+ width: 5em;
142
+
143
+ &:before {
144
+ font-size: 2rem;
145
+ }
146
+ }
147
+
148
+ &.inactive {
149
+ margin-left: (_size(sidebar-width-alt) * -1);
150
+ }
151
+ }
152
+
153
+ @include breakpoint(large) {
154
+ box-shadow: 0 0 5em 0 rgba(0, 0, 0, 0.175);
155
+ height: 100%;
156
+ left: 0;
157
+ position: fixed;
158
+ top: 0;
159
+ z-index: _misc(z-index-base);
160
+
161
+ &.inactive {
162
+ box-shadow: none;
163
+ }
164
+
165
+ > .inner {
166
+ -webkit-overflow-scrolling: touch;
167
+ height: 100%;
168
+ left: 0;
169
+ overflow-x: hidden;
170
+ overflow-y: auto;
171
+ position: absolute;
172
+ top: 0;
173
+
174
+ &:after {
175
+ content: '';
176
+ display: block;
177
+ height: 4em;
178
+ width: 100%;
179
+ }
180
+ }
181
+
182
+ .toggle {
183
+ text-indent: 6em;
184
+ width: 6em;
185
+
186
+ &:before {
187
+ font-size: 2rem;
188
+ margin-left: (-0.875em / 2);
189
+ }
190
+ }
191
+
192
+ body.is-loading & {
193
+ display: none;
194
+ }
195
+ }
196
+
197
+ @include breakpoint(small) {
198
+ .toggle {
199
+ text-indent: 7.25em;
200
+ width: 7.25em;
201
+
202
+ &:before {
203
+ color: _palette(fg);
204
+ margin-left: (-0.125em / 2);
205
+ margin-top: (-0.5em / 2);
206
+ font-size: 1.1rem;
207
+ z-index: 1;
208
+ }
209
+
210
+ &:after {
211
+ background: transparentize(lighten(_palette(fg), 35), 0.25);
212
+ border-radius: _size(border-radius);
213
+ content: '';
214
+ height: 3.5em;
215
+ left: 1em;
216
+ position: absolute;
217
+ top: 1em;
218
+ width: 5em;
219
+ }
220
+ }
221
+ }
222
+ }
@@ -0,0 +1,13 @@
1
+ ///
2
+ /// Editorial by HTML5 UP
3
+ /// html5up.net | @ajlkn
4
+ /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
5
+ ///
6
+
7
+ /* Wrapper */
8
+
9
+ #wrapper {
10
+ @include vendor('display', 'flex');
11
+ @include vendor('flex-direction', 'row-reverse');
12
+ min-height: 100vh;
13
+ }
@@ -1,59 +1,3 @@
1
- /// Removes a specific item from a list.
2
- /// @author Hugo Giraudel
3
- /// @param {list} $list List.
4
- /// @param {integer} $index Index.
5
- /// @return {list} Updated list.
6
- @function remove-nth($list, $index) {
7
-
8
- $result: null;
9
-
10
- @if type-of($index) != number {
11
- @warn "$index: #{quote($index)} is not a number for `remove-nth`.";
12
- }
13
- @else if $index == 0 {
14
- @warn "List index 0 must be a non-zero integer for `remove-nth`.";
15
- }
16
- @else if abs($index) > length($list) {
17
- @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
18
- }
19
- @else {
20
-
21
- $result: ();
22
- $index: if($index < 0, length($list) + $index + 1, $index);
23
-
24
- @for $i from 1 through length($list) {
25
-
26
- @if $i != $index {
27
- $result: append($result, nth($list, $i));
28
- }
29
-
30
- }
31
-
32
- }
33
-
34
- @return $result;
35
-
36
- }
37
-
38
- /// Gets a value from a map.
39
- /// @author Hugo Giraudel
40
- /// @param {map} $map Map.
41
- /// @param {string} $keys Key(s).
42
- /// @return {string} Value.
43
- @function val($map, $keys...) {
44
-
45
- @if nth($keys, 1) == null {
46
- $keys: remove-nth($keys, 1);
47
- }
48
-
49
- @each $key in $keys {
50
- $map: map-get($map, $key);
51
- }
52
-
53
- @return $map;
54
-
55
- }
56
-
57
1
  /// Gets a duration value.
58
2
  /// @param {string} $keys Key(s).
59
3
  /// @return {string} Value.
@@ -33,13 +33,7 @@
33
33
  $important: '!important';
34
34
  }
35
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};
36
+ padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max(0.1em, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
43
37
 
44
38
  }
45
39
 
@@ -49,7 +43,6 @@
49
43
  @function svg-url($svg) {
50
44
 
51
45
  $svg: str-replace($svg, '"', '\'');
52
- $svg: str-replace($svg, '%', '%25');
53
46
  $svg: str-replace($svg, '<', '%3C');
54
47
  $svg: str-replace($svg, '>', '%3E');
55
48
  $svg: str-replace($svg, '&', '%26');
@@ -0,0 +1,585 @@
1
+ // skel.scss v3.0.1 | (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
+ 'order',
46
+ 'perspective',
47
+ 'pointer-events',
48
+ 'transform',
49
+ 'transform-origin',
50
+ 'transform-style',
51
+ 'transition',
52
+ 'transition-delay',
53
+ 'transition-duration',
54
+ 'transition-property',
55
+ 'transition-timing-function',
56
+ 'user-select'
57
+ );
58
+
59
+ /// Values that should be vendorized.
60
+ /// @var {list}
61
+ $vendor-values: (
62
+ 'filter',
63
+ 'flex',
64
+ 'linear-gradient',
65
+ 'radial-gradient',
66
+ 'transform'
67
+ );
68
+
69
+ // Functions.
70
+
71
+ /// Removes a specific item from a list.
72
+ /// @author Hugo Giraudel
73
+ /// @param {list} $list List.
74
+ /// @param {integer} $index Index.
75
+ /// @return {list} Updated list.
76
+ @function remove-nth($list, $index) {
77
+
78
+ $result: null;
79
+
80
+ @if type-of($index) != number {
81
+ @warn "$index: #{quote($index)} is not a number for `remove-nth`.";
82
+ }
83
+ @else if $index == 0 {
84
+ @warn "List index 0 must be a non-zero integer for `remove-nth`.";
85
+ }
86
+ @else if abs($index) > length($list) {
87
+ @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
88
+ }
89
+ @else {
90
+
91
+ $result: ();
92
+ $index: if($index < 0, length($list) + $index + 1, $index);
93
+
94
+ @for $i from 1 through length($list) {
95
+
96
+ @if $i != $index {
97
+ $result: append($result, nth($list, $i));
98
+ }
99
+
100
+ }
101
+
102
+ }
103
+
104
+ @return $result;
105
+
106
+ }
107
+
108
+ /// Replaces a substring within another string.
109
+ /// @author Hugo Giraudel
110
+ /// @param {string} $string String.
111
+ /// @param {string} $search Substring.
112
+ /// @param {string} $replace Replacement.
113
+ /// @return {string} Updated string.
114
+ @function str-replace($string, $search, $replace: '') {
115
+
116
+ $index: str-index($string, $search);
117
+
118
+ @if $index {
119
+ @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
120
+ }
121
+
122
+ @return $string;
123
+
124
+ }
125
+
126
+ /// Replaces a substring within each string in a list.
127
+ /// @param {list} $strings List of strings.
128
+ /// @param {string} $search Substring.
129
+ /// @param {string} $replace Replacement.
130
+ /// @return {list} Updated list of strings.
131
+ @function str-replace-all($strings, $search, $replace: '') {
132
+
133
+ @each $string in $strings {
134
+ $strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
135
+ }
136
+
137
+ @return $strings;
138
+
139
+ }
140
+
141
+ /// Gets a value from a map.
142
+ /// @author Hugo Giraudel
143
+ /// @param {map} $map Map.
144
+ /// @param {string} $keys Key(s).
145
+ /// @return {string} Value.
146
+ @function val($map, $keys...) {
147
+
148
+ @if nth($keys, 1) == null {
149
+ $keys: remove-nth($keys, 1);
150
+ }
151
+
152
+ @each $key in $keys {
153
+ $map: map-get($map, $key);
154
+ }
155
+
156
+ @return $map;
157
+
158
+ }
159
+
160
+ // Mixins.
161
+
162
+ /// Sets the global box model.
163
+ /// @param {string} $model Model (default is content).
164
+ @mixin boxModel($model: 'content') {
165
+
166
+ $x: $model + '-box';
167
+
168
+ *, *:before, *:after {
169
+ -moz-box-sizing: #{$x};
170
+ -webkit-box-sizing: #{$x};
171
+ box-sizing: #{$x};
172
+ }
173
+
174
+ }
175
+
176
+ /// Wraps @content in a @media block using a given breakpoint.
177
+ /// @param {string} $breakpoint Breakpoint.
178
+ /// @param {map} $queries Additional queries.
179
+ @mixin breakpoint($breakpoint: null, $queries: null) {
180
+
181
+ $query: 'screen';
182
+
183
+ // Breakpoint.
184
+ @if $breakpoint and map-has-key($breakpoints, $breakpoint) {
185
+ $query: $query + ' and ' + map-get($breakpoints, $breakpoint);
186
+ }
187
+
188
+ // Queries.
189
+ @if $queries {
190
+ @each $k, $v in $queries {
191
+ $query: $query + ' and (' + $k + ':' + $v + ')';
192
+ }
193
+ }
194
+
195
+ @media #{$query} {
196
+ @content;
197
+ }
198
+
199
+ }
200
+
201
+ /// Wraps @content in a @media block targeting a specific orientation.
202
+ /// @param {string} $orientation Orientation.
203
+ @mixin orientation($orientation) {
204
+ @media screen and (orientation: #{$orientation}) {
205
+ @content;
206
+ }
207
+ }
208
+
209
+ /// Utility mixin for containers.
210
+ /// @param {mixed} $width Width.
211
+ @mixin containers($width) {
212
+
213
+ // Locked?
214
+ $lock: false;
215
+
216
+ @if length($width) == 2 {
217
+ $width: nth($width, 1);
218
+ $lock: true;
219
+ }
220
+
221
+ // Modifiers.
222
+ .container.\31 25\25 { width: 100%; max-width: $width * 1.25; min-width: $width; }
223
+ .container.\37 5\25 { width: $width * 0.75; }
224
+ .container.\35 0\25 { width: $width * 0.5; }
225
+ .container.\32 5\25 { width: $width * 0.25; }
226
+
227
+ // Main class.
228
+ .container {
229
+ @if $lock {
230
+ width: $width !important;
231
+ }
232
+ @else {
233
+ width: $width;
234
+ }
235
+ }
236
+
237
+ }
238
+
239
+ /// Utility mixin for grid.
240
+ /// @param {list} $gutters Column and row gutters (default is 40px).
241
+ /// @param {string} $breakpointName Optional breakpoint name.
242
+ @mixin grid($gutters: 40px, $breakpointName: null) {
243
+
244
+ // Gutters.
245
+ @include grid-gutters($gutters);
246
+ @include grid-gutters($gutters, \32 00\25, 2);
247
+ @include grid-gutters($gutters, \31 50\25, 1.5);
248
+ @include grid-gutters($gutters, \35 0\25, 0.5);
249
+ @include grid-gutters($gutters, \32 5\25, 0.25);
250
+
251
+ // Cells.
252
+ $x: '';
253
+
254
+ @if $breakpointName {
255
+ $x: '\\28' + $breakpointName + '\\29';
256
+ }
257
+
258
+ .\31 2u#{$x}, .\31 2u\24#{$x} { width: 100%; clear: none; margin-left: 0; }
259
+ .\31 1u#{$x}, .\31 1u\24#{$x} { width: 91.6666666667%; clear: none; margin-left: 0; }
260
+ .\31 0u#{$x}, .\31 0u\24#{$x} { width: 83.3333333333%; clear: none; margin-left: 0; }
261
+ .\39 u#{$x}, .\39 u\24#{$x} { width: 75%; clear: none; margin-left: 0; }
262
+ .\38 u#{$x}, .\38 u\24#{$x} { width: 66.6666666667%; clear: none; margin-left: 0; }
263
+ .\37 u#{$x}, .\37 u\24#{$x} { width: 58.3333333333%; clear: none; margin-left: 0; }
264
+ .\36 u#{$x}, .\36 u\24#{$x} { width: 50%; clear: none; margin-left: 0; }
265
+ .\35 u#{$x}, .\35 u\24#{$x} { width: 41.6666666667%; clear: none; margin-left: 0; }
266
+ .\34 u#{$x}, .\34 u\24#{$x} { width: 33.3333333333%; clear: none; margin-left: 0; }
267
+ .\33 u#{$x}, .\33 u\24#{$x} { width: 25%; clear: none; margin-left: 0; }
268
+ .\32 u#{$x}, .\32 u\24#{$x} { width: 16.6666666667%; clear: none; margin-left: 0; }
269
+ .\31 u#{$x}, .\31 u\24#{$x} { width: 8.3333333333%; clear: none; margin-left: 0; }
270
+
271
+ .\31 2u\24#{$x} + *,
272
+ .\31 1u\24#{$x} + *,
273
+ .\31 0u\24#{$x} + *,
274
+ .\39 u\24#{$x} + *,
275
+ .\38 u\24#{$x} + *,
276
+ .\37 u\24#{$x} + *,
277
+ .\36 u\24#{$x} + *,
278
+ .\35 u\24#{$x} + *,
279
+ .\34 u\24#{$x} + *,
280
+ .\33 u\24#{$x} + *,
281
+ .\32 u\24#{$x} + *,
282
+ .\31 u\24#{$x} + * {
283
+ clear: left;
284
+ }
285
+
286
+ .\-11u#{$x} { margin-left: 91.6666666667% }
287
+ .\-10u#{$x} { margin-left: 83.3333333333% }
288
+ .\-9u#{$x} { margin-left: 75% }
289
+ .\-8u#{$x} { margin-left: 66.6666666667% }
290
+ .\-7u#{$x} { margin-left: 58.3333333333% }
291
+ .\-6u#{$x} { margin-left: 50% }
292
+ .\-5u#{$x} { margin-left: 41.6666666667% }
293
+ .\-4u#{$x} { margin-left: 33.3333333333% }
294
+ .\-3u#{$x} { margin-left: 25% }
295
+ .\-2u#{$x} { margin-left: 16.6666666667% }
296
+ .\-1u#{$x} { margin-left: 8.3333333333% }
297
+
298
+ }
299
+
300
+ /// Utility mixin for grid.
301
+ /// @param {list} $gutters Gutters.
302
+ /// @param {string} $class Optional class name.
303
+ /// @param {integer} $multiplier Multiplier (default is 1).
304
+ @mixin grid-gutters($gutters, $class: null, $multiplier: 1) {
305
+
306
+ // Expand gutters if it's not a list.
307
+ @if length($gutters) == 1 {
308
+ $gutters: ($gutters, 0);
309
+ }
310
+
311
+ // Get column and row gutter values.
312
+ $c: nth($gutters, 1);
313
+ $r: nth($gutters, 2);
314
+
315
+ // Get class (if provided).
316
+ $x: '';
317
+
318
+ @if $class {
319
+ $x: '.' + $class;
320
+ }
321
+
322
+ // Default.
323
+ .row#{$x} > * { padding: ($r * $multiplier) 0 0 ($c * $multiplier); }
324
+ .row#{$x} { margin: ($r * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }
325
+
326
+ // Uniform.
327
+ .row.uniform#{$x} > * { padding: ($c * $multiplier) 0 0 ($c * $multiplier); }
328
+ .row.uniform#{$x} { margin: ($c * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }
329
+
330
+ }
331
+
332
+ /// Wraps @content in vendorized keyframe blocks.
333
+ /// @param {string} $name Name.
334
+ @mixin keyframes($name) {
335
+
336
+ @-moz-keyframes #{$name} { @content; }
337
+ @-webkit-keyframes #{$name} { @content; }
338
+ @-ms-keyframes #{$name} { @content; }
339
+ @keyframes #{$name} { @content; }
340
+
341
+ }
342
+
343
+ ///
344
+ /// Sets breakpoints.
345
+ /// @param {map} $x Breakpoints.
346
+ ///
347
+ @mixin skel-breakpoints($x: ()) {
348
+ $breakpoints: $x !global;
349
+ }
350
+
351
+ ///
352
+ /// Initializes layout module.
353
+ /// @param {map} config Config.
354
+ ///
355
+ @mixin skel-layout($config: ()) {
356
+
357
+ // Config.
358
+ $configPerBreakpoint: ();
359
+
360
+ $z: map-get($config, 'breakpoints');
361
+
362
+ @if $z {
363
+ $configPerBreakpoint: $z;
364
+ }
365
+
366
+ // Reset.
367
+ $x: map-get($config, 'reset');
368
+
369
+ @if $x {
370
+
371
+ /* Reset */
372
+
373
+ @include reset($x);
374
+
375
+ }
376
+
377
+ // Box model.
378
+ $x: map-get($config, 'boxModel');
379
+
380
+ @if $x {
381
+
382
+ /* Box Model */
383
+
384
+ @include boxModel($x);
385
+
386
+ }
387
+
388
+ // Containers.
389
+ $containers: map-get($config, 'containers');
390
+
391
+ @if $containers {
392
+
393
+ /* Containers */
394
+
395
+ .container {
396
+ margin-left: auto;
397
+ margin-right: auto;
398
+ }
399
+
400
+ // Use default is $containers is just "true".
401
+ @if $containers == true {
402
+ $containers: 960px;
403
+ }
404
+
405
+ // Apply base.
406
+ @include containers($containers);
407
+
408
+ // Apply per-breakpoint.
409
+ @each $name in map-keys($breakpoints) {
410
+
411
+ // Get/use breakpoint setting if it exists.
412
+ $x: map-get($configPerBreakpoint, $name);
413
+
414
+ // Per-breakpoint config exists?
415
+ @if $x {
416
+ $y: map-get($x, 'containers');
417
+
418
+ // Setting exists? Use it.
419
+ @if $y {
420
+ $containers: $y;
421
+ }
422
+
423
+ }
424
+
425
+ // Create @media block.
426
+ @media screen and #{map-get($breakpoints, $name)} {
427
+ @include containers($containers);
428
+ }
429
+
430
+ }
431
+
432
+ }
433
+
434
+ // Grid.
435
+ $grid: map-get($config, 'grid');
436
+
437
+ @if $grid {
438
+
439
+ /* Grid */
440
+
441
+ // Use defaults if $grid is just "true".
442
+ @if $grid == true {
443
+ $grid: ();
444
+ }
445
+
446
+ // Sub-setting: Gutters.
447
+ $grid-gutters: 40px;
448
+ $x: map-get($grid, 'gutters');
449
+
450
+ @if $x {
451
+ $grid-gutters: $x;
452
+ }
453
+
454
+ // Rows.
455
+ .row {
456
+ border-bottom: solid 1px transparent;
457
+ -moz-box-sizing: border-box;
458
+ -webkit-box-sizing: border-box;
459
+ box-sizing: border-box;
460
+ }
461
+
462
+ .row > * {
463
+ float: left;
464
+ -moz-box-sizing: border-box;
465
+ -webkit-box-sizing: border-box;
466
+ box-sizing: border-box;
467
+ }
468
+
469
+ .row:after, .row:before {
470
+ content: '';
471
+ display: block;
472
+ clear: both;
473
+ height: 0;
474
+ }
475
+
476
+ .row.uniform > * > :first-child {
477
+ margin-top: 0;
478
+ }
479
+
480
+ .row.uniform > * > :last-child {
481
+ margin-bottom: 0;
482
+ }
483
+
484
+ // Gutters (0%).
485
+ @include grid-gutters($grid-gutters, \30 \25, 0);
486
+
487
+ // Apply base.
488
+ @include grid($grid-gutters);
489
+
490
+ // Apply per-breakpoint.
491
+ @each $name in map-keys($breakpoints) {
492
+
493
+ // Get/use breakpoint setting if it exists.
494
+ $x: map-get($configPerBreakpoint, $name);
495
+
496
+ // Per-breakpoint config exists?
497
+ @if $x {
498
+ $y: map-get($x, 'grid');
499
+
500
+ // Setting exists?
501
+ @if $y {
502
+
503
+ // Sub-setting: Gutters.
504
+ $x: map-get($y, 'gutters');
505
+
506
+ @if $x {
507
+ $grid-gutters: $x;
508
+ }
509
+
510
+ }
511
+
512
+ }
513
+
514
+ // Create @media block.
515
+ @media screen and #{map-get($breakpoints, $name)} {
516
+ @include grid($grid-gutters, $name);
517
+ }
518
+
519
+ }
520
+
521
+ }
522
+
523
+ }
524
+
525
+ /// Resets browser styles.
526
+ /// @param {string} $mode Mode (default is 'normalize').
527
+ @mixin reset($mode: 'normalize') {
528
+
529
+ @if $mode == 'normalize' {
530
+
531
+ // normalize.css v3.0.2 | MIT License | git.io/normalize
532
+ 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}
533
+
534
+ }
535
+ @else if $mode == 'full' {
536
+
537
+ // meyerweb.com/eric/tools/css/reset v2.0 | 20110126 | License: none (public domain)
538
+ 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}
539
+
540
+ }
541
+
542
+ }
543
+
544
+ /// Vendorizes a declaration's property and/or value(s).
545
+ /// @param {string} $property Property.
546
+ /// @param {mixed} $value String/list of value(s).
547
+ @mixin vendor($property, $value) {
548
+
549
+ // Determine if property should expand.
550
+ $expandProperty: index($vendor-properties, $property);
551
+
552
+ // Determine if value should expand (and if so, add '-prefix-' placeholder).
553
+ $expandValue: false;
554
+
555
+ @each $x in $value {
556
+ @each $y in $vendor-values {
557
+ @if $y == str-slice($x, 1, str-length($y)) {
558
+
559
+ $value: set-nth($value, index($value, $x), '-prefix-' + $x);
560
+ $expandValue: true;
561
+
562
+ }
563
+ }
564
+ }
565
+
566
+ // Expand property?
567
+ @if $expandProperty {
568
+ @each $vendor in $vendor-prefixes {
569
+ #{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
570
+ }
571
+ }
572
+
573
+ // Expand just the value?
574
+ @elseif $expandValue {
575
+ @each $vendor in $vendor-prefixes {
576
+ #{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
577
+ }
578
+ }
579
+
580
+ // Neither? Treat them as a normal declaration.
581
+ @else {
582
+ #{$property}: #{$value};
583
+ }
584
+
585
+ }