jekyll-theme-basically-basic 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -19
  3. data/LICENSE.md +20 -20
  4. data/README.md +32 -2
  5. data/_includes/author +30 -30
  6. data/_includes/contact-list.html +26 -26
  7. data/_includes/cv/awards.html +23 -23
  8. data/_includes/cv/education.html +36 -36
  9. data/_includes/cv/interests.html +19 -19
  10. data/_includes/cv/intro.html +18 -18
  11. data/_includes/cv/languages.html +19 -19
  12. data/_includes/cv/publications.html +29 -29
  13. data/_includes/cv/references.html +23 -23
  14. data/_includes/cv/skills.html +19 -19
  15. data/_includes/cv/volunteer.html +46 -46
  16. data/_includes/cv/work.html +46 -46
  17. data/_includes/disqus_comments.html +16 -16
  18. data/_includes/entry.html +29 -29
  19. data/_includes/footer.html +9 -9
  20. data/_includes/google-analytics.html +8 -8
  21. data/_includes/icon-bitbucket.html +4 -4
  22. data/_includes/icon-codepen.html +4 -4
  23. data/_includes/icon-dribbble.html +4 -4
  24. data/_includes/icon-facebook.html +4 -4
  25. data/_includes/icon-flickr.html +4 -4
  26. data/_includes/icon-github.html +4 -4
  27. data/_includes/icon-gitlab.html +4 -4
  28. data/_includes/icon-googleplus.html +4 -4
  29. data/_includes/icon-instagram.html +4 -4
  30. data/_includes/icon-lastfm.html +4 -4
  31. data/_includes/icon-linkedin.html +4 -4
  32. data/_includes/icon-pinterest.html +4 -4
  33. data/_includes/icon-soundcloud.html +4 -4
  34. data/_includes/icon-stackoverflow.html +4 -4
  35. data/_includes/icon-tumblr.html +4 -4
  36. data/_includes/icon-twitter.html +4 -4
  37. data/_includes/icon-xing.html +4 -4
  38. data/_includes/icon-youtube.html +4 -4
  39. data/_includes/navigation.html +24 -24
  40. data/_includes/page-intro.html +42 -42
  41. data/_includes/posts-all.html +2 -2
  42. data/_includes/posts-paginated.html +15 -15
  43. data/_includes/read-time.html +13 -13
  44. data/_includes/scripts.html +4 -4
  45. data/_includes/skip-links.html +7 -7
  46. data/_layouts/about.html +21 -21
  47. data/_layouts/cv.html +28 -28
  48. data/_layouts/default.html +38 -38
  49. data/_layouts/home.html +30 -30
  50. data/_layouts/page.html +17 -17
  51. data/_layouts/post.html +20 -20
  52. data/_sass/basically-basic.scss +41 -37
  53. data/_sass/basically-basic/_base.scss +110 -110
  54. data/_sass/basically-basic/_buttons.scss +39 -39
  55. data/_sass/basically-basic/_contact-lists.scss +11 -11
  56. data/_sass/basically-basic/_entries.scss +155 -155
  57. data/_sass/basically-basic/_footer.scss +13 -13
  58. data/_sass/basically-basic/_global.scss +36 -36
  59. data/_sass/basically-basic/_icons.scss +43 -43
  60. data/_sass/basically-basic/_intro.scss +65 -65
  61. data/_sass/basically-basic/_layout.scss +178 -178
  62. data/_sass/basically-basic/_mixins.scss +7 -7
  63. data/_sass/basically-basic/_navicons.scss +144 -144
  64. data/_sass/basically-basic/_navigation.scss +51 -51
  65. data/_sass/basically-basic/_print.scss +226 -0
  66. data/_sass/basically-basic/_reset.scss +522 -522
  67. data/_sass/basically-basic/_responsive-embed.scss +70 -0
  68. data/_sass/basically-basic/_sidebar.scss +177 -177
  69. data/_sass/basically-basic/_syntax-highlighting.scss +127 -127
  70. data/_sass/basically-basic/_tables.scss +42 -42
  71. data/_sass/basically-basic/_variables.scss +84 -84
  72. data/_sass/basically-basic/mixins/_clearfix.scss +11 -11
  73. data/_sass/basically-basic/mixins/_color.scss +21 -21
  74. data/_sass/basically-basic/mixins/_float.scss +15 -15
  75. data/_sass/basically-basic/mixins/_fluid-type.scss +33 -33
  76. data/_sass/basically-basic/mixins/_image.scss +38 -38
  77. data/_sass/basically-basic/mixins/_lists.scss +9 -9
  78. data/_sass/basically-basic/mixins/_text-truncate.scss +10 -10
  79. data/_sass/basically-basic/themes/_default.scss +5 -5
  80. data/_sass/basically-basic/themes/_night.scss +12 -12
  81. data/_sass/basically-basic/themes/_plum.scss +12 -12
  82. data/_sass/basically-basic/themes/_sea.scss +12 -12
  83. data/_sass/basically-basic/themes/_soft.scss +12 -12
  84. data/_sass/basically-basic/themes/_steel.scss +12 -12
  85. data/_sass/basically-basic/utilities/_accessibility.scss +54 -54
  86. data/_sass/basically-basic/utilities/_align.scss +64 -64
  87. data/_sass/basically-basic/utilities/_clearfix.scss +7 -7
  88. data/_sass/basically-basic/utilities/_float.scss +7 -7
  89. data/_sass/basically-basic/utilities/_text.scss +28 -28
  90. data/_sass/basically-basic/vendor/_breakpoint.scss +114 -114
  91. data/_sass/basically-basic/vendor/_su.scss +4 -4
  92. data/_sass/basically-basic/vendor/_susy.scss +4 -4
  93. data/_sass/basically-basic/vendor/_susyone.scss +4 -4
  94. data/_sass/basically-basic/vendor/breakpoint/_context.scss +94 -94
  95. data/_sass/basically-basic/vendor/breakpoint/_helpers.scss +151 -151
  96. data/_sass/basically-basic/vendor/breakpoint/_legacy-settings.scss +49 -49
  97. data/_sass/basically-basic/vendor/breakpoint/_no-query.scss +15 -15
  98. data/_sass/basically-basic/vendor/breakpoint/_parsers.scss +215 -215
  99. data/_sass/basically-basic/vendor/breakpoint/_respond-to.scss +82 -82
  100. data/_sass/basically-basic/vendor/breakpoint/_settings.scss +70 -70
  101. data/_sass/basically-basic/vendor/breakpoint/parsers/_double.scss +33 -33
  102. data/_sass/basically-basic/vendor/breakpoint/parsers/_query.scss +82 -82
  103. data/_sass/basically-basic/vendor/breakpoint/parsers/_resolution.scss +31 -31
  104. data/_sass/basically-basic/vendor/breakpoint/parsers/_single.scss +26 -26
  105. data/_sass/basically-basic/vendor/breakpoint/parsers/_triple.scss +36 -36
  106. data/_sass/basically-basic/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
  107. data/_sass/basically-basic/vendor/breakpoint/parsers/double/_default.scss +22 -22
  108. data/_sass/basically-basic/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
  109. data/_sass/basically-basic/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
  110. data/_sass/basically-basic/vendor/breakpoint/parsers/single/_default.scss +13 -13
  111. data/_sass/basically-basic/vendor/breakpoint/parsers/triple/_default.scss +18 -18
  112. data/_sass/basically-basic/vendor/susy/_su.scss +7 -7
  113. data/_sass/basically-basic/vendor/susy/language/_susy.scss +24 -24
  114. data/_sass/basically-basic/vendor/susy/language/_susyone.scss +13 -13
  115. data/_sass/basically-basic/vendor/susy/language/susy/_background.scss +385 -385
  116. data/_sass/basically-basic/vendor/susy/language/susy/_bleed.scss +200 -200
  117. data/_sass/basically-basic/vendor/susy/language/susy/_box-sizing.scss +47 -47
  118. data/_sass/basically-basic/vendor/susy/language/susy/_breakpoint-plugin.scss +185 -185
  119. data/_sass/basically-basic/vendor/susy/language/susy/_container.scss +81 -81
  120. data/_sass/basically-basic/vendor/susy/language/susy/_context.scss +36 -36
  121. data/_sass/basically-basic/vendor/susy/language/susy/_gallery.scss +94 -94
  122. data/_sass/basically-basic/vendor/susy/language/susy/_grids.scss +64 -64
  123. data/_sass/basically-basic/vendor/susy/language/susy/_gutters.scss +154 -154
  124. data/_sass/basically-basic/vendor/susy/language/susy/_isolate.scss +77 -77
  125. data/_sass/basically-basic/vendor/susy/language/susy/_margins.scss +94 -94
  126. data/_sass/basically-basic/vendor/susy/language/susy/_padding.scss +74 -74
  127. data/_sass/basically-basic/vendor/susy/language/susy/_rows.scss +138 -138
  128. data/_sass/basically-basic/vendor/susy/language/susy/_settings.scss +216 -216
  129. data/_sass/basically-basic/vendor/susy/language/susy/_span.scss +163 -163
  130. data/_sass/basically-basic/vendor/susy/language/susy/_validation.scss +16 -16
  131. data/_sass/basically-basic/vendor/susy/language/susyone/_background.scss +18 -18
  132. data/_sass/basically-basic/vendor/susy/language/susyone/_functions.scss +377 -377
  133. data/_sass/basically-basic/vendor/susy/language/susyone/_grid.scss +312 -312
  134. data/_sass/basically-basic/vendor/susy/language/susyone/_isolation.scss +51 -51
  135. data/_sass/basically-basic/vendor/susy/language/susyone/_margin.scss +93 -93
  136. data/_sass/basically-basic/vendor/susy/language/susyone/_media.scss +105 -105
  137. data/_sass/basically-basic/vendor/susy/language/susyone/_padding.scss +92 -92
  138. data/_sass/basically-basic/vendor/susy/language/susyone/_settings.scss +60 -60
  139. data/_sass/basically-basic/vendor/susy/output/_float.scss +9 -9
  140. data/_sass/basically-basic/vendor/susy/output/_shared.scss +15 -15
  141. data/_sass/basically-basic/vendor/susy/output/_support.scss +9 -9
  142. data/_sass/basically-basic/vendor/susy/output/float/_container.scss +16 -16
  143. data/_sass/basically-basic/vendor/susy/output/float/_end.scss +40 -40
  144. data/_sass/basically-basic/vendor/susy/output/float/_isolate.scss +22 -22
  145. data/_sass/basically-basic/vendor/susy/output/float/_span.scss +35 -35
  146. data/_sass/basically-basic/vendor/susy/output/shared/_background.scss +26 -26
  147. data/_sass/basically-basic/vendor/susy/output/shared/_container.scss +21 -21
  148. data/_sass/basically-basic/vendor/susy/output/shared/_direction.scss +42 -42
  149. data/_sass/basically-basic/vendor/susy/output/shared/_inspect.scss +25 -25
  150. data/_sass/basically-basic/vendor/susy/output/shared/_margins.scss +23 -23
  151. data/_sass/basically-basic/vendor/susy/output/shared/_output.scss +14 -14
  152. data/_sass/basically-basic/vendor/susy/output/shared/_padding.scss +23 -23
  153. data/_sass/basically-basic/vendor/susy/output/support/_background.scss +58 -58
  154. data/_sass/basically-basic/vendor/susy/output/support/_box-sizing.scss +19 -19
  155. data/_sass/basically-basic/vendor/susy/output/support/_clearfix.scss +18 -18
  156. data/_sass/basically-basic/vendor/susy/output/support/_prefix.scss +19 -19
  157. data/_sass/basically-basic/vendor/susy/output/support/_rem.scss +22 -22
  158. data/_sass/basically-basic/vendor/susy/output/support/_support.scss +85 -85
  159. data/_sass/basically-basic/vendor/susy/su/_grid.scss +103 -103
  160. data/_sass/basically-basic/vendor/susy/su/_settings.scss +73 -73
  161. data/_sass/basically-basic/vendor/susy/su/_utilities.scss +111 -111
  162. data/_sass/basically-basic/vendor/susy/su/_validation.scss +57 -57
  163. data/assets/javascripts/main.js +57 -57
  164. data/assets/stylesheets/main.scss +9 -9
  165. metadata +4 -2
@@ -1,163 +1,163 @@
1
- // Span Syntax
2
- // ===========
3
-
4
- // Span [mixin]
5
- // ------------
6
- // Set a spanning element using shorthand syntax.
7
- // - $span : <span>
8
- @mixin span(
9
- $span
10
- ) {
11
- $inspect: $span;
12
- $span: parse-span($span);
13
- $output: span-math($span);
14
- $nesting: susy-get(span, $span);
15
- $clear: susy-get(clear, $span);
16
-
17
- $box: susy-get(box-sizing, $span);
18
- $content-box: if(susy-get(global-box-sizing) != 'border-box', true, false);
19
- $box: $box or if(is-inside($span) and $content-box, border-box, null);
20
-
21
- @if $clear == break {
22
- @include break;
23
- } @else if $clear == nobreak {
24
- @include nobreak;
25
- }
26
-
27
- @include susy-inspect(span, $inspect);
28
- @include output((box-sizing: $box));
29
- @include float-span-output($output...);
30
-
31
- @if valid-columns($nesting, silent) {
32
- @include nested($span) { @content; }
33
- } @else {
34
- @content;
35
- }
36
- }
37
-
38
- // Span [function]
39
- // ---------------
40
- // Return the width of a span.
41
- // - $span : <span>
42
- @function span(
43
- $span
44
- ) {
45
- @return get-span-width($span);
46
- }
47
-
48
- // Span Math
49
- // ---------
50
- // Get all the span results.
51
- // - $span: <map>
52
- @function span-math(
53
- $span
54
- ) {
55
- $nest : if(susy-get(role, $span) == nest, true, false);
56
- $split-nest : if(is-split($span) and $nest, true, false);
57
- $edge : get-edge($span);
58
- $location : get-location($span);
59
-
60
- $float : from;
61
- $padding-before : null;
62
- $padding-after : null;
63
- $margin-before : null;
64
- $margin-after : null;
65
-
66
- // calculate widths
67
- $spread: index(map-values($span), spread);
68
- $span: if($split-nest and not($spread), map-merge($span, (spread: wide)), $span);
69
- $width: get-span-width($span);
70
- $gutters: get-gutters($span);
71
-
72
- // apply gutters
73
- @if is-inside($span) {
74
- @if not(susy-get(role, $span)) {
75
- $padding-before: map-get($gutters, before);
76
- $padding-after: map-get($gutters, after);
77
- }
78
- } @else {
79
- @if not($split-nest) {
80
- $margin-before: map-get($gutters, before);
81
- $margin-after: map-get($gutters, after);
82
- }
83
- }
84
-
85
- // special margin handling
86
- @if susy-get(output, $span) == isolate and $location {
87
- $margin-before: get-isolation($span);
88
- $margin-after: -100%;
89
- } @else if $edge {
90
- $is-split: is-split($span);
91
- $pos: susy-get(gutter-position, $span);
92
-
93
- @if $edge == last {
94
- $float: susy-get(last-flow, $span);
95
- }
96
-
97
- @if not($is-split) {
98
- @if $edge == full or ($edge == first and $pos == before) {
99
- $margin-before: 0;
100
- }
101
- @if $edge == full or ($edge == last and $pos == after) {
102
- $margin-after: 0;
103
- }
104
- }
105
-
106
- }
107
-
108
- @return (
109
- width : $width,
110
- float : $float,
111
- margin-before : $margin-before,
112
- margin-after : $margin-after,
113
- padding-before : $padding-before,
114
- padding-after : $padding-after,
115
- flow : susy-get(flow, $span),
116
- );
117
- }
118
-
119
- // Get Span Width
120
- // --------------
121
- // Return span width.
122
- // - $span: <map>
123
- @function get-span-width(
124
- $span
125
- ) {
126
- $span : parse-span($span);
127
-
128
- $n : susy-get(span, $span);
129
- $location : get-location($span);
130
- $columns : susy-get(columns, $span);
131
- $gutters : susy-get(gutters, $span);
132
- $spread : susy-get(spread, $span);
133
-
134
- $context : null;
135
- $span-sum : null;
136
- $width : null;
137
-
138
- @if $n == 'full' {
139
- $pos: susy-get(gutter-position, $span);
140
- $role: susy-get(role, $span);
141
- $n: if($pos == split and $role != nest, susy-count($columns), 100%);
142
- }
143
-
144
- @if type-of($n) != number {
145
- @warn "(#{type-of($n)}) #{$n} is not a valid span.";
146
- } @else if unitless($n) {
147
- $context: susy-sum($columns, $gutters, if(is-split($span), wide, narrow));
148
- $spread: if(is-inside($span), $spread or wide, $spread);
149
- $span-sum: susy($n, $location, $columns, $gutters, $spread);
150
-
151
- $_math: susy-get(math, $span);
152
- $_column-width: susy-get(column-width, $span);
153
- @if $_math == static {
154
- $width: $span-sum * valid-column-math($_math, $_column-width);
155
- } @else {
156
- $width: percentage($span-sum / $context);
157
- }
158
- } @else {
159
- $width: $n;
160
- }
161
-
162
- @return $width;
163
- }
1
+ // Span Syntax
2
+ // ===========
3
+
4
+ // Span [mixin]
5
+ // ------------
6
+ // Set a spanning element using shorthand syntax.
7
+ // - $span : <span>
8
+ @mixin span(
9
+ $span
10
+ ) {
11
+ $inspect: $span;
12
+ $span: parse-span($span);
13
+ $output: span-math($span);
14
+ $nesting: susy-get(span, $span);
15
+ $clear: susy-get(clear, $span);
16
+
17
+ $box: susy-get(box-sizing, $span);
18
+ $content-box: if(susy-get(global-box-sizing) != 'border-box', true, false);
19
+ $box: $box or if(is-inside($span) and $content-box, border-box, null);
20
+
21
+ @if $clear == break {
22
+ @include break;
23
+ } @else if $clear == nobreak {
24
+ @include nobreak;
25
+ }
26
+
27
+ @include susy-inspect(span, $inspect);
28
+ @include output((box-sizing: $box));
29
+ @include float-span-output($output...);
30
+
31
+ @if valid-columns($nesting, silent) {
32
+ @include nested($span) { @content; }
33
+ } @else {
34
+ @content;
35
+ }
36
+ }
37
+
38
+ // Span [function]
39
+ // ---------------
40
+ // Return the width of a span.
41
+ // - $span : <span>
42
+ @function span(
43
+ $span
44
+ ) {
45
+ @return get-span-width($span);
46
+ }
47
+
48
+ // Span Math
49
+ // ---------
50
+ // Get all the span results.
51
+ // - $span: <map>
52
+ @function span-math(
53
+ $span
54
+ ) {
55
+ $nest : if(susy-get(role, $span) == nest, true, false);
56
+ $split-nest : if(is-split($span) and $nest, true, false);
57
+ $edge : get-edge($span);
58
+ $location : get-location($span);
59
+
60
+ $float : from;
61
+ $padding-before : null;
62
+ $padding-after : null;
63
+ $margin-before : null;
64
+ $margin-after : null;
65
+
66
+ // calculate widths
67
+ $spread: index(map-values($span), spread);
68
+ $span: if($split-nest and not($spread), map-merge($span, (spread: wide)), $span);
69
+ $width: get-span-width($span);
70
+ $gutters: get-gutters($span);
71
+
72
+ // apply gutters
73
+ @if is-inside($span) {
74
+ @if not(susy-get(role, $span)) {
75
+ $padding-before: map-get($gutters, before);
76
+ $padding-after: map-get($gutters, after);
77
+ }
78
+ } @else {
79
+ @if not($split-nest) {
80
+ $margin-before: map-get($gutters, before);
81
+ $margin-after: map-get($gutters, after);
82
+ }
83
+ }
84
+
85
+ // special margin handling
86
+ @if susy-get(output, $span) == isolate and $location {
87
+ $margin-before: get-isolation($span);
88
+ $margin-after: -100%;
89
+ } @else if $edge {
90
+ $is-split: is-split($span);
91
+ $pos: susy-get(gutter-position, $span);
92
+
93
+ @if $edge == last {
94
+ $float: susy-get(last-flow, $span);
95
+ }
96
+
97
+ @if not($is-split) {
98
+ @if $edge == full or ($edge == first and $pos == before) {
99
+ $margin-before: 0;
100
+ }
101
+ @if $edge == full or ($edge == last and $pos == after) {
102
+ $margin-after: 0;
103
+ }
104
+ }
105
+
106
+ }
107
+
108
+ @return (
109
+ width : $width,
110
+ float : $float,
111
+ margin-before : $margin-before,
112
+ margin-after : $margin-after,
113
+ padding-before : $padding-before,
114
+ padding-after : $padding-after,
115
+ flow : susy-get(flow, $span),
116
+ );
117
+ }
118
+
119
+ // Get Span Width
120
+ // --------------
121
+ // Return span width.
122
+ // - $span: <map>
123
+ @function get-span-width(
124
+ $span
125
+ ) {
126
+ $span : parse-span($span);
127
+
128
+ $n : susy-get(span, $span);
129
+ $location : get-location($span);
130
+ $columns : susy-get(columns, $span);
131
+ $gutters : susy-get(gutters, $span);
132
+ $spread : susy-get(spread, $span);
133
+
134
+ $context : null;
135
+ $span-sum : null;
136
+ $width : null;
137
+
138
+ @if $n == 'full' {
139
+ $pos: susy-get(gutter-position, $span);
140
+ $role: susy-get(role, $span);
141
+ $n: if($pos == split and $role != nest, susy-count($columns), 100%);
142
+ }
143
+
144
+ @if type-of($n) != number {
145
+ @warn "(#{type-of($n)}) #{$n} is not a valid span.";
146
+ } @else if unitless($n) {
147
+ $context: susy-sum($columns, $gutters, if(is-split($span), wide, narrow));
148
+ $spread: if(is-inside($span), $spread or wide, $spread);
149
+ $span-sum: susy($n, $location, $columns, $gutters, $spread);
150
+
151
+ $_math: susy-get(math, $span);
152
+ $_column-width: susy-get(column-width, $span);
153
+ @if $_math == static {
154
+ $width: $span-sum * valid-column-math($_math, $_column-width);
155
+ } @else {
156
+ $width: percentage($span-sum / $context);
157
+ }
158
+ } @else {
159
+ $width: $n;
160
+ }
161
+
162
+ @return $width;
163
+ }
@@ -1,16 +1,16 @@
1
- // Validation
2
- // ==========
3
-
4
-
5
- // Validate Column Math
6
- // --------------------
7
- @function valid-column-math(
8
- $math,
9
- $column-width
10
- ) {
11
- @if $math == static and not($column-width) {
12
- @error 'Static math requires a valid column-width setting.';
13
- }
14
-
15
- @return $column-width;
16
- }
1
+ // Validation
2
+ // ==========
3
+
4
+
5
+ // Validate Column Math
6
+ // --------------------
7
+ @function valid-column-math(
8
+ $math,
9
+ $column-width
10
+ ) {
11
+ @if $math == static and not($column-width) {
12
+ @error 'Static math requires a valid column-width setting.';
13
+ }
14
+
15
+ @return $column-width;
16
+ }
@@ -1,18 +1,18 @@
1
- // ---------------------------------------------------------------------------
2
- // Imports
3
-
4
- @import "compass/layout/grid-background";
5
- @import "compass/css3/background-origin";
6
- @import "compass/css3/background-clip";
7
-
8
- // ---------------------------------------------------------------------------
9
- // Susy Grid Background
10
- //
11
- // A wrapper for the compass "column-grid-background" mixin
12
- // Uses all your settings to create a grid background for a container element.
13
- // Note: Sub-pixel rounding can lead to several pixels of variation between browsers.
14
- @mixin susy-grid-background(){
15
- @include column-grid-background($total-columns, column(), gutter(), 0);
16
- @include background-origin(content-box);
17
- @include background-clip(content-box);
18
- }
1
+ // ---------------------------------------------------------------------------
2
+ // Imports
3
+
4
+ @import "compass/layout/grid-background";
5
+ @import "compass/css3/background-origin";
6
+ @import "compass/css3/background-clip";
7
+
8
+ // ---------------------------------------------------------------------------
9
+ // Susy Grid Background
10
+ //
11
+ // A wrapper for the compass "column-grid-background" mixin
12
+ // Uses all your settings to create a grid background for a container element.
13
+ // Note: Sub-pixel rounding can lead to several pixels of variation between browsers.
14
+ @mixin susy-grid-background(){
15
+ @include column-grid-background($total-columns, column(), gutter(), 0);
16
+ @include background-origin(content-box);
17
+ @include background-clip(content-box);
18
+ }
@@ -1,377 +1,377 @@
1
- // ---------------------------------------------------------------------------
2
- // Imports
3
-
4
- // We need access to some basic font settings for handling media-queries.
5
- @import "compass/typography/vertical_rhythm";
6
-
7
- // For now, we also need this...
8
- $browser-default-font-size-px : 16px;
9
- $browser-default-font-size-percent : 100%;
10
- $browser-default-font-size-pt : 12pt;
11
-
12
- $rem-with-px-fallback : true !default;
13
-
14
- // ---------------------------------------------------------------------------
15
- // Sass list Functions
16
-
17
- // Return a list with specific items removed
18
- //
19
- // filter($list, $target)
20
- // - $list : The list to filter.
21
- // - $target : An item to be removed from the list.
22
- @function filter($list, $target) {
23
- $clean: compact();
24
- @if index($list, $target) {
25
- @each $item in $list {
26
- $clean: if($item == $target, $clean, append($clean, $item));
27
- }
28
- } @else { $clean: $list; }
29
- @return $clean;
30
- }
31
-
32
- // ---------------------------------------------------------------------------
33
- // Don't use static output when it will break things
34
-
35
- // Switch element-level output to fluid, when container-width is wrong for static
36
- //
37
- // fix-static-misalignment([$style, $width])
38
- // - $style: $container-style.
39
- // - $width: $container-width.
40
- @function fix-static-misalignment(
41
- $style: $container-style,
42
- $width: $container-width
43
- ) {
44
- @if $container-width and $container-width != container-outer-width($width: false) {
45
- $style: fluid;
46
- }
47
- @return $style;
48
- }
49
-
50
- // ---------------------------------------------------------------------------
51
- // Grid Functions
52
-
53
- // Returns the full width of a grid based on your grid settings.
54
- //
55
- // $columns : The number of columns to get width for.
56
- @function columns-width(
57
- $columns : $total-columns
58
- ) {
59
- @if round($columns) != $columns {
60
- @warn "Susy works best with integer column-spans." +
61
- "For partial-columns, you may need to finesse the math by hand using functions directly.";
62
- }
63
- @return ($columns * $column-width) + (if($columns >= 1, ceil($columns - 1), 0) * $gutter-width);
64
- }
65
-
66
- // Return the grid width after adding or subtracting grid padding
67
- //
68
- // $width : the width of the grid without padding;
69
- // $operation : ( add | subtract ) if padding should be added or subtracted;
70
- @function handle-grid-padding(
71
- $width,
72
- $operation : subtract
73
- ) {
74
- $pad: $grid-padding*2;
75
-
76
- @if comparable($width, $grid-padding) {
77
- $width: if($operation == subtract, $width - $pad, $width + $pad);
78
- } @else {
79
- @warn "$grid-padding must be set in units comparable to the container width.";
80
- }
81
-
82
- @return $width;
83
- }
84
-
85
- // Return the full outer width of a Container element.
86
- //
87
- // $columns : The number of columns in the Grid Layout.
88
- @function container-outer-width(
89
- $columns : $total-columns,
90
- $width : $container-width
91
- ) {
92
- $outerwidth: if($width, $width, columns-width($columns));
93
-
94
- @if $width {
95
- @if not($border-box-sizing) { $outerwidth: handle-grid-padding($outerwidth, subtract); }
96
- } @else {
97
- @if $border-box-sizing { $outerwidth: handle-grid-padding($outerwidth, add); }
98
- }
99
-
100
- @return $outerwidth;
101
- }
102
-
103
- // Return the percentage width of a single column in a given 'context'.
104
- //
105
- // $context : The grid context in columns, if nested.
106
- // $style : The container style to use.
107
- @function column(
108
- $context : $total-columns,
109
- $style : fix-static-misalignment()
110
- ) {
111
- @return if($style == static, $column-width, relative-width($column-width, $context));
112
- }
113
-
114
- // Return the percentage width of multiple 'columns' in a given 'context'.
115
- //
116
- // $columns : The number of columns to get relative width for.
117
- // $context : The grid context in columns, if nested.
118
- // $style : The container style to use.
119
- @function columns(
120
- $columns,
121
- $context : $total-columns,
122
- $style : fix-static-misalignment()
123
- ) {
124
- @return if($style == static, columns-width($columns), relative-width(columns-width($columns), $context));
125
- }
126
-
127
- // Return the percentage width of a single gutter in a given 'context'.
128
- //
129
- // $context : The grid context in columns, if nested.
130
- // $style : The container style to use.
131
- @function gutter(
132
- $context : $total-columns,
133
- $style : fix-static-misalignment()
134
- ) {
135
- @return if($style == static, $gutter-width, relative-width($gutter-width, $context));
136
- }
137
-
138
- // Return the percentage width of a given value in a given 'context'.
139
- //
140
- // $width : Any given width value.
141
- // $context : The grid context in columns, if nested.
142
- @function relative-width(
143
- $width,
144
- $context : $total-columns
145
- ) {
146
- @return percentage($width / columns-width($context));
147
- }
148
-
149
- // Return the total space occupied by multiple columns and associated gutters.
150
- // Useful for adding padding or margins (prefix, suffix, push, pull, etc.)
151
- //
152
- // $columns : The number of columns to get relative space for.
153
- // $context : The grid context in columns, if nested.
154
- // $style : The container style to use.
155
- @function space(
156
- $columns,
157
- $context : $total-columns,
158
- $style : fix-static-misalignment()
159
- ) {
160
- @return columns($columns, $context, $style) + if($columns >= 1, gutter($context, $style), 0);
161
- }
162
-
163
- // Accept a list including column-count and (optional) position.
164
- // Return either the column count or the position alone.
165
- //
166
- // $columns : the list to split and interprate.
167
- // $request : The value to return, either 'columns' or 'position'.
168
- @function split-columns-value(
169
- $columns,
170
- $request : columns
171
- ) {
172
- $pos : false;
173
- $cols : false;
174
-
175
- @each $var in $columns {
176
- @if (type-of($var) == 'string') {
177
- $pos: $var;
178
- } @else {
179
- @if (type-of($var) == 'number') and (unitless($var)) {
180
- $cols: $var;
181
- } @else {
182
- @warn '"#{$var}" is not a valid part of "$columns: #{$columns}" in the columns() mixin.';
183
- }
184
- }
185
- }
186
-
187
- @if $request == 'columns' {
188
- @return $cols;
189
- } @else {
190
- @if $request == 'position' {
191
- @return $pos;
192
- } @else {
193
- @warn '"#{$request}" is not a valid value for $request';
194
- }
195
- }
196
- }
197
-
198
- // Accept nth-selector variables, and format them as a valid CSS3 selector.
199
- //
200
- // $n : [first | only | last | <equation>]
201
- // $selector : [child | last-child | of-type | last-of-type ]
202
- @function format-nth(
203
- $n : last,
204
- $selector : child
205
- ) {
206
- @if ($n == 'last') or ($n =='first') or ($n =='only') {
207
- $selector: '#{$n}-#{$selector}';
208
- } @else {
209
- $selector: 'nth-#{$selector}(#{$n})';
210
- }
211
- @return $selector;
212
- }
213
-
214
- // ---------------------------------------------------------------------------
215
- // Media Functions
216
-
217
- // Return an em value adjusted to match the browser default font size.
218
- // Note: This only works if actual sizes are set relative to browser defaults.
219
- //
220
- // $ems : The initial value to be converted.
221
- // $font-size : The current font-size in.
222
- @function base-ems(
223
- $ems,
224
- $font-size: $base-font-size
225
- ){
226
- $font-size : if(unit($ems) == 'rem', $base-font-size, $font-size);
227
- $unit : unit($font-size);
228
- $mult : $ems / ($ems * 0 + 1);
229
-
230
- @if $unit == 'px' {
231
- @return $font-size / $browser-default-font-size-px * $mult * 1em;
232
- }
233
- @else if $unit == '%' {
234
- @return $font-size / $browser-default-font-size-percent * $mult * 1em;
235
- }
236
- @else if $unit == 'em' {
237
- @return $font-size / 1em * $mult * 1em;
238
- }
239
- @else if $unit == 'pt' {
240
- @return $font-size / $browser-default-font-size-pt * $mult * 1em;
241
- }
242
- @else {
243
- @warn 'Variable $base-font-size does not have a valid font unit. Valid units for fonts in CSS are px, pt, em, and %.';
244
- }
245
- }
246
-
247
- // This name will be deprecated...
248
- @function absolute-ems(
249
- $ems,
250
- $font-size: $base-font-size
251
- ){
252
- @return base-ems( $ems, $font-size);
253
- }
254
-
255
- // Return a length, after any em-values have been sent through absolute-ems().
256
- //
257
- // $length : The length value to be checked and adjusted if necessary.
258
- // $font-size : The current font-size in px.
259
- @function fix-ems(
260
- $length,
261
- $font-size: $base-font-size
262
- ){
263
- @if $length {
264
- @if (unit($length) == 'em') or (unit($length) == 'rem') {
265
- $length: absolute-ems($length,$font-size);
266
- }
267
- }
268
- @return $length;
269
- }
270
-
271
- // Sort a list of arguments into "$min $layout $max $ie" order, and return the list.
272
- //
273
- // $media-layout : a list of values [$min $layout $max $ie] including...
274
- // : - one unitless number (columns in a layout)
275
- // : - two optional lengths (min and max-width media-query breakpoints).
276
- // : - one optional boolean or string to trigger fallback support for IE.
277
- // $font-size : [optional] The base font-size of your layout, if you are using ems.
278
- // : - defaults to $base-font-size
279
- @function medialayout(
280
- $media-layout,
281
- $font-size: $base-font-size
282
- ) {
283
- $media : false;
284
- $min : false;
285
- $layout : false;
286
- $max : false;
287
- $ie : false;
288
- $has-layout : false;
289
-
290
- @each $val in $media-layout {
291
- @if (type-of($val) == "number") {
292
- @if unitless($val) {
293
- $layout : $val;
294
- $has-layout : true;
295
- } @else {
296
- @if ($has-layout) and not($media) {
297
- $max: $val;
298
- } @else {
299
- @if $media {
300
- $media: join($media,$val);
301
- } @else {
302
- $media: $val;
303
- }
304
- }
305
- }
306
- } @else {
307
- $ie: $val;
308
- }
309
- }
310
- @if (length($media) > 0) {
311
- @if (length($media) == 1) {
312
- $min: nth($media,1);
313
- } @else {
314
- $min: nth($media,1);
315
- $max: nth($media,2);
316
- @if comparable($min, $max) {
317
- @if ($min > $max) {
318
- $max: nth($media,1);
319
- $min: nth($media,2);
320
- }
321
- } @else {
322
- @warn "Can't compare incompatible units." +
323
- "Using #{$min} for min-width, and #{$max} for max-width";
324
- }
325
- @if (length($media) > 2) {
326
- @warn "You can only send two lengths: a min-width and an (optional) max-width." +
327
- "You sent #{length($media)}: #{$media}";
328
- }
329
- }
330
- }
331
-
332
- // media-queries must be set in ems relative to the browser default
333
- // rather than the font-size set in CSS.
334
- $min: fix-ems($min,$font-size);
335
- $max: fix-ems($max,$font-size);
336
-
337
- @return $min $layout $max $ie;
338
- }
339
-
340
- // Return the nearest layout (column-count) above a given breakpoint.
341
- //
342
- // $min : The min-width media-query breakpoint above which to establish a new layout.
343
- @function get-layout(
344
- $min
345
- ) {
346
- $min : fix-ems($min);
347
- $return : false;
348
-
349
- @if comparable($min, $column-width) {
350
- $return : ceil(($min + $gutter-width) / ($column-width + $gutter-width));
351
- } @else {
352
- @warn "Can't determine a layout, becuse #{$min} and #{$column-width} are not comparable.";
353
- }
354
-
355
- @return $return;
356
- }
357
-
358
- // Check to see if a given $media-layout list is simply the default.
359
- //
360
- // $media-layout : a list of values including -
361
- // : One unitless number (columns in a layout)
362
- // : Two optional lengths (min and max-width media-query breakpoints).
363
- // : One optional boolean or string to trigger fallback support for IE.
364
- @function is-default-layout(
365
- $media-layout
366
- ) {
367
- $media-layout : medialayout($media-layout);
368
- $min : nth($media-layout,1);
369
- $layout-cols : nth($media-layout,2);
370
- $max : nth($media-layout,3);
371
-
372
- @if $min or $max {
373
- @return false;
374
- } @else {
375
- @return if($layout-cols == $total-columns,true,false);
376
- }
377
- }
1
+ // ---------------------------------------------------------------------------
2
+ // Imports
3
+
4
+ // We need access to some basic font settings for handling media-queries.
5
+ @import "compass/typography/vertical_rhythm";
6
+
7
+ // For now, we also need this...
8
+ $browser-default-font-size-px : 16px;
9
+ $browser-default-font-size-percent : 100%;
10
+ $browser-default-font-size-pt : 12pt;
11
+
12
+ $rem-with-px-fallback : true !default;
13
+
14
+ // ---------------------------------------------------------------------------
15
+ // Sass list Functions
16
+
17
+ // Return a list with specific items removed
18
+ //
19
+ // filter($list, $target)
20
+ // - $list : The list to filter.
21
+ // - $target : An item to be removed from the list.
22
+ @function filter($list, $target) {
23
+ $clean: compact();
24
+ @if index($list, $target) {
25
+ @each $item in $list {
26
+ $clean: if($item == $target, $clean, append($clean, $item));
27
+ }
28
+ } @else { $clean: $list; }
29
+ @return $clean;
30
+ }
31
+
32
+ // ---------------------------------------------------------------------------
33
+ // Don't use static output when it will break things
34
+
35
+ // Switch element-level output to fluid, when container-width is wrong for static
36
+ //
37
+ // fix-static-misalignment([$style, $width])
38
+ // - $style: $container-style.
39
+ // - $width: $container-width.
40
+ @function fix-static-misalignment(
41
+ $style: $container-style,
42
+ $width: $container-width
43
+ ) {
44
+ @if $container-width and $container-width != container-outer-width($width: false) {
45
+ $style: fluid;
46
+ }
47
+ @return $style;
48
+ }
49
+
50
+ // ---------------------------------------------------------------------------
51
+ // Grid Functions
52
+
53
+ // Returns the full width of a grid based on your grid settings.
54
+ //
55
+ // $columns : The number of columns to get width for.
56
+ @function columns-width(
57
+ $columns : $total-columns
58
+ ) {
59
+ @if round($columns) != $columns {
60
+ @warn "Susy works best with integer column-spans." +
61
+ "For partial-columns, you may need to finesse the math by hand using functions directly.";
62
+ }
63
+ @return ($columns * $column-width) + (if($columns >= 1, ceil($columns - 1), 0) * $gutter-width);
64
+ }
65
+
66
+ // Return the grid width after adding or subtracting grid padding
67
+ //
68
+ // $width : the width of the grid without padding;
69
+ // $operation : ( add | subtract ) if padding should be added or subtracted;
70
+ @function handle-grid-padding(
71
+ $width,
72
+ $operation : subtract
73
+ ) {
74
+ $pad: $grid-padding*2;
75
+
76
+ @if comparable($width, $grid-padding) {
77
+ $width: if($operation == subtract, $width - $pad, $width + $pad);
78
+ } @else {
79
+ @warn "$grid-padding must be set in units comparable to the container width.";
80
+ }
81
+
82
+ @return $width;
83
+ }
84
+
85
+ // Return the full outer width of a Container element.
86
+ //
87
+ // $columns : The number of columns in the Grid Layout.
88
+ @function container-outer-width(
89
+ $columns : $total-columns,
90
+ $width : $container-width
91
+ ) {
92
+ $outerwidth: if($width, $width, columns-width($columns));
93
+
94
+ @if $width {
95
+ @if not($border-box-sizing) { $outerwidth: handle-grid-padding($outerwidth, subtract); }
96
+ } @else {
97
+ @if $border-box-sizing { $outerwidth: handle-grid-padding($outerwidth, add); }
98
+ }
99
+
100
+ @return $outerwidth;
101
+ }
102
+
103
+ // Return the percentage width of a single column in a given 'context'.
104
+ //
105
+ // $context : The grid context in columns, if nested.
106
+ // $style : The container style to use.
107
+ @function column(
108
+ $context : $total-columns,
109
+ $style : fix-static-misalignment()
110
+ ) {
111
+ @return if($style == static, $column-width, relative-width($column-width, $context));
112
+ }
113
+
114
+ // Return the percentage width of multiple 'columns' in a given 'context'.
115
+ //
116
+ // $columns : The number of columns to get relative width for.
117
+ // $context : The grid context in columns, if nested.
118
+ // $style : The container style to use.
119
+ @function columns(
120
+ $columns,
121
+ $context : $total-columns,
122
+ $style : fix-static-misalignment()
123
+ ) {
124
+ @return if($style == static, columns-width($columns), relative-width(columns-width($columns), $context));
125
+ }
126
+
127
+ // Return the percentage width of a single gutter in a given 'context'.
128
+ //
129
+ // $context : The grid context in columns, if nested.
130
+ // $style : The container style to use.
131
+ @function gutter(
132
+ $context : $total-columns,
133
+ $style : fix-static-misalignment()
134
+ ) {
135
+ @return if($style == static, $gutter-width, relative-width($gutter-width, $context));
136
+ }
137
+
138
+ // Return the percentage width of a given value in a given 'context'.
139
+ //
140
+ // $width : Any given width value.
141
+ // $context : The grid context in columns, if nested.
142
+ @function relative-width(
143
+ $width,
144
+ $context : $total-columns
145
+ ) {
146
+ @return percentage($width / columns-width($context));
147
+ }
148
+
149
+ // Return the total space occupied by multiple columns and associated gutters.
150
+ // Useful for adding padding or margins (prefix, suffix, push, pull, etc.)
151
+ //
152
+ // $columns : The number of columns to get relative space for.
153
+ // $context : The grid context in columns, if nested.
154
+ // $style : The container style to use.
155
+ @function space(
156
+ $columns,
157
+ $context : $total-columns,
158
+ $style : fix-static-misalignment()
159
+ ) {
160
+ @return columns($columns, $context, $style) + if($columns >= 1, gutter($context, $style), 0);
161
+ }
162
+
163
+ // Accept a list including column-count and (optional) position.
164
+ // Return either the column count or the position alone.
165
+ //
166
+ // $columns : the list to split and interprate.
167
+ // $request : The value to return, either 'columns' or 'position'.
168
+ @function split-columns-value(
169
+ $columns,
170
+ $request : columns
171
+ ) {
172
+ $pos : false;
173
+ $cols : false;
174
+
175
+ @each $var in $columns {
176
+ @if (type-of($var) == 'string') {
177
+ $pos: $var;
178
+ } @else {
179
+ @if (type-of($var) == 'number') and (unitless($var)) {
180
+ $cols: $var;
181
+ } @else {
182
+ @warn '"#{$var}" is not a valid part of "$columns: #{$columns}" in the columns() mixin.';
183
+ }
184
+ }
185
+ }
186
+
187
+ @if $request == 'columns' {
188
+ @return $cols;
189
+ } @else {
190
+ @if $request == 'position' {
191
+ @return $pos;
192
+ } @else {
193
+ @warn '"#{$request}" is not a valid value for $request';
194
+ }
195
+ }
196
+ }
197
+
198
+ // Accept nth-selector variables, and format them as a valid CSS3 selector.
199
+ //
200
+ // $n : [first | only | last | <equation>]
201
+ // $selector : [child | last-child | of-type | last-of-type ]
202
+ @function format-nth(
203
+ $n : last,
204
+ $selector : child
205
+ ) {
206
+ @if ($n == 'last') or ($n =='first') or ($n =='only') {
207
+ $selector: '#{$n}-#{$selector}';
208
+ } @else {
209
+ $selector: 'nth-#{$selector}(#{$n})';
210
+ }
211
+ @return $selector;
212
+ }
213
+
214
+ // ---------------------------------------------------------------------------
215
+ // Media Functions
216
+
217
+ // Return an em value adjusted to match the browser default font size.
218
+ // Note: This only works if actual sizes are set relative to browser defaults.
219
+ //
220
+ // $ems : The initial value to be converted.
221
+ // $font-size : The current font-size in.
222
+ @function base-ems(
223
+ $ems,
224
+ $font-size: $base-font-size
225
+ ){
226
+ $font-size : if(unit($ems) == 'rem', $base-font-size, $font-size);
227
+ $unit : unit($font-size);
228
+ $mult : $ems / ($ems * 0 + 1);
229
+
230
+ @if $unit == 'px' {
231
+ @return $font-size / $browser-default-font-size-px * $mult * 1em;
232
+ }
233
+ @else if $unit == '%' {
234
+ @return $font-size / $browser-default-font-size-percent * $mult * 1em;
235
+ }
236
+ @else if $unit == 'em' {
237
+ @return $font-size / 1em * $mult * 1em;
238
+ }
239
+ @else if $unit == 'pt' {
240
+ @return $font-size / $browser-default-font-size-pt * $mult * 1em;
241
+ }
242
+ @else {
243
+ @warn 'Variable $base-font-size does not have a valid font unit. Valid units for fonts in CSS are px, pt, em, and %.';
244
+ }
245
+ }
246
+
247
+ // This name will be deprecated...
248
+ @function absolute-ems(
249
+ $ems,
250
+ $font-size: $base-font-size
251
+ ){
252
+ @return base-ems( $ems, $font-size);
253
+ }
254
+
255
+ // Return a length, after any em-values have been sent through absolute-ems().
256
+ //
257
+ // $length : The length value to be checked and adjusted if necessary.
258
+ // $font-size : The current font-size in px.
259
+ @function fix-ems(
260
+ $length,
261
+ $font-size: $base-font-size
262
+ ){
263
+ @if $length {
264
+ @if (unit($length) == 'em') or (unit($length) == 'rem') {
265
+ $length: absolute-ems($length,$font-size);
266
+ }
267
+ }
268
+ @return $length;
269
+ }
270
+
271
+ // Sort a list of arguments into "$min $layout $max $ie" order, and return the list.
272
+ //
273
+ // $media-layout : a list of values [$min $layout $max $ie] including...
274
+ // : - one unitless number (columns in a layout)
275
+ // : - two optional lengths (min and max-width media-query breakpoints).
276
+ // : - one optional boolean or string to trigger fallback support for IE.
277
+ // $font-size : [optional] The base font-size of your layout, if you are using ems.
278
+ // : - defaults to $base-font-size
279
+ @function medialayout(
280
+ $media-layout,
281
+ $font-size: $base-font-size
282
+ ) {
283
+ $media : false;
284
+ $min : false;
285
+ $layout : false;
286
+ $max : false;
287
+ $ie : false;
288
+ $has-layout : false;
289
+
290
+ @each $val in $media-layout {
291
+ @if (type-of($val) == "number") {
292
+ @if unitless($val) {
293
+ $layout : $val;
294
+ $has-layout : true;
295
+ } @else {
296
+ @if ($has-layout) and not($media) {
297
+ $max: $val;
298
+ } @else {
299
+ @if $media {
300
+ $media: join($media,$val);
301
+ } @else {
302
+ $media: $val;
303
+ }
304
+ }
305
+ }
306
+ } @else {
307
+ $ie: $val;
308
+ }
309
+ }
310
+ @if (length($media) > 0) {
311
+ @if (length($media) == 1) {
312
+ $min: nth($media,1);
313
+ } @else {
314
+ $min: nth($media,1);
315
+ $max: nth($media,2);
316
+ @if comparable($min, $max) {
317
+ @if ($min > $max) {
318
+ $max: nth($media,1);
319
+ $min: nth($media,2);
320
+ }
321
+ } @else {
322
+ @warn "Can't compare incompatible units." +
323
+ "Using #{$min} for min-width, and #{$max} for max-width";
324
+ }
325
+ @if (length($media) > 2) {
326
+ @warn "You can only send two lengths: a min-width and an (optional) max-width." +
327
+ "You sent #{length($media)}: #{$media}";
328
+ }
329
+ }
330
+ }
331
+
332
+ // media-queries must be set in ems relative to the browser default
333
+ // rather than the font-size set in CSS.
334
+ $min: fix-ems($min,$font-size);
335
+ $max: fix-ems($max,$font-size);
336
+
337
+ @return $min $layout $max $ie;
338
+ }
339
+
340
+ // Return the nearest layout (column-count) above a given breakpoint.
341
+ //
342
+ // $min : The min-width media-query breakpoint above which to establish a new layout.
343
+ @function get-layout(
344
+ $min
345
+ ) {
346
+ $min : fix-ems($min);
347
+ $return : false;
348
+
349
+ @if comparable($min, $column-width) {
350
+ $return : ceil(($min + $gutter-width) / ($column-width + $gutter-width));
351
+ } @else {
352
+ @warn "Can't determine a layout, becuse #{$min} and #{$column-width} are not comparable.";
353
+ }
354
+
355
+ @return $return;
356
+ }
357
+
358
+ // Check to see if a given $media-layout list is simply the default.
359
+ //
360
+ // $media-layout : a list of values including -
361
+ // : One unitless number (columns in a layout)
362
+ // : Two optional lengths (min and max-width media-query breakpoints).
363
+ // : One optional boolean or string to trigger fallback support for IE.
364
+ @function is-default-layout(
365
+ $media-layout
366
+ ) {
367
+ $media-layout : medialayout($media-layout);
368
+ $min : nth($media-layout,1);
369
+ $layout-cols : nth($media-layout,2);
370
+ $max : nth($media-layout,3);
371
+
372
+ @if $min or $max {
373
+ @return false;
374
+ } @else {
375
+ @return if($layout-cols == $total-columns,true,false);
376
+ }
377
+ }