Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/lessc/functions.lint-test
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | #built-in { | ||||
| replace-keyword: replace(baz-1, "1", "2"); | replace-keyword: replace(baz-1, "1", "2"); | ||||
| format: %("rgb(%d, %d, %d)", @r, 128, 64); | format: %("rgb(%d, %d, %d)", @r, 128, 64); | ||||
| format-string: %("hello %s", "world"); | format-string: %("hello %s", "world"); | ||||
| format-multiple: %("hello %s %d", "earth", 2); | format-multiple: %("hello %s %d", "earth", 2); | ||||
| format-url-encode: %("red is %A", #ff0000); | format-url-encode: %("red is %A", #ff0000); | ||||
| format-single-quoted: %('hello %s', "single world"); | format-single-quoted: %('hello %s', "single world"); | ||||
| format-escaped-string: %(~"hello %s", "escaped world"); | format-escaped-string: %(~"hello %s", "escaped world"); | ||||
| eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64)); | eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64)); | ||||
| unitless: unit(12px); | unitless: unit(12px); | ||||
| unit: unit((13px + 1px), em); | unit: unit((13px + 1px), em); | ||||
| unitpercentage: unit(100, %); | unitpercentage: unit(100, %); | ||||
| get-unit: get-unit(10px); | get-unit: get-unit(10px); | ||||
| get-unit-empty: get-unit(10); | get-unit-empty: get-unit(10); | ||||
| hue: hue(hsl(98, 12%, 95%)); | hue: hue(hsl(98, 12%, 95%)); | ||||
| saturation: saturation(hsl(98, 12%, 95%)); | saturation: saturation(hsl(98, 12%, 95%)); | ||||
| lightness: lightness(hsl(98, 12%, 95%)); | lightness: lightness(hsl(98, 12%, 95%)); | ||||
| hsvhue: hsvhue(hsv(98, 12%, 95%)); | hsvhue: hsvhue(hsv(98, 12%, 95%)); | ||||
| hsvsaturation: hsvsaturation(hsv(98, 12%, 95%)); | hsvsaturation: hsvsaturation(hsv(98, 12%, 95%)); | ||||
| Show All 35 Lines | #built-in { | ||||
| tint-negative: tint(#777777, -13%); | tint-negative: tint(#777777, -13%); | ||||
| shade: shade(#777777, 13); | shade: shade(#777777, 13); | ||||
| shade-full: shade(#777777, 100); | shade-full: shade(#777777, 100); | ||||
| shade-percent: shade(#777777, 13%); | shade-percent: shade(#777777, 13%); | ||||
| shade-negative: shade(#777777, -13%); | shade-negative: shade(#777777, -13%); | ||||
| fade-out: fadeOut(red, 5%); // support fadeOut and fadeout | fade-out: fadeOut(red, 5%); // support fadeOut and fadeout | ||||
| fade-in: fadein(fadeout(red, 10%), 5%); | fade-in: fadein(fadeout(red, 10%), 5%); | ||||
| hsv: hsv(5, 50%, 30%); | hsv: hsv(5, 50%, 30%); | ||||
| hsva: hsva(3, 50%, 30%, 0.2); | hsva: hsva(3, 50%, 30%, 0.2); | ||||
| mix: mix(#ff0000, #ffff00, 80); | mix: mix(#ff0000, #ffff00, 80); | ||||
| mix-0: mix(#ff0000, #ffff00, 0); | mix-0: mix(#ff0000, #ffff00, 0); | ||||
| mix-100: mix(#ff0000, #ffff00, 100); | mix-100: mix(#ff0000, #ffff00, 100); | ||||
| mix-weightless: mix(#ff0000, #ffff00); | mix-weightless: mix(#ff0000, #ffff00); | ||||
| mixt: mix(#ff0000, transparent); | mixt: mix(#ff0000, transparent); | ||||
| Show All 40 Lines | |||||