gerillass 2.3.1 → 3.0.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.
- package/README.md +46 -7
- package/SKILL.md +20 -11
- package/gerillass.json +275 -112
- package/package.json +1 -1
- package/scss/internal/_gradient.scss +425 -0
- package/scss/library/_background-dots.scss +7 -6
- package/scss/library/_background-image.scss +6 -30
- package/scss/library/_background-stripes.scss +6 -17
- package/scss/library/_breakpoint.scss +3 -3
- package/scss/library/_container-query.scss +2 -2
- package/scss/library/_gradient.scss +31 -0
- package/scss/library/_index.scss +1 -2
- package/scss/library/_remove.scss +1 -1
- package/scss/library/_text-gradient.scss +36 -26
- package/scss/utilities/_gradient-value.scss +24 -0
- package/scss/utilities/_index.scss +1 -0
- package/scss/library/_linear-gradient.scss +0 -33
- package/scss/library/_radial-gradient.scss +0 -184
package/gerillass.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gerillass",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Gerillass is an open-source toolkit that contains a set of Sass mixins to help designers and developers to create better, faster and consistent user interfaces.",
|
|
5
5
|
"homepage": "https://gerillass.com",
|
|
6
6
|
"documentation": "https://docs.gerillass.com",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"load": {
|
|
9
9
|
"packageImporter": "@use \"pkg:gerillass\" as *;",
|
|
10
10
|
"bundler": "@use \"gerillass\" as *;",
|
|
11
|
-
"loadPath": "@use \"gerillass\" as *; // with loadPaths: [\"node_modules/gerillass/scss\"]"
|
|
11
|
+
"loadPath": "@use \"gerillass\" as *; // with loadPaths: [\"node_modules/gerillass/scss\"]",
|
|
12
|
+
"rubygems": "@use \"gerillass\" as *; // the gerillass gem: Rails and Jekyll need no setup; plain Ruby passes Gerillass.load_path"
|
|
12
13
|
},
|
|
13
14
|
"members": [
|
|
14
15
|
{
|
|
@@ -290,7 +291,7 @@
|
|
|
290
291
|
"name": "$filter-color",
|
|
291
292
|
"default": "null",
|
|
292
293
|
"accepts": [
|
|
293
|
-
"one colour, or several colour stops for a gradient, in the forms
|
|
294
|
+
"one colour, or several colour stops for a gradient, in the forms the gradient mixin takes",
|
|
294
295
|
"with $image-url null, an image as the overlay layer too: a gradient, url(), image-set() or var()",
|
|
295
296
|
"a word that is not a colour, a quoted colour, a length and a CSS-wide keyword are refused"
|
|
296
297
|
]
|
|
@@ -299,8 +300,10 @@
|
|
|
299
300
|
"name": "$filter-direction",
|
|
300
301
|
"default": "null",
|
|
301
302
|
"accepts": [
|
|
302
|
-
"
|
|
303
|
-
"
|
|
303
|
+
"a direction name such as top or bottom-left",
|
|
304
|
+
"an angle in deg, grad, rad or turn, or 0",
|
|
305
|
+
"\"to top\" or \"to left top\" as a string",
|
|
306
|
+
"var() or calc()"
|
|
304
307
|
]
|
|
305
308
|
}
|
|
306
309
|
],
|
|
@@ -539,7 +542,7 @@
|
|
|
539
542
|
"signature": "breakpoint($params...)",
|
|
540
543
|
"summary": "Media query built from the breakpoint map, or from raw lengths.",
|
|
541
544
|
"caveats": [
|
|
542
|
-
"With one argument the query matches 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.
|
|
545
|
+
"With one argument the query matches 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.",
|
|
543
546
|
"Declarations written after the include, in the same rule, are emitted after the `@media` block and win over it. Write them before the include."
|
|
544
547
|
],
|
|
545
548
|
"examples": [
|
|
@@ -707,7 +710,7 @@
|
|
|
707
710
|
"signature": "container-query($params...)",
|
|
708
711
|
"summary": "A @container rule, taking the same argument shapes as breakpoint so the two read alike. Sizes may be a key from $map-for-breakpoints or a raw length, and a length is the common case because a container is usually narrower than the viewport. Nothing matches at all unless an ancestor was declared with the container mixin.",
|
|
709
712
|
"caveats": [
|
|
710
|
-
"A size on its own matches exactly that width, `(width: 400px)`, 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.
|
|
713
|
+
"A size on its own matches exactly that width, `(width: 400px)`, 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."
|
|
711
714
|
],
|
|
712
715
|
"examples": [
|
|
713
716
|
".title { @include container-query(\"min\", 400px) { font-size: 2rem; } }",
|
|
@@ -1042,6 +1045,117 @@
|
|
|
1042
1045
|
"@include font-face(\"Inter\", \"/fonts/inter\", $font-weight: 100 200 300, $file-formats: woff2);"
|
|
1043
1046
|
]
|
|
1044
1047
|
},
|
|
1048
|
+
{
|
|
1049
|
+
"name": "gradient",
|
|
1050
|
+
"kind": "mixin",
|
|
1051
|
+
"arguments": [
|
|
1052
|
+
{
|
|
1053
|
+
"name": "$colors",
|
|
1054
|
+
"required": true,
|
|
1055
|
+
"accepts": [
|
|
1056
|
+
"one or more colour stops: a colour, or a colour with one or two positions, such as (red 0 10%) (blue 10% 100%)",
|
|
1057
|
+
"a position on its own between two colours, as a hint",
|
|
1058
|
+
"for a conic gradient the positions are angles or percentages, not lengths",
|
|
1059
|
+
"var() for a stop or the whole list",
|
|
1060
|
+
"a single colour warns, because browsers before Chrome 135, Firefox 136 and Safari 18.4 drop that gradient"
|
|
1061
|
+
]
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "$type",
|
|
1065
|
+
"default": "linear",
|
|
1066
|
+
"accepts": [
|
|
1067
|
+
"linear, the default",
|
|
1068
|
+
"radial",
|
|
1069
|
+
"conic"
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "$direction",
|
|
1074
|
+
"default": "null",
|
|
1075
|
+
"accepts": [
|
|
1076
|
+
"linear only",
|
|
1077
|
+
"a direction name such as top or bottom-left",
|
|
1078
|
+
"an angle in deg, grad, rad or turn, or 0",
|
|
1079
|
+
"\"to top\" or \"to left top\" as a string",
|
|
1080
|
+
"var() or calc()"
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"name": "$shape",
|
|
1085
|
+
"default": "null",
|
|
1086
|
+
"accepts": [
|
|
1087
|
+
"radial only",
|
|
1088
|
+
"circle or ellipse, with an optional size as a string, such as \"circle 10px\""
|
|
1089
|
+
]
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"name": "$position",
|
|
1093
|
+
"default": "null",
|
|
1094
|
+
"accepts": [
|
|
1095
|
+
"radial or conic",
|
|
1096
|
+
"a position name such as center or top-left",
|
|
1097
|
+
"at followed by a position, as a string, such as \"at 30% 40%\"; a radial gradient may put a size before it"
|
|
1098
|
+
]
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"name": "$from",
|
|
1102
|
+
"default": "null",
|
|
1103
|
+
"accepts": [
|
|
1104
|
+
"conic only",
|
|
1105
|
+
"an angle in deg, grad, rad or turn, 0, or var()"
|
|
1106
|
+
]
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "$in",
|
|
1110
|
+
"default": "null",
|
|
1111
|
+
"accepts": [
|
|
1112
|
+
"a colour space: srgb, srgb-linear, display-p3, display-p3-linear, a98-rgb, prophoto-rgb, rec2020, lab, oklab, xyz, xyz-d50 or xyz-d65",
|
|
1113
|
+
"a polar space, hsl, hwb, lch or oklch, with an optional hue method as a string, such as \"oklch longer hue\"",
|
|
1114
|
+
"var()",
|
|
1115
|
+
"the gradient is written once without the space first, for a browser that does not know it"
|
|
1116
|
+
]
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"name": "$repeating",
|
|
1120
|
+
"default": "false",
|
|
1121
|
+
"accepts": [
|
|
1122
|
+
"false, the default",
|
|
1123
|
+
"true, for a repeating gradient"
|
|
1124
|
+
]
|
|
1125
|
+
}
|
|
1126
|
+
],
|
|
1127
|
+
"file": "scss/library/_gradient.scss",
|
|
1128
|
+
"signature": "gradient($colors, $type: linear, $direction: null, $shape: null, $position: null, $from: null, $in: null, $repeating: false)",
|
|
1129
|
+
"summary": "A linear, radial or conic gradient as background-image, plain or repeating, with an optional colour interpolation space. Replaced linear-gradient and radial-gradient in 3.0.0.",
|
|
1130
|
+
"examples": [
|
|
1131
|
+
".a { @include gradient((red, blue)); }",
|
|
1132
|
+
".a { @include gradient((red, blue), $direction: \"top-right\"); }",
|
|
1133
|
+
".a { @include gradient((red, blue), radial, $shape: circle, $position: \"top-left\"); }",
|
|
1134
|
+
".a { @include gradient((teal 0 40%, purple 40% 75%, coral 75% 100%), conic); }",
|
|
1135
|
+
".a { @include gradient((black 0 25%, white 0 50%), conic, $repeating: true); }",
|
|
1136
|
+
".a { @include gradient((blue, yellow), $direction: right, $in: oklab); }"
|
|
1137
|
+
],
|
|
1138
|
+
"rejects": [
|
|
1139
|
+
".a { @include gradient((red, blue), sideways); }",
|
|
1140
|
+
".a { @include gradient((red, blue), $direction: 10px); }",
|
|
1141
|
+
".a { @include gradient((red, blue), $direction: \"to center\"); }",
|
|
1142
|
+
".a { @include gradient((red, blue), radial, $direction: top); }",
|
|
1143
|
+
".a { @include gradient((red, blue), $shape: circle); }",
|
|
1144
|
+
".a { @include gradient((red, blue), $position: center); }",
|
|
1145
|
+
".a { @include gradient((red, blue), $from: 45deg); }",
|
|
1146
|
+
".a { @include gradient((red, blue), conic, $from: 10px); }",
|
|
1147
|
+
".a { @include gradient((red, blue), conic, $position: \"closest-side at center\"); }",
|
|
1148
|
+
".a { @include gradient((red 10px, blue), conic); }",
|
|
1149
|
+
".a { @include gradient((red, blue), radial, $shape: \"circle 10%\"); }",
|
|
1150
|
+
".a { @include gradient((huge, blue)); }",
|
|
1151
|
+
".a { @include gradient((red, blue), $in: rgb); }",
|
|
1152
|
+
".a { @include gradient((red, blue), $in: \"oklab longer hue\"); }",
|
|
1153
|
+
".a { @include gradient((red, blue), $repeating: yes); }"
|
|
1154
|
+
],
|
|
1155
|
+
"warns": [
|
|
1156
|
+
".a { @include gradient(red); }"
|
|
1157
|
+
]
|
|
1158
|
+
},
|
|
1045
1159
|
{
|
|
1046
1160
|
"name": "hide",
|
|
1047
1161
|
"kind": "mixin",
|
|
@@ -1098,48 +1212,6 @@
|
|
|
1098
1212
|
".a { @include line-clamp(url(a.png)); }"
|
|
1099
1213
|
]
|
|
1100
1214
|
},
|
|
1101
|
-
{
|
|
1102
|
-
"name": "linear-gradient",
|
|
1103
|
-
"kind": "mixin",
|
|
1104
|
-
"arguments": [
|
|
1105
|
-
{
|
|
1106
|
-
"name": "$direction",
|
|
1107
|
-
"required": true,
|
|
1108
|
-
"accepts": [
|
|
1109
|
-
"a direction name such as top or bottom-left",
|
|
1110
|
-
"an angle such as 45deg"
|
|
1111
|
-
]
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
"name": "$colors",
|
|
1115
|
-
"required": true,
|
|
1116
|
-
"accepts": [
|
|
1117
|
-
"one or more colour stops: a colour, or a colour with one or two positions, such as (red 0 10%) (blue 10% 100%)",
|
|
1118
|
-
"a position on its own between two colours, as a hint, such as (red, 30%, blue)",
|
|
1119
|
-
"var() for a stop or the whole list",
|
|
1120
|
-
"a word that is not a colour, a position first or last, two positions in a row, three positions in a stop and null are refused, because the gradient would be dropped"
|
|
1121
|
-
]
|
|
1122
|
-
}
|
|
1123
|
-
],
|
|
1124
|
-
"file": "scss/library/_linear-gradient.scss",
|
|
1125
|
-
"signature": "linear-gradient($direction, $colors)",
|
|
1126
|
-
"summary": "Linear gradient background from a direction name or an angle.",
|
|
1127
|
-
"examples": [
|
|
1128
|
-
".a { @include linear-gradient(\"top\", (red, blue)); }",
|
|
1129
|
-
".a { @include linear-gradient(45deg, (red, blue)); }"
|
|
1130
|
-
],
|
|
1131
|
-
"rejects": [
|
|
1132
|
-
".a { @include linear-gradient(sideways, (red, blue)); }",
|
|
1133
|
-
".a { @include linear-gradient(true, (red, blue)); }",
|
|
1134
|
-
".a { @include linear-gradient(\"top\", (huge, blue)); }",
|
|
1135
|
-
".a { @include linear-gradient(\"top\", (inherit, blue)); }",
|
|
1136
|
-
".a { @include linear-gradient(\"top\", (red, 10%)); }",
|
|
1137
|
-
".a { @include linear-gradient(\"top\", (10%, red, blue)); }",
|
|
1138
|
-
".a { @include linear-gradient(\"top\", (red, 30%, 40%, blue)); }",
|
|
1139
|
-
".a { @include linear-gradient(\"top\", (red 10% 20% 30%, blue)); }",
|
|
1140
|
-
".a { @include linear-gradient(\"top\", null); }"
|
|
1141
|
-
]
|
|
1142
|
-
},
|
|
1143
1215
|
{
|
|
1144
1216
|
"name": "loadify",
|
|
1145
1217
|
"kind": "mixin",
|
|
@@ -1306,56 +1378,6 @@
|
|
|
1306
1378
|
".a { @include position(absolute, url(a.png)); }"
|
|
1307
1379
|
]
|
|
1308
1380
|
},
|
|
1309
|
-
{
|
|
1310
|
-
"name": "radial-gradient",
|
|
1311
|
-
"kind": "mixin",
|
|
1312
|
-
"arguments": [
|
|
1313
|
-
{
|
|
1314
|
-
"name": "$shape",
|
|
1315
|
-
"required": true,
|
|
1316
|
-
"accepts": [
|
|
1317
|
-
"circle or ellipse",
|
|
1318
|
-
"with a size as a string: an extent keyword such as \"circle closest-side\", one length for a circle, or two lengths or percentages for an ellipse",
|
|
1319
|
-
"var() or calc()"
|
|
1320
|
-
]
|
|
1321
|
-
},
|
|
1322
|
-
{
|
|
1323
|
-
"name": "$position",
|
|
1324
|
-
"required": true,
|
|
1325
|
-
"accepts": [
|
|
1326
|
-
"a position name such as center or top-left",
|
|
1327
|
-
"an extent keyword such as closest-side",
|
|
1328
|
-
"at followed by a position, as a string, such as \"at 30% 40%\" or \"at left 10px top 20px\", optionally after a size",
|
|
1329
|
-
"a word outside these, such as inherit, is refused, because the whole gradient would be dropped"
|
|
1330
|
-
]
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
"name": "$colors",
|
|
1334
|
-
"required": true,
|
|
1335
|
-
"accepts": [
|
|
1336
|
-
"one or more colour stops, in the same forms as linear-gradient: a colour with up to two positions, a position between two colours, or var()",
|
|
1337
|
-
"a stop the browser drops is refused, because the whole gradient would be dropped"
|
|
1338
|
-
]
|
|
1339
|
-
}
|
|
1340
|
-
],
|
|
1341
|
-
"file": "scss/library/_radial-gradient.scss",
|
|
1342
|
-
"signature": "radial-gradient($shape, $position, $colors)",
|
|
1343
|
-
"summary": "Radial gradient background from a shape and a position.",
|
|
1344
|
-
"examples": [
|
|
1345
|
-
".a { @include radial-gradient(circle, \"center\", (red, blue)); }"
|
|
1346
|
-
],
|
|
1347
|
-
"rejects": [
|
|
1348
|
-
".a { @include radial-gradient(42, \"center\", (red, blue)); }",
|
|
1349
|
-
".a { @include radial-gradient(circle, 42, (red, blue)); }",
|
|
1350
|
-
".a { @include radial-gradient(huge, \"center\", (red, blue)); }",
|
|
1351
|
-
".a { @include radial-gradient(\"circle 10%\", \"center\", (red, blue)); }",
|
|
1352
|
-
".a { @include radial-gradient(circle, huge, (red, blue)); }",
|
|
1353
|
-
".a { @include radial-gradient(circle, \"at huge\", (red, blue)); }",
|
|
1354
|
-
".a { @include radial-gradient(circle, inherit, (red, blue)); }",
|
|
1355
|
-
".a { @include radial-gradient(circle, \"center\", (huge, blue)); }",
|
|
1356
|
-
".a { @include radial-gradient(circle, \"center\", (red, blue, 90%)); }"
|
|
1357
|
-
]
|
|
1358
|
-
},
|
|
1359
1381
|
{
|
|
1360
1382
|
"name": "remove",
|
|
1361
1383
|
"kind": "mixin",
|
|
@@ -1376,7 +1398,7 @@
|
|
|
1376
1398
|
"signature": "remove($params...)",
|
|
1377
1399
|
"summary": "Hides an element outright, or within a media query: from a breakpoint up with min, up to it with max, or between two breakpoints. One breakpoint on its own hides the element at exactly that width, a single pixel, and prints a warning: pass only for that.",
|
|
1378
1400
|
"caveats": [
|
|
1379
|
-
"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.
|
|
1401
|
+
"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.",
|
|
1380
1402
|
"A `display` written after the include, in the same rule, is emitted after the `@media` block and wins over it. Write it before the include."
|
|
1381
1403
|
],
|
|
1382
1404
|
"examples": [
|
|
@@ -1685,32 +1707,89 @@
|
|
|
1685
1707
|
"kind": "mixin",
|
|
1686
1708
|
"arguments": [
|
|
1687
1709
|
{
|
|
1688
|
-
"name": "$
|
|
1710
|
+
"name": "$colors",
|
|
1689
1711
|
"required": true,
|
|
1690
1712
|
"accepts": [
|
|
1713
|
+
"one or more colour stops, in the forms the gradient mixin takes",
|
|
1714
|
+
"a stop the browser drops is refused, because the gradient and the transparent text would go with it",
|
|
1715
|
+
"a single colour warns"
|
|
1716
|
+
]
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "$type",
|
|
1720
|
+
"default": "linear",
|
|
1721
|
+
"accepts": [
|
|
1722
|
+
"linear, the default",
|
|
1723
|
+
"radial",
|
|
1724
|
+
"conic"
|
|
1725
|
+
]
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "$direction",
|
|
1729
|
+
"default": "null",
|
|
1730
|
+
"accepts": [
|
|
1731
|
+
"linear only",
|
|
1691
1732
|
"a direction name such as top or bottom-left",
|
|
1692
|
-
"an angle
|
|
1733
|
+
"an angle in deg, grad, rad or turn, or 0",
|
|
1734
|
+
"\"to top\" or \"to left top\" as a string",
|
|
1735
|
+
"var() or calc()"
|
|
1693
1736
|
]
|
|
1694
1737
|
},
|
|
1695
1738
|
{
|
|
1696
|
-
"name": "$
|
|
1697
|
-
"
|
|
1739
|
+
"name": "$shape",
|
|
1740
|
+
"default": "null",
|
|
1698
1741
|
"accepts": [
|
|
1699
|
-
"
|
|
1700
|
-
|
|
1742
|
+
"radial only, circle or ellipse with an optional size"
|
|
1743
|
+
]
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "$position",
|
|
1747
|
+
"default": "null",
|
|
1748
|
+
"accepts": [
|
|
1749
|
+
"radial or conic, a position name or at followed by a position"
|
|
1750
|
+
]
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"name": "$from",
|
|
1754
|
+
"default": "null",
|
|
1755
|
+
"accepts": [
|
|
1756
|
+
"conic only, an angle"
|
|
1757
|
+
]
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"name": "$in",
|
|
1761
|
+
"default": "null",
|
|
1762
|
+
"accepts": [
|
|
1763
|
+
"a colour space such as oklab, or a polar one with a hue method",
|
|
1764
|
+
"the gradient is written once without the space first, for a browser that does not know it"
|
|
1765
|
+
]
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"name": "$repeating",
|
|
1769
|
+
"default": "false",
|
|
1770
|
+
"accepts": [
|
|
1771
|
+
"false, the default",
|
|
1772
|
+
"true"
|
|
1701
1773
|
]
|
|
1702
1774
|
}
|
|
1703
1775
|
],
|
|
1704
1776
|
"file": "scss/library/_text-gradient.scss",
|
|
1705
|
-
"signature": "text-gradient($direction, $
|
|
1706
|
-
"summary": "
|
|
1777
|
+
"signature": "text-gradient($colors, $type: linear, $direction: null, $shape: null, $position: null, $from: null, $in: null, $repeating: false)",
|
|
1778
|
+
"summary": "Fills the text with a gradient through background-clip: text. It takes the gradient mixin's arguments, colours first: a linear, radial or conic gradient, plain or repeating, with an optional colour space.",
|
|
1707
1779
|
"examples": [
|
|
1708
|
-
".a { @include text-gradient(
|
|
1780
|
+
".a { @include text-gradient((red, blue), $direction: top); }",
|
|
1781
|
+
".a { @include text-gradient(blue yellow, $direction: right, $in: oklab); }",
|
|
1782
|
+
".a { @include text-gradient(red yellow lime cyan blue magenta red, conic); }"
|
|
1709
1783
|
],
|
|
1710
1784
|
"rejects": [
|
|
1711
|
-
".a { @include text-gradient(
|
|
1712
|
-
".a { @include text-gradient(
|
|
1713
|
-
".a { @include text-gradient(
|
|
1785
|
+
".a { @include text-gradient(\"top\", (red, blue)); }",
|
|
1786
|
+
".a { @include text-gradient(red blue, $direction: sideways); }",
|
|
1787
|
+
".a { @include text-gradient((huge, blue)); }",
|
|
1788
|
+
".a { @include text-gradient((\"red\", blue)); }",
|
|
1789
|
+
".a { @include text-gradient(red blue, $from: 45deg); }"
|
|
1790
|
+
],
|
|
1791
|
+
"warns": [
|
|
1792
|
+
".a { @include text-gradient(red); }"
|
|
1714
1793
|
]
|
|
1715
1794
|
},
|
|
1716
1795
|
{
|
|
@@ -2186,6 +2265,90 @@
|
|
|
2186
2265
|
],
|
|
2187
2266
|
"rejects": []
|
|
2188
2267
|
},
|
|
2268
|
+
{
|
|
2269
|
+
"name": "gradientValue",
|
|
2270
|
+
"kind": "function",
|
|
2271
|
+
"arguments": [
|
|
2272
|
+
{
|
|
2273
|
+
"name": "$colors",
|
|
2274
|
+
"required": true,
|
|
2275
|
+
"accepts": [
|
|
2276
|
+
"the colour stops, in the forms the gradient mixin takes",
|
|
2277
|
+
"a single colour warns, because browsers before Chrome 135, Firefox 136 and Safari 18.4 drop that gradient"
|
|
2278
|
+
]
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
"name": "$type",
|
|
2282
|
+
"default": "linear",
|
|
2283
|
+
"accepts": [
|
|
2284
|
+
"linear, the default",
|
|
2285
|
+
"radial",
|
|
2286
|
+
"conic"
|
|
2287
|
+
]
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
"name": "$direction",
|
|
2291
|
+
"default": "null",
|
|
2292
|
+
"accepts": [
|
|
2293
|
+
"linear only, in the forms the gradient mixin takes"
|
|
2294
|
+
]
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"name": "$shape",
|
|
2298
|
+
"default": "null",
|
|
2299
|
+
"accepts": [
|
|
2300
|
+
"radial only, circle or ellipse with an optional size"
|
|
2301
|
+
]
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"name": "$position",
|
|
2305
|
+
"default": "null",
|
|
2306
|
+
"accepts": [
|
|
2307
|
+
"radial or conic, a position name or at followed by a position"
|
|
2308
|
+
]
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"name": "$from",
|
|
2312
|
+
"default": "null",
|
|
2313
|
+
"accepts": [
|
|
2314
|
+
"conic only, an angle"
|
|
2315
|
+
]
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"name": "$in",
|
|
2319
|
+
"default": "null",
|
|
2320
|
+
"accepts": [
|
|
2321
|
+
"a colour space, with a hue method for a polar one",
|
|
2322
|
+
"var()"
|
|
2323
|
+
]
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"name": "$repeating",
|
|
2327
|
+
"default": "false",
|
|
2328
|
+
"accepts": [
|
|
2329
|
+
"false, the default",
|
|
2330
|
+
"true"
|
|
2331
|
+
]
|
|
2332
|
+
}
|
|
2333
|
+
],
|
|
2334
|
+
"file": "scss/utilities/_gradient-value.scss",
|
|
2335
|
+
"signature": "gradientValue($colors, $type: linear, $direction: null, $shape: null, $position: null, $from: null, $in: null, $repeating: false)",
|
|
2336
|
+
"summary": "The gradient mixin's gradient as a value, for layering it with an image in one background-image, or using it as a mask-image or border-image. It takes the same arguments and refuses the same input, but cannot write the fallback the mixin writes before a gradient with $in.",
|
|
2337
|
+
"examples": [
|
|
2338
|
+
".a { background-image: gradientValue((rgba(0, 0, 0, 0.75), transparent), $direction: top), url(\"/img/hero.jpg\"); }",
|
|
2339
|
+
".a { mask-image: gradientValue((#000 60%, transparent)); }",
|
|
2340
|
+
".a { border: 4px solid; border-image: gradientValue((red, blue), $direction: right) 1; }"
|
|
2341
|
+
],
|
|
2342
|
+
"rejects": [
|
|
2343
|
+
".a { background-image: gradientValue((red, blue), $direction: sideways); }",
|
|
2344
|
+
".a { background-image: gradientValue((red, blue), $shape: circle); }",
|
|
2345
|
+
".a { background-image: gradientValue((red 10px, blue), conic); }",
|
|
2346
|
+
".a { background-image: gradientValue((red, blue), $in: rgb); }"
|
|
2347
|
+
],
|
|
2348
|
+
"warns": [
|
|
2349
|
+
".a { background-image: gradientValue(red); }"
|
|
2350
|
+
]
|
|
2351
|
+
},
|
|
2189
2352
|
{
|
|
2190
2353
|
"name": "isColor",
|
|
2191
2354
|
"kind": "function",
|