mirror of
https://github.com/less/less.js.git
synced 2026-02-06 04:55:03 -05:00
type-checking stylesheet functions
is-string, is-keyword, is-color, is-number
This commit is contained in:
@@ -30,6 +30,15 @@
|
||||
roundedpx: round(10px / 3);
|
||||
percentage: percentage(10px / 50);
|
||||
color: color("#ff0011");
|
||||
|
||||
.is-a {
|
||||
color: is-color(#ddd);
|
||||
color: is-color(red);
|
||||
color: is-color(rgb(0, 0, 0));
|
||||
keyword: is-keyword(hello);
|
||||
number: is-number(32);
|
||||
string: is-string("hello");
|
||||
}
|
||||
}
|
||||
|
||||
#alpha {
|
||||
|
||||
Reference in New Issue
Block a user