jekyll-theme-basically-basic 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -12
  3. data/LICENSE.md +33 -21
  4. data/README.md +33 -17
  5. data/_includes/contact-list.html +1 -1
  6. data/_includes/head.html +2 -2
  7. data/_includes/navigation.html +2 -2
  8. data/_layouts/default.html +2 -2
  9. data/_layouts/home.html +1 -1
  10. data/_sass/basically-basic.scss +7 -9
  11. data/_sass/basically-basic/_entries.scss +152 -155
  12. data/_sass/basically-basic/_functions.scss +2 -0
  13. data/_sass/basically-basic/_layout.scss +7 -15
  14. data/_sass/basically-basic/_mixins.scss +5 -7
  15. data/_sass/basically-basic/_sidebar.scss +3 -2
  16. data/_sass/basically-basic/_syntax-highlighting.scss +314 -127
  17. data/_sass/basically-basic/_variables.scss +104 -84
  18. data/_sass/basically-basic/{mixins → functions}/_color.scss +0 -0
  19. data/_sass/basically-basic/{mixins → functions}/_fluid-type.scss +0 -0
  20. data/_sass/basically-basic/themes/_soft.scss +30 -12
  21. data/_sass/basically-basic/themes/_steel.scss +30 -12
  22. data/_sass/basically-basic/vendor/{_breakpoint.scss → breakpoint/_breakpoint.scss} +7 -7
  23. data/_sass/basically-basic/vendor/susy/_su.scss +1 -4
  24. data/_sass/basically-basic/vendor/susy/_susy-prefix.scss +13 -0
  25. data/_sass/basically-basic/vendor/susy/_susy.scss +5 -0
  26. data/_sass/basically-basic/vendor/susy/plugins/_svg-grid.scss +5 -0
  27. data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_prefix.scss +7 -0
  28. data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -0
  29. data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -0
  30. data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -0
  31. data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -0
  32. data/_sass/basically-basic/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -0
  33. data/_sass/basically-basic/vendor/susy/susy/_api.scss +318 -0
  34. data/_sass/basically-basic/vendor/susy/susy/_normalize.scss +261 -0
  35. data/_sass/basically-basic/vendor/susy/susy/_parse.scss +163 -0
  36. data/_sass/basically-basic/vendor/susy/susy/_settings.scss +329 -0
  37. data/_sass/basically-basic/vendor/susy/susy/_su-math.scss +441 -0
  38. data/_sass/basically-basic/vendor/susy/susy/_su-validate.scss +213 -0
  39. data/_sass/basically-basic/vendor/susy/susy/_syntax-helpers.scss +191 -0
  40. data/_sass/basically-basic/vendor/susy/susy/_unprefix.scss +56 -0
  41. data/_sass/basically-basic/vendor/susy/susy/_utilities.scss +167 -0
  42. data/assets/javascripts/main.js +2 -2
  43. metadata +25 -59
  44. data/_sass/basically-basic/vendor/_su.scss +0 -4
  45. data/_sass/basically-basic/vendor/_susy.scss +0 -4
  46. data/_sass/basically-basic/vendor/_susyone.scss +0 -4
  47. data/_sass/basically-basic/vendor/susy/language/_susy.scss +0 -24
  48. data/_sass/basically-basic/vendor/susy/language/_susyone.scss +0 -13
  49. data/_sass/basically-basic/vendor/susy/language/susy/_background.scss +0 -385
  50. data/_sass/basically-basic/vendor/susy/language/susy/_bleed.scss +0 -200
  51. data/_sass/basically-basic/vendor/susy/language/susy/_box-sizing.scss +0 -47
  52. data/_sass/basically-basic/vendor/susy/language/susy/_breakpoint-plugin.scss +0 -185
  53. data/_sass/basically-basic/vendor/susy/language/susy/_container.scss +0 -81
  54. data/_sass/basically-basic/vendor/susy/language/susy/_context.scss +0 -36
  55. data/_sass/basically-basic/vendor/susy/language/susy/_gallery.scss +0 -94
  56. data/_sass/basically-basic/vendor/susy/language/susy/_grids.scss +0 -64
  57. data/_sass/basically-basic/vendor/susy/language/susy/_gutters.scss +0 -154
  58. data/_sass/basically-basic/vendor/susy/language/susy/_isolate.scss +0 -77
  59. data/_sass/basically-basic/vendor/susy/language/susy/_margins.scss +0 -94
  60. data/_sass/basically-basic/vendor/susy/language/susy/_padding.scss +0 -74
  61. data/_sass/basically-basic/vendor/susy/language/susy/_rows.scss +0 -138
  62. data/_sass/basically-basic/vendor/susy/language/susy/_settings.scss +0 -216
  63. data/_sass/basically-basic/vendor/susy/language/susy/_span.scss +0 -163
  64. data/_sass/basically-basic/vendor/susy/language/susy/_validation.scss +0 -16
  65. data/_sass/basically-basic/vendor/susy/language/susyone/_background.scss +0 -18
  66. data/_sass/basically-basic/vendor/susy/language/susyone/_functions.scss +0 -377
  67. data/_sass/basically-basic/vendor/susy/language/susyone/_grid.scss +0 -312
  68. data/_sass/basically-basic/vendor/susy/language/susyone/_isolation.scss +0 -51
  69. data/_sass/basically-basic/vendor/susy/language/susyone/_margin.scss +0 -93
  70. data/_sass/basically-basic/vendor/susy/language/susyone/_media.scss +0 -105
  71. data/_sass/basically-basic/vendor/susy/language/susyone/_padding.scss +0 -92
  72. data/_sass/basically-basic/vendor/susy/language/susyone/_settings.scss +0 -60
  73. data/_sass/basically-basic/vendor/susy/output/_float.scss +0 -9
  74. data/_sass/basically-basic/vendor/susy/output/_shared.scss +0 -15
  75. data/_sass/basically-basic/vendor/susy/output/_support.scss +0 -9
  76. data/_sass/basically-basic/vendor/susy/output/float/_container.scss +0 -16
  77. data/_sass/basically-basic/vendor/susy/output/float/_end.scss +0 -40
  78. data/_sass/basically-basic/vendor/susy/output/float/_isolate.scss +0 -22
  79. data/_sass/basically-basic/vendor/susy/output/float/_span.scss +0 -35
  80. data/_sass/basically-basic/vendor/susy/output/shared/_background.scss +0 -26
  81. data/_sass/basically-basic/vendor/susy/output/shared/_container.scss +0 -21
  82. data/_sass/basically-basic/vendor/susy/output/shared/_direction.scss +0 -42
  83. data/_sass/basically-basic/vendor/susy/output/shared/_inspect.scss +0 -25
  84. data/_sass/basically-basic/vendor/susy/output/shared/_margins.scss +0 -23
  85. data/_sass/basically-basic/vendor/susy/output/shared/_output.scss +0 -14
  86. data/_sass/basically-basic/vendor/susy/output/shared/_padding.scss +0 -23
  87. data/_sass/basically-basic/vendor/susy/output/support/_background.scss +0 -58
  88. data/_sass/basically-basic/vendor/susy/output/support/_box-sizing.scss +0 -19
  89. data/_sass/basically-basic/vendor/susy/output/support/_clearfix.scss +0 -18
  90. data/_sass/basically-basic/vendor/susy/output/support/_prefix.scss +0 -19
  91. data/_sass/basically-basic/vendor/susy/output/support/_rem.scss +0 -22
  92. data/_sass/basically-basic/vendor/susy/output/support/_support.scss +0 -85
  93. data/_sass/basically-basic/vendor/susy/su/_grid.scss +0 -103
  94. data/_sass/basically-basic/vendor/susy/su/_settings.scss +0 -73
  95. data/_sass/basically-basic/vendor/susy/su/_utilities.scss +0 -111
  96. data/_sass/basically-basic/vendor/susy/su/_validation.scss +0 -57
@@ -1,84 +1,104 @@
1
- /* ==========================================================================
2
- Variables
3
- ========================================================================== */
4
-
5
- /* Breakpoint widths */
6
- $small: 320px !default;
7
- $medium: 768px !default;
8
- $large: 1024px !default;
9
- $xlarge: 1280px !default;
10
-
11
- /* Fluid type */
12
- $base-font-size: 16px !default;
13
- $min-vw: $small !default;
14
- $max-vw: $xlarge !default;
15
- $min-font-size: 14px !default;
16
- $max-font-size: 18px !default;
17
-
18
- /* Calculate Modular Scale */
19
- $modular-scale-1: 1.067 !default; /* small */
20
- $modular-scale-2: 1.296 !default; /* large */
21
- /* Heading 1 */
22
- $h1-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $base-font-size !default;
23
- $h1-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $base-font-size !default;
24
- /* Heading 2 */
25
- $h2-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $base-font-size !default;
26
- $h2-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $base-font-size !default;
27
- /* Heading 3 */
28
- $h3-min: $modular-scale-1 * $modular-scale-1 * $base-font-size !default;
29
- $h3-max: $modular-scale-2 * $modular-scale-2 * $base-font-size !default;
30
- /* Heading 4 */
31
- $h4-min: $modular-scale-1 * $base-font-size !default;
32
- $h4-max: $modular-scale-2 * $base-font-size !default;
33
- /* Heading 5 */
34
- $h5-min: $base-font-size !default;
35
- $h5-max: $base-font-size !default;
36
- /* Heading 6 */
37
- $h6-min: ($base-font-size / $modular-scale-1) !default;
38
- $h6-max: ($base-font-size / $modular-scale-2) !default;
39
-
40
- /* Base font family */
41
- $base-font-family: "Fira Sans", sans-serif !default;
42
- /* Other font families */
43
- $headline-font-family: $base-font-family !default;
44
- $monospace-font-family: Menlo, Consolas, Monaco, "Courier New", Courier, monospace !default;
45
-
46
- /* Colors */
47
- $base-color: #393e46 !default;
48
- $text-color: #222831 !default;
49
- $accent-color: #00848a !default;
50
- $background-color: #fff !default;
51
- $code-background-color: tint($base-color, 95%) !default;
52
- $border-color: tint($base-color, 80%) !default;
53
- $overlay-color: $base-color !default;
54
-
55
- /* Max-width of the main content */
56
- $main-max-width: $xlarge !default;
57
-
58
- /* Width of the sidebar */
59
- $sidebar-width: $small !default;
60
-
61
- /* Background color of the sidebar */
62
- $sidebar-background-color: #fff !default;
63
-
64
- /* Border radius */
65
- $border-radius: 0.25em !default;
66
-
67
- /* Global transition */
68
- $global-transition: all 0.4s ease !default;
69
-
70
- /* Navicon */
71
- $navicon-width: 1.75em !default;
72
- $navicon-height: 0.25em !default;
73
- $navicon-duration: 0.5s !default;
74
- $navicon-toggled-size: 1 !default;
75
- $navicon-nav-bg-close: transparent !default;
76
- $navicon-nav-bg-open: transparent !default;
77
- $navicon-content-bg: $text-color !default;
78
-
79
- /* Site image */
80
- $site-image-width: 50px !default;
81
- $site-image-height: 50px !default;
82
-
83
- /* Susy grid settings */
84
- $susy: (columns: 16, gutters: 0, math: fluid, output: float) !default;
1
+ /* ==========================================================================
2
+ Variables
3
+ ========================================================================== */
4
+
5
+ /* Breakpoint widths */
6
+ $small: 320px !default;
7
+ $medium: 768px !default;
8
+ $large: 1024px !default;
9
+ $xlarge: 1280px !default;
10
+
11
+ /* Fluid type */
12
+ $base-font-size: 16px !default;
13
+ $min-vw: $small !default;
14
+ $max-vw: $xlarge !default;
15
+ $min-font-size: 14px !default;
16
+ $max-font-size: 18px !default;
17
+
18
+ /* Calculate Modular Scale */
19
+ $modular-scale-1: 1.067 !default; /* small */
20
+ $modular-scale-2: 1.296 !default; /* large */
21
+ /* Heading 1 */
22
+ $h1-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 *
23
+ $modular-scale-1 * $base-font-size !default;
24
+ $h1-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 *
25
+ $modular-scale-2 * $base-font-size !default;
26
+ /* Heading 2 */
27
+ $h2-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 *
28
+ $base-font-size !default;
29
+ $h2-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 *
30
+ $base-font-size !default;
31
+ /* Heading 3 */
32
+ $h3-min: $modular-scale-1 * $modular-scale-1 * $base-font-size !default;
33
+ $h3-max: $modular-scale-2 * $modular-scale-2 * $base-font-size !default;
34
+ /* Heading 4 */
35
+ $h4-min: $modular-scale-1 * $base-font-size !default;
36
+ $h4-max: $modular-scale-2 * $base-font-size !default;
37
+ /* Heading 5 */
38
+ $h5-min: $base-font-size !default;
39
+ $h5-max: $base-font-size !default;
40
+ /* Heading 6 */
41
+ $h6-min: ($base-font-size / $modular-scale-1) !default;
42
+ $h6-max: ($base-font-size / $modular-scale-2) !default;
43
+
44
+ /* Base font family */
45
+ $base-font-family: "Fira Sans", sans-serif !default;
46
+ /* Other font families */
47
+ $headline-font-family: $base-font-family !default;
48
+ $monospace-font-family: Menlo, Consolas, Monaco, "Courier New", Courier,
49
+ monospace !default;
50
+
51
+ /* Colors */
52
+ $base-color: #393e46 !default;
53
+ $text-color: #222831 !default;
54
+ $accent-color: #00848a !default;
55
+ $background-color: #fff !default;
56
+ $code-background-color: tint($base-color, 95%) !default;
57
+ $border-color: tint($base-color, 80%) !default;
58
+ $overlay-color: $base-color !default;
59
+
60
+ /* Syntax highlighting (base16) colors */
61
+ $base00: #1c2023 !default;
62
+ $base01: #393f45 !default;
63
+ $base02: #565e65 !default;
64
+ $base03: #747c84 !default;
65
+ $base04: #adb3ba !default;
66
+ $base05: #c7ccd1 !default;
67
+ $base06: #dfe2e5 !default;
68
+ $base07: #f3f4f5 !default;
69
+ $base08: #c7ae95 !default;
70
+ $base09: #c7c795 !default;
71
+ $base0a: #aec795 !default;
72
+ $base0b: #95c7ae !default;
73
+ $base0c: #95aec7 !default;
74
+ $base0d: #ae95c7 !default;
75
+ $base0e: #c795ae !default;
76
+ $base0f: #c79595 !default;
77
+
78
+ /* Max-width of the main content */
79
+ $main-max-width: $xlarge !default;
80
+
81
+ /* Width of the sidebar */
82
+ $sidebar-width: $small !default;
83
+
84
+ /* Background color of the sidebar */
85
+ $sidebar-background-color: #fff !default;
86
+
87
+ /* Border radius */
88
+ $border-radius: 0.25em !default;
89
+
90
+ /* Global transition */
91
+ $global-transition: all 0.4s ease !default;
92
+
93
+ /* Navicon */
94
+ $navicon-width: 1.75em !default;
95
+ $navicon-height: 0.25em !default;
96
+ $navicon-duration: 0.5s !default;
97
+ $navicon-toggled-size: 1 !default;
98
+ $navicon-nav-bg-close: transparent !default;
99
+ $navicon-nav-bg-open: transparent !default;
100
+ $navicon-content-bg: $text-color !default;
101
+
102
+ /* Site image */
103
+ $site-image-width: 50px !default;
104
+ $site-image-height: 50px !default;
@@ -1,12 +1,30 @@
1
- /* ==========================================================================
2
- Soft theme skin
3
- ========================================================================== */
4
-
5
- /* Colors */
6
- $base-color: mix(#625772, #a9eee6, 75%) !default;
7
- $text-color: #625772 !default;
8
- $accent-color: #e85482 !default;
9
- $background-color: #fefaec !default;
10
- $code-background-color: #fff !default;
11
- $border-color: rgba($text-color, 0.5) !default;
12
- $overlay-color: #fff !default;
1
+ /* ==========================================================================
2
+ Soft theme skin
3
+ ========================================================================== */
4
+
5
+ /* Colors */
6
+ $base-color: mix(#625772, #a9eee6, 75%) !default;
7
+ $text-color: #625772 !default;
8
+ $accent-color: #e85482 !default;
9
+ $background-color: #fefaec !default;
10
+ $code-background-color: #fff !default;
11
+ $border-color: rgba($text-color, 0.5) !default;
12
+ $overlay-color: #fff !default;
13
+
14
+ /* Syntax highlighting (base16) colors */
15
+ $base00: #efecf4 !default;
16
+ $base01: #e2dfe7 !default;
17
+ $base02: #8b8792 !default;
18
+ $base03: #7e7887 !default;
19
+ $base04: #655f6d !default;
20
+ $base05: #585260 !default;
21
+ $base06: #26232a !default;
22
+ $base07: #19171c !default;
23
+ $base08: #be4678 !default;
24
+ $base09: #aa573c !default;
25
+ $base0a: #a06e3b !default;
26
+ $base0b: #2a9292 !default;
27
+ $base0c: #398bc6 !default;
28
+ $base0d: #576ddb !default;
29
+ $base0e: #955ae7 !default;
30
+ $base0f: #bf40bf !default;
@@ -1,12 +1,30 @@
1
- /* ==========================================================================
2
- Steel theme skin
3
- ========================================================================== */
4
-
5
- /* Colors */
6
- $base-color: #3a4750 !default;
7
- $text-color: #303841 !default;
8
- $accent-color: #d72323 !default;
9
- $background-color: #eee !default;
10
- $code-background-color: #fff !default;
11
- $border-color: rgba($text-color, 0.25) !default;
12
- $overlay-color: #fff !default;
1
+ /* ==========================================================================
2
+ Steel theme skin
3
+ ========================================================================== */
4
+
5
+ /* Colors */
6
+ $base-color: #3a4750 !default;
7
+ $text-color: #303841 !default;
8
+ $accent-color: #d72323 !default;
9
+ $background-color: #eee !default;
10
+ $code-background-color: #fff !default;
11
+ $border-color: rgba($text-color, 0.25) !default;
12
+ $overlay-color: #fff !default;
13
+
14
+ /* Syntax highlighting (base16) colors */
15
+ $base00: #1d1f21 !default;
16
+ $base01: #282a2e !default;
17
+ $base02: #373b41 !default;
18
+ $base03: #969896 !default;
19
+ $base04: #b4b7b4 !default;
20
+ $base05: #c5c8c6 !default;
21
+ $base06: #e0e0e0 !default;
22
+ $base07: #ffffff !default;
23
+ $base08: #cc6666 !default;
24
+ $base09: #de935f !default;
25
+ $base0a: #f0c674 !default;
26
+ $base0b: #b5bd68 !default;
27
+ $base0c: #8abeb7 !default;
28
+ $base0d: #81a2be !default;
29
+ $base0e: #b294bb !default;
30
+ $base0f: #a3685a !default;
@@ -23,15 +23,15 @@ $breakpoint: () !default;
23
23
  //////////////////////////////
24
24
  // Imports
25
25
  //////////////////////////////
26
- @import "breakpoint/settings";
27
- @import 'breakpoint/context';
28
- @import 'breakpoint/helpers';
29
- @import 'breakpoint/parsers';
30
- @import 'breakpoint/no-query';
26
+ @import "settings";
27
+ @import "context";
28
+ @import "helpers";
29
+ @import "parsers";
30
+ @import "no-query";
31
31
 
32
- @import 'breakpoint/respond-to';
32
+ @import "respond-to";
33
33
 
34
- @import "breakpoint/legacy-settings";
34
+ @import "legacy-settings";
35
35
 
36
36
  //////////////////////////////
37
37
  // Breakpoint Mixin
@@ -1,7 +1,4 @@
1
1
  // Su
2
2
  // ==
3
3
 
4
- @import "su/utilities";
5
- @import "su/settings";
6
- @import "su/validation";
7
- @import "su/grid";
4
+ @import 'susy/su';
@@ -0,0 +1,13 @@
1
+ // Susy (Prefixed)
2
+ // ===============
3
+
4
+ $susy-version: 3;
5
+
6
+ @import 'susy/utilities';
7
+ @import 'susy/su-validate';
8
+ @import 'susy/su-math';
9
+ @import 'susy/settings';
10
+ @import 'susy/normalize';
11
+ @import 'susy/parse';
12
+ @import 'susy/syntax-helpers';
13
+ @import 'susy/api';
@@ -0,0 +1,5 @@
1
+ // Susy (Un-Prefixed)
2
+ // ==================
3
+
4
+ @import 'susy-prefix';
5
+ @import 'susy/unprefix';
@@ -0,0 +1,5 @@
1
+ // SVG Grid Background
2
+ // ===================
3
+
4
+ @import 'svg-grid/prefix';
5
+ @import 'svg-grid/svg-unprefix';
@@ -0,0 +1,7 @@
1
+ // Prefixed SVG Plugin
2
+ // ===================
3
+
4
+ @import 'svg-settings';
5
+ @import 'svg-utilities';
6
+ @import 'svg-grid-math';
7
+ @import 'svg-api';
@@ -0,0 +1,114 @@
1
+ /// Plugin: SVG Grid Image
2
+ /// ======================
3
+ /// @group plugin_svg-grid
4
+ /// @see susy-svg-grid
5
+
6
+
7
+
8
+ /// ## Overview
9
+ /// If you want to generate svg-backgrounds
10
+ /// for help visualizing and debugging your grids,
11
+ /// import the SVG Grid Plugin.
12
+ ///
13
+ /// The plugin adds `svg-grid-colors` setting
14
+ /// to your global defaults,
15
+ /// which you can override in `$susy`.
16
+ /// It also provides you with a new function,
17
+ /// `susy-svg-grid()`,
18
+ /// which will return inline svg for use in
19
+ /// backgrounds or generated content.
20
+ ///
21
+ /// This function come with an unprefixed alias by default,
22
+ /// using the `svg-grid` import.
23
+ /// If you only only want prefixed versions of the API,
24
+ /// import the `svg-grid/prefix` partial instead.
25
+ ///
26
+ /// @group plugin_svg-grid
27
+ ///
28
+ /// @example scss - importing the plugin
29
+ /// // The full path to import Susy will depend on your setup…
30
+ ///
31
+ /// // unprefixed
32
+ /// @import 'plugins/svg-grid';
33
+ ///
34
+ /// // prefixed
35
+ /// @import 'plugins/svg-grid/prefix';
36
+ ///
37
+ /// @example scss - generating background grids
38
+ /// .grid {
39
+ /// background: susy-svg-grid() no-repeat scroll;
40
+ /// }
41
+
42
+
43
+
44
+ // SVG Grid
45
+ // --------
46
+ /// Return inline svg-data in to display the grid.
47
+ ///
48
+ /// @group plugin_svg-grid
49
+ ///
50
+ /// @param {Map | List} $grid [$susy] -
51
+ /// Map or shorthand defining the current grid
52
+ /// @param {Color | List | null} $colors [null] -
53
+ /// Column color, or list of colors for column-gradient,
54
+ /// used to override the global `svg-grid-colors` setting
55
+ /// @param {Length | null} $offset [null] -
56
+ /// Manually override the default grid-image offset,
57
+ /// to account for grid edges
58
+ ///
59
+ /// @return {String} -
60
+ /// CSS inline-data SVG string, in `url(<svg>)` format,
61
+ /// for use in image or content properties
62
+ /// @example scss
63
+ /// .grid {
64
+ /// background: susy-svg-grid() no-repeat scroll;
65
+ /// }
66
+ @function susy-svg-grid(
67
+ $grid: $susy,
68
+ $colors: null,
69
+ $offset: null
70
+ ) {
71
+ // Grid parsing & normalizing
72
+ $grid: susy-compile($grid, $context-only: true);
73
+
74
+ // Color and gradient handling
75
+ $gradient: '';
76
+
77
+ @if (not $colors) {
78
+ $colors: susy-get('svg-grid-colors');
79
+ }
80
+
81
+ @if length($colors) > 1 {
82
+ $gradient: _susy-svg-gradient($colors);
83
+ $colors: 'url(%23susy-svg-gradient)';
84
+ } @else {
85
+ $colors: _susy-svg-color($colors);
86
+ }
87
+
88
+ // Get a default image-width
89
+ $span: (
90
+ 'span': map-get($grid, 'columns'),
91
+ 'spread': map-get($grid, 'container-spread'),
92
+ );
93
+ $span: map-merge($grid, $span);
94
+ $image-width: su-call('su-span', $span);
95
+ $image-width: if((type-of($image-width) == 'number'), $image-width, 100%);
96
+
97
+ // SVG construction
98
+ $columns: map-get($grid, 'columns');
99
+ $offset: $offset or _susy-svg-offset($grid);
100
+
101
+ $attrs: 'fill="#{$colors}" width="#{$image-width}"';
102
+ $svg: 'data:image/svg+xml,';
103
+ $svg: $svg + '%3Csvg xmlns="http://www.w3.org/2000/svg" #{$attrs} %3E';
104
+ $svg: $svg + $gradient;
105
+
106
+ @for $column from 1 through length($columns) {
107
+ $width: susy-span(1 narrow at $column, $grid);
108
+ $x: _susy-svg-column-position($column, $grid);
109
+
110
+ $svg: $svg + _susy-svg-rect($x, $width, $offset);
111
+ }
112
+
113
+ @return url('#{$svg}%3C/svg%3E');
114
+ }