update components

This commit is contained in:
Luke Pulverenti 2016-02-02 21:12:02 -05:00
parent 2a4b879c21
commit 63664e6c1c
1155 changed files with 62261 additions and 84 deletions

View file

@ -0,0 +1,47 @@
@import url(foo.css);
@media print {}
@media (min-width: 640px) and (min-height: 1000px) {}
@main-color: red;
----------------------------------------------------
[
["atrule", [
["rule", "@import"],
["url", "url(foo.css)"],
["punctuation", ";"]
]],
["atrule", [
["rule", "@media"],
" print"
]],
["punctuation", "{"],
["punctuation", "}"],
["atrule", [
["rule", "@media"],
["punctuation", "("],
["property", "min-width"],
["punctuation", ":"],
" 640px",
["punctuation", ")"],
" and ",
["punctuation", "("],
["property", "min-height"],
["punctuation", ":"],
" 1000px",
["punctuation", ")"]
]],
["punctuation", "{"],
["punctuation", "}"],
["atrule", [
["rule", "@main-color"],
["punctuation", ":"],
" red",
["punctuation", ";"]
]]
]
----------------------------------------------------
Checks for at-rules.
Also checks for LESS variables.

View file

@ -0,0 +1,16 @@
/**/
/* foo */
/* foo
bar */
----------------------------------------------------
[
["comment", "/**/"],
["comment", "/* foo */"],
["comment", "/* foo\r\nbar */"]
]
----------------------------------------------------
Checks for empty comment, single-line comment and multi-line comment.

View file

@ -0,0 +1,35 @@
transform: translate(-50%);
background: rgba(0, 0, 0, 0.2);
filter: opacity(alpha=0);
----------------------------------------------------
[
["property", "transform"],
["punctuation", ":"],
["function", "translate"],
["punctuation", "("],
"-50%",
["punctuation", ")"],
["punctuation", ";"],
["property", "background"],
["punctuation", ":"],
["function", "rgba"],
["punctuation", "("],
"0, 0, 0, 0.2",
["punctuation", ")"],
["punctuation", ";"],
["property", "filter"],
["punctuation", ":"],
["function", "opacity"],
["punctuation", "("],
"alpha=0",
["punctuation", ")"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for functions.

View file

@ -0,0 +1,21 @@
color: red !important;
padding: 10px 20px 30px !important;
----------------------------------------------------
[
["property", "color"],
["punctuation", ":"],
" red ",
["important", "!important"],
["punctuation", ";"],
["property", "padding"],
["punctuation", ":"],
" 10px 20px 30px ",
["important", "!important"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for !important rule.

View file

@ -0,0 +1,24 @@
color: red;
background-color: blue;
-webkit-transform: none;
----------------------------------------------------
[
["property", "color"],
["punctuation", ":"],
" red",
["punctuation", ";"],
["property", "background-color"],
["punctuation", ":"],
" blue",
["punctuation", ";"],
["property", "-webkit-transform"],
["punctuation", ":"],
" none",
["punctuation", ";"]
]
----------------------------------------------------
Checks for properties.

View file

@ -0,0 +1,25 @@
foo{
foo + bar {
foo:first-child:hover {
* {
foo,
bar{
----------------------------------------------------
[
["selector", "foo"],
["punctuation", "{"],
["selector", "foo + bar"],
["punctuation", "{"],
["selector", "foo:first-child:hover"],
["punctuation", "{"],
["selector", "*"],
["punctuation", "{"],
["selector", "foo,\r\nbar"],
["punctuation", "{"]
]
----------------------------------------------------
Checks for single-line and multi-line selectors.

View file

@ -0,0 +1,19 @@
"f\"oo"
'f\'oo'
"foo\
bar"
'foo\
bar'
----------------------------------------------------
[
["string", "\"f\\\"oo\""],
["string", "'f\\'oo'"],
["string", "\"foo\\\r\nbar\""],
["string", "'foo\\\r\nbar'"]
]
----------------------------------------------------
Checks for single-quoted and double-quoted strings.

View file

@ -0,0 +1,21 @@
url(foo.png)
url('foo.png')
url("foo.png")
url('foo\
bar.png')
url("foo\
bar.png")
----------------------------------------------------
[
["url", "url(foo.png)"],
["url", "url('foo.png')"],
["url", "url(\"foo.png\")"],
["url", "url('foo\\\r\nbar.png')"],
["url", "url(\"foo\\\r\nbar.png\")"]
]
----------------------------------------------------
Checks for url(), unquoted, single-quoted and double-quoted.