2018-09-30 22:59:56 +00:00
|
|
|
==========================
|
2018-10-18 16:59:09 +00:00
|
|
|
Function calls
|
2018-09-30 22:59:56 +00:00
|
|
|
==========================
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: rgba(0, 255, 0, 0.5);
|
|
|
|
}
|
2018-10-18 06:14:21 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration
|
|
|
|
(property_name)
|
2018-10-18 16:59:09 +00:00
|
|
|
(call_expression (function_name) (arguments
|
2018-10-18 06:14:21 +00:00
|
|
|
(integer_value)
|
|
|
|
(integer_value)
|
|
|
|
(integer_value)
|
|
|
|
(float_value)))))))
|
2018-10-18 16:59:09 +00:00
|
|
|
|
|
|
|
============================
|
|
|
|
Color literals
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: #fafd04;
|
|
|
|
c: #fafd0401;
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration (property_name) (color_value))
|
|
|
|
(declaration (property_name) (color_value)))))
|
2018-10-23 03:20:36 +00:00
|
|
|
|
2018-10-26 16:37:10 +00:00
|
|
|
============================
|
|
|
|
Numbers
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: 0.5%;
|
|
|
|
c: 5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set (selectors (tag_name)) (block
|
|
|
|
(declaration (property_name) (float_value (unit)))
|
|
|
|
(declaration (property_name) (integer_value (unit))))))
|
|
|
|
|
2018-10-23 03:20:36 +00:00
|
|
|
============================
|
|
|
|
Strings
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: '';
|
|
|
|
c: '\'hi\'';
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration (property_name) (string_value))
|
|
|
|
(declaration (property_name) (string_value)))))
|