tessellate 0.1.7 → 0.1.8
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.
- checksums.yaml +4 -4
- data/_sass/libs/_breakpoints.scss +21 -16
- data/_sass/libs/_html-grid.scss +7 -4
- data/_sass/libs/_vendor.scss +9 -6
- data/assets/css/style.scss +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 418a7d909307aa3300b53445e02730e4f617e68882412d59d0a8823c4357c131
|
4
|
+
data.tar.gz: 782a65160b381bba43640d1b3b221ffe5b37278dda9611d3e6a7c18cb563df21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85ae7aa1efdf48772d7363ddaca0c6264fed4cc1ad2ea7c16276488925e1c88b14954718ea7b8470f16ef47d7086a982eb1a85a006fd5c73e266928afd9a324
|
7
|
+
data.tar.gz: 2377c299ae46d9ac8d7023e8e691c51ad3846d1458e4ee5b1bc9a6f2be0be63654d587a4b845bebbe5063b142bdf49a35abf0443d0e2a40719e565ed7503b2bb
|
@@ -1,5 +1,10 @@
|
|
1
1
|
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
|
2
2
|
|
3
|
+
@use "sass:string";
|
4
|
+
@use "sass:map";
|
5
|
+
@use "sass:meta";
|
6
|
+
@use "sass:list";
|
7
|
+
|
3
8
|
// Vars.
|
4
9
|
|
5
10
|
/// Breakpoints.
|
@@ -33,42 +38,42 @@
|
|
33
38
|
// Determine operator, breakpoint.
|
34
39
|
|
35
40
|
// Greater than or equal.
|
36
|
-
@if (
|
41
|
+
@if (string.slice($query, 0, 2) == '>=') {
|
37
42
|
|
38
43
|
$op: 'gte';
|
39
|
-
$breakpoint:
|
44
|
+
$breakpoint: string.slice($query, 3);
|
40
45
|
|
41
46
|
}
|
42
47
|
|
43
48
|
// Less than or equal.
|
44
|
-
@else if (
|
49
|
+
@else if (string.slice($query, 0, 2) == '<=') {
|
45
50
|
|
46
51
|
$op: 'lte';
|
47
|
-
$breakpoint:
|
52
|
+
$breakpoint: string.slice($query, 3);
|
48
53
|
|
49
54
|
}
|
50
55
|
|
51
56
|
// Greater than.
|
52
|
-
@else if (
|
57
|
+
@else if (string.slice($query, 0, 1) == '>') {
|
53
58
|
|
54
59
|
$op: 'gt';
|
55
|
-
$breakpoint:
|
60
|
+
$breakpoint: string.slice($query, 2);
|
56
61
|
|
57
62
|
}
|
58
63
|
|
59
64
|
// Less than.
|
60
|
-
@else if (
|
65
|
+
@else if (string.slice($query, 0, 1) == '<') {
|
61
66
|
|
62
67
|
$op: 'lt';
|
63
|
-
$breakpoint:
|
68
|
+
$breakpoint: string.slice($query, 2);
|
64
69
|
|
65
70
|
}
|
66
71
|
|
67
72
|
// Not.
|
68
|
-
@else if (
|
73
|
+
@else if (string.slice($query, 0, 1) == '!') {
|
69
74
|
|
70
75
|
$op: 'not';
|
71
|
-
$breakpoint:
|
76
|
+
$breakpoint: string.slice($query, 2);
|
72
77
|
|
73
78
|
}
|
74
79
|
|
@@ -81,15 +86,15 @@
|
|
81
86
|
}
|
82
87
|
|
83
88
|
// Build media.
|
84
|
-
@if ($breakpoint and map
|
89
|
+
@if ($breakpoint and map.has-key($breakpoints, $breakpoint)) {
|
85
90
|
|
86
|
-
$a: map
|
91
|
+
$a: map.get($breakpoints, $breakpoint);
|
87
92
|
|
88
93
|
// Range.
|
89
|
-
@if (type-of($a) == 'list') {
|
94
|
+
@if (meta.type-of($a) == 'list') {
|
90
95
|
|
91
|
-
$x: nth($a, 1);
|
92
|
-
$y: nth($a, 2);
|
96
|
+
$x: list.nth($a, 1);
|
97
|
+
$y: list.nth($a, 2);
|
93
98
|
|
94
99
|
// Max only.
|
95
100
|
@if ($x == null) {
|
@@ -202,7 +207,7 @@
|
|
202
207
|
@else {
|
203
208
|
|
204
209
|
// Missing a media type? Prefix with "screen".
|
205
|
-
@if (
|
210
|
+
@if (string.slice($a, 0, 1) == '(') {
|
206
211
|
$media: 'screen and ' + $a;
|
207
212
|
}
|
208
213
|
|
data/_sass/libs/_html-grid.scss
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
// html-grid.scss v1.0 | @ajlkn | MIT licensed */
|
2
2
|
|
3
|
+
@use "sass:list";
|
4
|
+
@use "sass:meta";
|
5
|
+
|
3
6
|
// Mixins.
|
4
7
|
|
5
8
|
/// Initializes the current element as an HTML grid.
|
@@ -15,7 +18,7 @@
|
|
15
18
|
// Suffixes.
|
16
19
|
$suffixes: null;
|
17
20
|
|
18
|
-
@if (type-of($suffix) == 'list') {
|
21
|
+
@if (meta.type-of($suffix) == 'list') {
|
19
22
|
$suffixes: $suffix;
|
20
23
|
}
|
21
24
|
@else {
|
@@ -26,10 +29,10 @@
|
|
26
29
|
$guttersCols: null;
|
27
30
|
$guttersRows: null;
|
28
31
|
|
29
|
-
@if (type-of($gutters) == 'list') {
|
32
|
+
@if (meta.type-of($gutters) == 'list') {
|
30
33
|
|
31
|
-
$guttersCols: nth($gutters, 1);
|
32
|
-
$guttersRows: nth($gutters, 2);
|
34
|
+
$guttersCols: list.nth($gutters, 1);
|
35
|
+
$guttersRows: list.nth($gutters, 2);
|
33
36
|
|
34
37
|
}
|
35
38
|
@else {
|
data/_sass/libs/_vendor.scss
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
// vendor.scss v1.0 | @ajlkn | MIT licensed */
|
2
2
|
|
3
|
+
@use "sass:string";
|
4
|
+
@use "sass:list";
|
5
|
+
|
3
6
|
// Vars.
|
4
7
|
|
5
8
|
/// Vendor prefixes.
|
@@ -294,10 +297,10 @@
|
|
294
297
|
/// @return {string} Updated string.
|
295
298
|
@function str-replace($string, $search, $replace: '') {
|
296
299
|
|
297
|
-
$index:
|
300
|
+
$index: string.index($string, $search);
|
298
301
|
|
299
302
|
@if $index {
|
300
|
-
@return
|
303
|
+
@return string.slice($string, 1, $index - 1) + $replace + str-replace(string.slice($string, $index + string.length($search)), $search, $replace);
|
301
304
|
}
|
302
305
|
|
303
306
|
@return $string;
|
@@ -312,7 +315,7 @@
|
|
312
315
|
@function str-replace-all($strings, $search, $replace: '') {
|
313
316
|
|
314
317
|
@each $string in $strings {
|
315
|
-
$strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
|
318
|
+
$strings: list.set-nth($strings, list.index($strings, $string), str-replace($string, $search, $replace));
|
316
319
|
}
|
317
320
|
|
318
321
|
@return $strings;
|
@@ -338,16 +341,16 @@
|
|
338
341
|
@mixin vendor($property, $value) {
|
339
342
|
|
340
343
|
// Determine if property should expand.
|
341
|
-
$expandProperty: index($vendor-properties, $property);
|
344
|
+
$expandProperty: list.index($vendor-properties, $property);
|
342
345
|
|
343
346
|
// Determine if value should expand (and if so, add '-prefix-' placeholder).
|
344
347
|
$expandValue: false;
|
345
348
|
|
346
349
|
@each $x in $value {
|
347
350
|
@each $y in $vendor-values {
|
348
|
-
@if $y ==
|
351
|
+
@if $y == string.slice($x, 1, string.length($y)) {
|
349
352
|
|
350
|
-
$value: set-nth($value, index($value, $x), '-prefix-' + $x);
|
353
|
+
$value: list.set-nth($value, list.index($value, $x), '-prefix-' + $x);
|
351
354
|
$expandValue: true;
|
352
355
|
|
353
356
|
}
|
data/assets/css/style.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tessellate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Preston Hager
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|