gerillass 2.3.0 → 2.3.1
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.
- package/SKILL.md +17 -1
- package/gerillass.json +287 -68
- package/package.json +1 -1
- package/scss/internal/_color-problem.scss +99 -0
- package/scss/internal/_color-stops-problem.scss +94 -0
- package/scss/internal/_condition-width.scss +22 -0
- package/scss/internal/_custom-property-in.scss +25 -0
- package/scss/internal/_image-value.scss +68 -0
- package/scss/internal/_is-condition-value.scss +94 -0
- package/scss/internal/_is-css-function.scss +21 -0
- package/scss/internal/_is-size.scss +22 -0
- package/scss/internal/_keyword-value.scss +76 -0
- package/scss/internal/_length-problem.scss +127 -0
- package/scss/internal/_sibling-index.scss +51 -0
- package/scss/internal/_words.scss +35 -0
- package/scss/library/_adaptive.scss +17 -0
- package/scss/library/_after.scss +2 -12
- package/scss/library/_background-dots.scss +29 -37
- package/scss/library/_background-image.scss +37 -25
- package/scss/library/_background-stripes.scss +34 -37
- package/scss/library/_before.scss +2 -12
- package/scss/library/_border-radius.scss +83 -0
- package/scss/library/_brand-logo.scss +10 -24
- package/scss/library/_breakpoint.scss +16 -23
- package/scss/library/_circle.scss +7 -0
- package/scss/library/_columnizer.scss +62 -2
- package/scss/library/_container-query.scss +11 -27
- package/scss/library/_container.scss +2 -19
- package/scss/library/_counter.scss +3 -14
- package/scss/library/_ellipsis.scss +78 -1
- package/scss/library/_except.scss +15 -0
- package/scss/library/_focus-ring.scss +29 -0
- package/scss/library/_font-face.scss +117 -1
- package/scss/library/_line-clamp.scss +2 -13
- package/scss/library/_linear-gradient.scss +7 -0
- package/scss/library/_only.scss +16 -0
- package/scss/library/_position.scss +34 -3
- package/scss/library/_radial-gradient.scss +154 -0
- package/scss/library/_resizable.scss +29 -2
- package/scss/library/_screen-agent.scss +8 -22
- package/scss/library/_sizer.scss +9 -0
- package/scss/library/_sprite.scss +65 -0
- package/scss/library/_text-gradient.scss +8 -0
- package/scss/library/_text-image.scss +2 -23
- package/scss/library/_text-stroke.scss +30 -0
- package/scss/library/_triangle.scss +25 -56
- package/scss/utilities/_validate-breakpoint.scss +32 -6
- package/scss/utilities/_validate-scissors.scss +7 -0
package/SKILL.md
CHANGED
|
@@ -65,6 +65,7 @@ a dropped declaration rather than an error.
|
|
|
65
65
|
|
|
66
66
|
| Mixin | Rejects, for example |
|
|
67
67
|
|---|---|
|
|
68
|
+
| `adaptive` | `.wrap { @include adaptive(auto); }` |
|
|
68
69
|
| `after` | `.a { @include after(42) { color: red; } }` |
|
|
69
70
|
| `all-buttons` | `@include all-buttons(nonsense) { color: red; }` |
|
|
70
71
|
| `all-text-inputs` | `@include all-text-inputs(nonsense) { color: red; }` |
|
|
@@ -76,12 +77,15 @@ a dropped declaration rather than an error.
|
|
|
76
77
|
| `before` | `.a { @include before(42) { color: red; } }` |
|
|
77
78
|
| `border-box` | `@include border-box(only);` |
|
|
78
79
|
| `border-radius` | `.a { @include border-radius(1px, 2px, 3px); }` |
|
|
80
|
+
| `brand-logo` | `.logo { @include brand-logo(120px, 40px, "/img/a.svg" "/img/b.svg"); }` |
|
|
79
81
|
| `breakpoint` | `.a { @include breakpoint("between", "medium", "large") { color: red; } }` |
|
|
80
82
|
| `breakpointer` | `.a { @include breakpointer(42); }` |
|
|
81
83
|
| `center` | `.modal { @include center(diagonal); }` |
|
|
84
|
+
| `circle` | `.dot { @include circle(huge); }` |
|
|
82
85
|
| `columnizer` | `.grid { @include columnizer(3, 20px, true, 9); }` |
|
|
83
86
|
| `container-query` | `.title { @include container-query("min", 400px, 800px) { color: red; } }` |
|
|
84
87
|
| `container` | `.card { @include container("card", sideways); }` |
|
|
88
|
+
| `ellipsis` | `.a { @include ellipsis(100%, huge); }` |
|
|
85
89
|
| `escape-to-parent` | `.a { @include escape-to-parent(42) { color: red; } }` |
|
|
86
90
|
| `except` | `.a { @include except(#ff0000) { margin: 0; } }` |
|
|
87
91
|
| `focus-ring` | `@include focus-ring;` |
|
|
@@ -96,15 +100,19 @@ a dropped declaration rather than an error.
|
|
|
96
100
|
| `radial-gradient` | `.a { @include radial-gradient(42, "center", (red, blue)); }` |
|
|
97
101
|
| `remove` | `.a { @include remove(a, b, c); }` |
|
|
98
102
|
| `reset-css` | `.a { @include reset-css; }` |
|
|
103
|
+
| `resizable` | `.a { @include resizable(huge); }` |
|
|
99
104
|
| `scissors` | `.a { @include scissors(5px 10px); }` |
|
|
100
105
|
| `screen-agent` | `.a { @include screen-agent(var(--density)) { color: red; } }` |
|
|
106
|
+
| `sizer` | `.a { @include sizer(huge); }` |
|
|
101
107
|
| `smartphone` | `.a { @include smartphone(Nokia3310) { display: none; } }` |
|
|
102
108
|
| `sprite` | `.icon { @include sprite("/img/sprite.txt"); }` |
|
|
103
109
|
| `stretched-link` | `.card a { @include stretched-link(middle); }` |
|
|
104
110
|
| `tablet` | `.a { @include tablet(Surface) { display: none; } }` |
|
|
105
111
|
| `text-gradient` | `.a { @include text-gradient(sideways, (red, blue)); }` |
|
|
112
|
+
| `text-image` | `.a { @include text-image(16 9); }` |
|
|
106
113
|
| `text-selection` | `.a { @include text-selection(bogus) { background: yellow; } }` |
|
|
107
114
|
| `text-shadow` | `.a { @include text-shadow(42); }` |
|
|
115
|
+
| `text-stroke` | `.a { @include text-stroke(huge); }` |
|
|
108
116
|
| `tokens` | `:root { @include tokens(#fff); }` |
|
|
109
117
|
| `triangle` | `.caret { @include triangle(sideways); }` |
|
|
110
118
|
|
|
@@ -139,6 +147,10 @@ a dropped declaration rather than an error.
|
|
|
139
147
|
|
|
140
148
|
- Numbering restarts on every item, each showing the first number, when the items are size containers (`container-type: inline-size`): containment scopes counters to each item.
|
|
141
149
|
|
|
150
|
+
**`except`**
|
|
151
|
+
|
|
152
|
+
- An+B with an offset cannot be passed as a number: Sass does the arithmetic, so `except(2n+1)` becomes `3n` and excludes every third element, not the odd ones. Use `odd` or `even`, or a coefficient alone such as `3n`.
|
|
153
|
+
|
|
142
154
|
**`loadify`**
|
|
143
155
|
|
|
144
156
|
- `init` and every call must be in the same module, or the module with the call must `@use` the one that calls `init`. Otherwise Sass fails with "The target selector was not found".
|
|
@@ -147,6 +159,10 @@ a dropped declaration rather than an error.
|
|
|
147
159
|
|
|
148
160
|
- Keep the resting state outside the block. An element hidden in its base rule and revealed by an animation inside the block stays hidden for a user who asked for less motion; put the start state in the keyframes instead.
|
|
149
161
|
|
|
162
|
+
**`only`**
|
|
163
|
+
|
|
164
|
+
- An+B with an offset cannot be passed as a number: Sass does the arithmetic, so `only(2n+1)` becomes `3n` and selects every third element, not the odd ones. Use `odd` or `even`, or a coefficient alone such as `3n`.
|
|
165
|
+
|
|
150
166
|
**`remove`**
|
|
151
167
|
|
|
152
168
|
- With one argument the element is hidden at exactly that width, `(width: 768px)`, which is a single pixel, and the mixin prints a warning. Write `only` for that width, or `min`, `max` or a range for anything wider. 3.0.0 will refuse the one-argument form.
|
|
@@ -239,7 +255,7 @@ and camelCase is what tells them apart from the kebab-case mixins above.
|
|
|
239
255
|
| `shade($color, $percentage)` | Mixes a colour towards black by a percentage. |
|
|
240
256
|
| `shorthandProperty($value)` | Expands one to four values into the four-value CSS shorthand order. |
|
|
241
257
|
| `tint($color, $percentage)` | Mixes a colour towards white by a percentage. |
|
|
242
|
-
| `validateBreakpoint($value)` | Resolves a breakpoint name to its width, passing
|
|
258
|
+
| `validateBreakpoint($value)` | Resolves a breakpoint name to its width, passing a length, a percentage or a CSS function through, and refusing a word that is not a key. |
|
|
243
259
|
| `validateLength($value)` | Returns the value if it is a length or one of auto, inherit, initial, 0. Returns null quietly for null, so a caller can skip a value. |
|
|
244
260
|
| `validateRatio($ratio)` | Turns an aspect ratio into a value for the CSS aspect-ratio property. |
|
|
245
261
|
| `validateScissors($value)` | Normalises corner values for the scissors mixin, adding px where missing. |
|