unit.gl 0.0.34 → 0.0.38

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 (72) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +20 -70
  3. package/css/unit.gl.css +182 -341
  4. package/css/unit.gl.min.css +1 -1
  5. package/package.json +11 -5
  6. package/scss/_global.scss +5 -25
  7. package/scss/_reset.scss +13 -16
  8. package/scss/classes/_guide.scss +126 -0
  9. package/scss/classes/_index.scss +25 -11
  10. package/scss/classes/_ratio.scss +30 -0
  11. package/scss/dev/_banner.scss +40 -0
  12. package/scss/dev/_index.scss +0 -0
  13. package/scss/functions/_color.scss +40 -0
  14. package/scss/functions/_index.scss +39 -14
  15. package/scss/functions/_layer.scss +48 -0
  16. package/scss/functions/_ratio.scss +58 -157
  17. package/scss/functions/_scale.scss +55 -49
  18. package/scss/functions/_sequence.scss +154 -126
  19. package/scss/functions/_view.scss +40 -0
  20. package/scss/functions/math/_arithmetic.scss +102 -0
  21. package/scss/functions/math/_index.scss +30 -0
  22. package/scss/functions/unit/_index.scss +30 -0
  23. package/scss/functions/unit/_unit_conversion.scss +94 -0
  24. package/scss/{variables → functions/unit}/_unit_functions.scss +70 -36
  25. package/scss/index.scss +5 -31
  26. package/scss/maps/_color.scss +43 -0
  27. package/scss/maps/_index.scss +1 -0
  28. package/scss/mixins/_device.scss +63 -25
  29. package/scss/mixins/_display.scss +106 -44
  30. package/scss/mixins/_guide.scss +191 -158
  31. package/scss/mixins/_helper.scss +287 -52
  32. package/scss/mixins/_index.scss +50 -17
  33. package/scss/mixins/_paper.scss +38 -17
  34. package/scss/mixins/_ratio.scss +30 -13
  35. package/scss/mixins/_unit.scss +94 -0
  36. package/scss/mixins/_view.scss +123 -44
  37. package/scss/tags/_index.scss +30 -0
  38. package/scss/tags/_unit.scss +40 -0
  39. package/scss/utilities/_guides.scss +103 -0
  40. package/scss/utilities/_index.scss +6 -0
  41. package/scss/variables/_color.scss +83 -0
  42. package/scss/variables/_device.scss +144 -57
  43. package/scss/variables/_index.scss +85 -18
  44. package/scss/variables/_layer.scss +148 -51
  45. package/scss/variables/_paper.scss +243 -17
  46. package/scss/variables/_ratio.scss +224 -0
  47. package/scss/variables/_scale.scss +231 -105
  48. package/scss/variables/_unit.scss +77 -59
  49. package/scss/variables/_view.scss +137 -33
  50. package/ts/AspectRatio.ts +29 -0
  51. package/ts/Border.ts +29 -0
  52. package/ts/BoxModel.ts +40 -0
  53. package/ts/FlexContainer.ts +48 -0
  54. package/ts/Grid.ts +21 -0
  55. package/ts/GridContainer.ts +33 -0
  56. package/ts/Layout.ts +34 -0
  57. package/ts/Position.ts +28 -0
  58. package/ts/Rectangle.ts +28 -0
  59. package/ts/ResponsiveImage.ts +28 -0
  60. package/ts/ResponsiveScale.ts +21 -0
  61. package/ts/Size.ts +32 -0
  62. package/ts/Spacing.ts +68 -0
  63. package/ts/Transform.ts +38 -0
  64. package/ts/Typography.ts +41 -0
  65. package/ts/Unit.ts +57 -0
  66. package/ts/Viewport.ts +24 -0
  67. package/js/index.d.ts +0 -1
  68. package/js/index.js +0 -3
  69. package/js/unit.gl.min.js +0 -1
  70. package/scss/classes/_paper.scss +0 -97
  71. package/scss/functions/_arithmetic.scss +0 -64
  72. package/scss/variables/_unit_conversion.scss +0 -77
@@ -1,34 +1,53 @@
1
- // Copyright 2024 Scape Agency BV
2
-
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
1
+ // ============================================================================
2
+ // Poster
3
+ // ============================================================================
6
4
 
7
- // http://www.apache.org/licenses/LICENSE-2.0
5
+ ////
6
+ ///
7
+ /// Display Mixins Module
8
+ /// ===========================================================================
9
+ ///
10
+ /// These mixins provide a convenient way to apply styles based on device
11
+ /// orientation and display characteristics such as aspect ratio and pixel
12
+ /// density. They are essential for creating responsive designs that adapt
13
+ /// seamlessly to different device configurations, especially on mobile
14
+ /// devices.
15
+ ///
16
+ /// @group Display
17
+ /// @author Scape Agency
18
+ /// @link https://unit.gl
19
+ /// @since 0.1.0 initial release
20
+ /// @todo None
21
+ /// @access public
22
+ ///
23
+ ////
8
24
 
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
25
 
26
+ // ============================================================================
27
+ // Use
28
+ // ============================================================================
15
29
 
16
30
  @use "../variables" as *;
17
31
 
18
32
 
19
-
20
-
21
- // Mixins for Media Queries Based on Device Orientation
22
33
  // ============================================================================
23
- // These mixins provide a convenient way to apply styles based on the orientation of the device.
24
- // Useful for responsive designs that need to adapt to landscape or portrait modes, especially on tablets and smartphones.
34
+ // Mixins
35
+ // ============================================================================
25
36
 
26
- /// Mixin for landscape orientation with optional breakpoint
27
- /// Use this mixin to apply styles when the device is in landscape mode.
28
- /// @param $min-width (optional) - The minimum width at which the styles should apply
29
- /// Example usage:
30
- /// @include orientation-landscape(1024px) { /* styles */ }
31
- @mixin orientation-landscape($min-width: null) {
37
+
38
+ ///
39
+ /// Applies styles when the device is in landscape mode. An optional
40
+ /// minimum width can be specified to target specific breakpoints.
41
+ ///
42
+ /// @name display-orientation-landscape
43
+ /// @param {Length} $min-width (optional) - The minimum width at which the styles should apply.
44
+ ///
45
+ /// @example scss - Usage
46
+ /// @include display-orientation-landscape(1024px) {
47
+ /// // Styles for landscape orientation and min-width 1024px
48
+ /// }
49
+ ///
50
+ @mixin display_orientation_landscape($min-width: null) {
32
51
  @if $min-width {
33
52
  @media (orientation: landscape) and (min-width: $min-width) {
34
53
  @content;
@@ -40,12 +59,23 @@
40
59
  }
41
60
  }
42
61
 
62
+
63
+ ///
43
64
  /// Mixin for portrait orientation with optional breakpoint
44
- /// Use this mixin to apply styles when the device is in portrait mode.
45
- /// @param $min-width (optional) - The minimum width at which the styles should apply
46
- /// Example usage:
47
- /// @include orientation-portrait { /* styles */ }
48
- @mixin orientation-portrait($min-width: null) {
65
+ /// ---------------------------------------------------------------------------
66
+ ///
67
+ /// Applies styles when the device is in portrait mode. An optional
68
+ /// minimum width can be specified to target specific breakpoints.
69
+ ///
70
+ /// @name display-orientation-portrait
71
+ /// @param {Length} $min-width (optional) - The minimum width at which the styles should apply.
72
+ ///
73
+ /// @example scss - Usage
74
+ /// @include display-orientation-portrait(768px) {
75
+ /// // Styles for portrait orientation and min-width 768px
76
+ /// }
77
+ ///
78
+ @mixin display_orientation_portrait($min-width: null) {
49
79
  @if $min-width {
50
80
  @media (orientation: portrait) and (min-width: $min-width) {
51
81
  @content;
@@ -58,26 +88,58 @@
58
88
  }
59
89
 
60
90
 
61
-
91
+ ///
62
92
  /// Mixin for targeting specific aspect ratios
63
- /// @param $width - Width of the aspect ratio
64
- /// @param $height - Height of the aspect ratio
65
- // @mixin aspect-ratio($width, $height) {
66
- // @media (aspect-ratio: #{$width}/#{$height}) {
67
- // @content;
68
- // }
69
- // }
70
-
71
-
93
+ /// ---------------------------------------------------------------------------
94
+ ///
95
+ /// Applies styles based on a specific aspect ratio. This mixin is
96
+ /// useful for targeting devices or elements that have a particular
97
+ /// aspect ratio, ensuring that your design adapts perfectly to
98
+ /// screens of varying shapes and sizes.
99
+ ///
100
+ /// @name aspect_ratio
101
+ /// @param {Number} $width - The width component of the aspect ratio.
102
+ /// @param {Number} $height - The height component of the aspect ratio.
103
+ ///
104
+ /// @example scss - Basic Usage
105
+ /// @include aspect_ratio(16, 9) {
106
+ /// // Styles for devices with a 16:9 aspect ratio
107
+ /// .video {
108
+ /// max-width: 100%;
109
+ /// }
110
+ /// }
111
+ ///
112
+ /// @example scss - Complex Usage
113
+ /// // Apply styles for both 16:9 and 4:3 aspect ratios
114
+ /// @include aspect_ratio(16, 9), aspect_ratio(4, 3) {
115
+ /// // Styles for devices with either a 16:9 or 4:3 aspect ratio
116
+ /// .content {
117
+ /// padding: 20px;
118
+ /// }
119
+ /// }
120
+ ///
121
+ @mixin aspect_ratio($width, $height) {
122
+ @media (aspect-ratio: #{$width} / #{$height}) {
123
+ @content;
124
+ }
125
+ }
72
126
 
73
127
 
74
- // Mixin for High-Density (Retina) Displays
75
- // ============================================================================
76
- /// This mixin targets high-density displays like Retina screens.
77
- /// It covers various methods to detect high pixel density to ensure broad compatibility.
78
- /// Usage:
79
- /// @include retina { /* styles for retina displays */ }
80
- @mixin retina {
128
+ ///
129
+ /// Mixin for High-Density (Retina) Displays
130
+ /// ---------------------------------------------------------------------------
131
+ ///
132
+ /// Targets high-density displays, such as Retina screens, using various
133
+ /// methods to ensure broad compatibility across devices.
134
+ ///
135
+ /// @name display_retina
136
+ ///
137
+ /// @example scss - Usage
138
+ /// @include display-retina {
139
+ /// // Styles for high-density displays
140
+ /// }
141
+ ///
142
+ @mixin display_retina {
81
143
  // Webkit-based browsers
82
144
  @media only screen and (-webkit-min-device-pixel-ratio: 2),
83
145
  // Standard way to target high-resolution displays
@@ -1,44 +1,56 @@
1
- // Copyright 2024 Scape Agency BV
2
-
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
1
+ // ============================================================================
2
+ // Poster
3
+ // ============================================================================
6
4
 
7
- // http://www.apache.org/licenses/LICENSE-2.0
5
+ ////
6
+ ///
7
+ /// Guide Mixins Module
8
+ /// ===========================================================================
9
+ ///
10
+ /// This module provides mixins for creating visual guides, such as grid
11
+ /// overlays and baseline grids, to assist in design alignment and consistency.
12
+ //
13
+ /// @group Guide
14
+ /// @author Scape Agency
15
+ /// @link https://unit.gl
16
+ /// @since 0.1.0 initial release
17
+ /// @todo None
18
+ /// @requires "../variables" - for accessing project-specific variables.
19
+ /// @access public
20
+ ///
21
+ ////
8
22
 
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
23
 
24
+ // ============================================================================
25
+ // Use
26
+ // ============================================================================
15
27
 
16
28
  @use "../variables" as *;
17
29
 
30
+
18
31
  // ============================================================================
19
- // Utilities | Guides
32
+ // Mixins
20
33
  // ============================================================================
21
34
 
22
- $guide_color: rgba(50, 50, 50, 0.25);
23
- $guide_color_2: rgba(178, 51, 170, 0.5);
24
35
 
36
+ ///
37
+ /// Guide Mixin
38
+ /// ---------------------------------------------------------------------------
39
+ ///
40
+ /// Creates a full-page guide overlay with a high z-index to ensure
41
+ /// visibility over other elements.
42
+ ///
43
+ /// @name guide
44
+ ///
45
+ /// @example scss - Usage
46
+ /// .guide {
47
+ /// @include guide;
48
+ /// }
49
+ ///
25
50
  @mixin guide {
26
51
  z-index: z("guides");
27
- position: absolute;
28
- height: 100%;
29
- width: 100%;
30
- margin: 0;
31
- top:0;
32
- left:0;
33
- opacity: 100%;
34
- // background-size: $baseline_04 $baseline_04;
35
- pointer-events: none;
36
- }
37
-
38
-
39
- // Mixins for Guide Visualization
40
- // @mixin guide($z-index: z('guides')) {
41
- @mixin guide($z-index: 9999) {
52
+ // @mixin guide($z-index: 9999) {
53
+ // z-index: $z-index;
42
54
  position: absolute;
43
55
  top: 0;
44
56
  left: 0;
@@ -46,151 +58,172 @@ $guide_color_2: rgba(178, 51, 170, 0.5);
46
58
  height: 100%;
47
59
  margin: 0;
48
60
  pointer-events: none;
49
- z-index: $z-index;
50
- }
61
+ opacity: 100%;
62
+ // background-size: $baseline_04 $baseline_04;
63
+ }
51
64
 
52
- .guide { @include guide; }
53
65
 
54
66
 
55
- @mixin guide_graph($size, $color: $guide_color) {
67
+ ///
68
+ /// Guide Graph Mixin
69
+ /// ---------------------------------------------------------------------------
70
+ ///
71
+ /// Generates a grid overlay with customizable grid size and color,
72
+ /// useful for ensuring consistent spacing and alignment in your designs.
73
+ ///
74
+ /// @name guide_graph
75
+ /// @param {Length} $size - The size of the grid cells.
76
+ /// @param {Color} $color - The color of the grid lines. Defaults to `$guide_color`.
77
+ ///
78
+ /// @example scss - Usage
79
+ /// .guide_graph {
80
+ /// @include guide_graph(10px, #ccc);
81
+ /// }
82
+ ///
83
+ @mixin guide_graph(
84
+ $size,
85
+ $color: $guide_color,
86
+ ) {
56
87
  @include guide;
57
88
  background-size: $size $size;
58
89
  background-image: repeating-linear-gradient(
59
- to bottom,
60
- $color 0 1px,
61
- transparent 1px 100%
62
- ),
63
- repeating-linear-gradient(
64
- to right,
65
- $color 0 1px,
66
- transparent 1px 100%
67
- );
68
- }
69
-
70
- @mixin guide_baseline($size, $color: cyan) {
90
+ to bottom,
91
+ $color 0 1px,
92
+ transparent 1px 100%
93
+ ),
94
+ repeating-linear-gradient(
95
+ to right,
96
+ $color 0 1px,
97
+ transparent 1px 100%
98
+ );
99
+ }
100
+
101
+
102
+ ///
103
+ /// Guide Baseline Mixin
104
+ /// ---------------------------------------------------------------------------
105
+ ///
106
+ /// Creates a baseline grid overlay, essential for maintaining
107
+ /// a consistent vertical rhythm across your designs.
108
+ ///
109
+ /// @name guide_baseline
110
+ /// @param {Length} $size - The height of the baseline grid.
111
+ /// @param {Color} $color - The color of the baseline lines. Defaults to cyan.
112
+ ///
113
+ /// @example scss - Usage
114
+ /// .guide_baseline {
115
+ /// @include guide_baseline(20px, cyan);
116
+ /// }
117
+ ///
118
+ @mixin guide_baseline(
119
+ $size,
120
+ $color: $guide_color,
121
+ ) {
71
122
  @include guide;
72
123
  background-size: 100% $size;
73
124
  background-image: repeating-linear-gradient(
74
- to bottom,
75
- $color 0 1px,
76
- transparent 1px 100%
77
- );
78
- }
79
- // .guide_graph { @include guide_graph; }
80
-
81
-
82
-
83
- // @mixin guide_baseline {
84
- // @include guide;
85
- // // background: repeating-linear-gradient(#e66465, #e66465 20px, #9198e5 20px, #9198e5 25px);
86
- // // background: repeating-linear-gradient(transparent, transparent 20px, transparent 20px, transparent 25px);
87
- // // background-repeat: repeat-y;
88
- // background-repeat: repeat;
89
-
90
- // background-size: map-get($baseline, 4) map-get($baseline, 4);
91
- // @include guide;
92
- // background-image:
93
- // repeating-linear-gradient(cyan 0 1px, transparent 1px 100%);
94
- // }
125
+ to bottom,
126
+ $color 0 1px,
127
+ transparent 1px 100%
128
+ );
129
+ }
95
130
 
96
131
 
97
-
98
- @mixin baseline-grid($column-width, $baseline-height, $column-color: rgba(200, 0, 0, 0.2), $baseline-color: rgba(56, 255, 255, 0.8)) {
132
+ ///
133
+ /// Baseline Grid Mixin
134
+ /// ---------------------------------------------------------------------------
135
+ ///
136
+ /// Provides a customizable baseline grid overlay with both vertical
137
+ /// and horizontal grid lines, useful for designing layouts with consistent
138
+ /// column widths and baseline spacing.
139
+ ///
140
+ /// @name guide_baseline
141
+ /// @param {Length} $column_width - The width of each column in the grid.
142
+ /// @param {Length} $baseline_height - The height of each baseline.
143
+ /// @param {Color} $column_color - The color of the column lines. Defaults to rgba(200, 0, 0, 0.2).
144
+ /// @param {Color} $baseline_color - The color of the baseline lines. Defaults to rgba(56, 255, 255, 0.8).
145
+ ///
146
+ /// @example scss - Usage
147
+ /// .guide_baseline {
148
+ /// @include guide_baseline(60px, 20px);
149
+ /// }
150
+ ///
151
+ @mixin guide_baseline(
152
+ $column_width,
153
+ $baseline_height,
154
+ $column_color: rgba(200, 0, 0, 0.2),
155
+ $baseline_color: $guide_color,
156
+ ) {
99
157
  background-image: linear-gradient(
100
- to right,
101
- $column-color 0 $column-width,
102
- transparent $column-width transparent
103
- ),
104
- linear-gradient(
105
- to bottom,
106
- transparent calc(100% - 1px),
107
- $baseline-color 100%
108
- );
109
- background-size: $column-width 100%, 100% $baseline-height;
110
- }
111
-
112
-
113
- html {
114
- // @include guide_graph(calc(16*$q));
115
- // @include guide_baseline($line_height_base);
158
+ to right,
159
+ $column_color 0 $column_width,
160
+ transparent $column_width transparent
161
+ ),
162
+ linear-gradient(
163
+ to bottom,
164
+ transparent calc(100% - 1px),
165
+ $baseline_color 100%
166
+ );
167
+ background-size: $column_width 100%, 100% $baseline_height;
116
168
  }
117
169
 
118
- .guide_graph {
119
- @include guide_graph($rhythm_base);
120
170
 
171
+ ///
172
+ /// Centered Guide Mixin
173
+ /// ---------------------------------------------------------------------------
174
+ ///
175
+ /// Creates a centered guide box useful for ensuring elements are
176
+ /// aligned to the center of the viewport.
177
+ ///
178
+ /// @name guide_centered
179
+ /// @param {Length} $width - The width of the centered guide box.
180
+ /// @param {Length} $height - The height of the centered guide box.
181
+ /// @param {Color} $color - The color of the guide box border. Defaults to red.
182
+ ///
183
+ /// @example scss - Usage
184
+ /// .guide_centered {
185
+ /// @include guide_centered(100px, 100px, red);
186
+ /// }
187
+ ///
188
+ @mixin guide_centered(
189
+ $width,
190
+ $height,
191
+ $color: red
192
+ ) {
193
+ @include guide;
194
+ width: $width;
195
+ height: $height;
196
+ top: 50%;
197
+ left: 50%;
198
+ transform: translate(-50%, -50%);
199
+ border: 2px solid $color;
121
200
  }
122
201
 
123
202
 
124
- .guide_baseline {
125
- @include guide_baseline($line_height_base);
126
-
203
+ ///
204
+ /// Margin Guide Mixin
205
+ /// ---------------------------------------------------------------------------
206
+ ///
207
+ /// Visualizes the margins around content, helping to ensure
208
+ /// consistent spacing.
209
+ ///
210
+ /// @name guide_margin
211
+ /// @param {Length} $margin - The size of the margin to visualize.
212
+ /// @param {Color} $color - The color of the margin area. Defaults to rgba(0, 255, 0, 0.1).
213
+ ///
214
+ /// @example scss - Usage
215
+ /// .guide_margin {
216
+ /// @include guide_margin(20px, rgba(0, 255, 0, 0.1));
217
+ /// }
218
+ ///
219
+ @mixin guide_margin(
220
+ $margin,
221
+ $color: rgba(0, 255, 0, 0.1)
222
+ ) {
223
+ @include guide;
224
+ top: $margin;
225
+ left: $margin;
226
+ right: $margin;
227
+ bottom: $margin;
228
+ background-color: $color;
127
229
  }
128
-
129
- // .guide_baseline { @include guide_baseline; }
130
-
131
-
132
- // .baseline-grid {
133
- // @include guide;
134
-
135
- // background-image:
136
- // // -webkit-linear-gradient(0deg, rgba(200,0,0,.2) 40px, transparent 40px),
137
- // -webkit-linear-gradient(top, rgba(0,0,0,0) 95%, rgba(56,255,255,.8) 100%);
138
-
139
-
140
- // background-image:
141
- // // -moz-linear-gradient(0deg, rgba(200,0,0,.2) 40px, transparent 40px),
142
- // -moz-linear-gradient(top, rgba(0,0,0,0) 95%, rgba(56,255,255,.8) 100%);
143
- // background-image:
144
- // // -o-linear-gradient(0deg, rgba(200,0,0,.2) 40px, transparent 40px),
145
- // -o-linear-gradient(top, rgba(0,0,0,0) 95%, rgba(56,255,255,.8) 100%);
146
-
147
- // background-size: 100% 100%, 100% 100%;
148
- // // background-size: 60px 100%, 100% 22px;
149
- // // background-position: 10px 0px;
150
- // }
151
-
152
-
153
-
154
- // // .guide_graph {
155
- // // @include guide;
156
- // // background-image:
157
- // // repeating-linear-gradient(#ccc 0 1px, transparent 1px 100%),
158
- // // repeating-linear-gradient(90deg, #ccc 0 1px, transparent 1px 100%);
159
- // // }
160
-
161
- // // .guide_baseline {
162
- // // @include guide;
163
- // // background-image:
164
- // // repeating-linear-gradient(cyan 0 2px, transparent 2px 100%);
165
- // // }
166
-
167
- // .page {
168
- // border: $q*2 solid red;
169
- // }
170
-
171
-
172
- // $body-width: 960px;
173
- // $baseline: 22px;
174
- // @mixin baseline-grid {
175
- // $columns: 16;
176
- // $column-color: rgba(200,0,0,.2);
177
- // $baseline-color: rgba(56,255,255,.8);
178
-
179
- // // These are all automatically calculated
180
- // $gutter-width: 20px; // Change if you like
181
- // $gutters: ($columns - 1);
182
- // $column-width: calc($body-width / $columns);
183
-
184
- // background-image: -webkit-linear-gradient(0deg, $column-color $column-width, transparent $gutter-width),
185
- // -webkit-linear-gradient(top, rgba(0,0,0,0) 95%, $baseline-color 100%);
186
- // background-image: -moz-linear-gradient(0deg, $column-color $column-width, transparent $gutter-width),
187
- // -moz-linear-gradient(top, rgba(0,0,0,0) 95%, $baseline-color 100%);
188
- // background-image: -o-linear-gradient(0deg, $column-color $column-width, transparent $gutter-width),
189
- // -o-linear-gradient(top, rgba(0,0,0,0) 95%, $baseline-color 100%);
190
- // background-size: ($column-width + $gutter-width) 100%, 100% $baseline;
191
- // background-position: 10px 0px; // Use to offset and center your grid
192
- // }
193
-
194
- // // Example call
195
- // .baseline-grid {
196
- // }