Skip to content

Commit df9860b

Browse files
Migrate css and scss to Tree sitter queries (#2853)
1 parent 5d8bb47 commit df9860b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1383
-219
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
* {
2+
width: calc(100% - 50px);
3+
}
4+
---
5+
6+
[Range] = 1:14-1:25
7+
>-----------<
8+
1| width: calc(100% - 50px);
9+
10+
[Domain] = 1:13-1:26
11+
>-------------<
12+
1| width: calc(100% - 50px);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
* {
2+
background: repeating-linear-gradient(red, orange 50px);
3+
}
4+
---
5+
6+
[Range] = 1:40-1:56
7+
>----------------<
8+
1| background: repeating-linear-gradient(red, orange 50px);
9+
10+
[Domain] = 1:39-1:57
11+
>------------------<
12+
1| background: repeating-linear-gradient(red, orange 50px);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
* {
2+
width: calc(100% - 50px);
3+
}
4+
---
5+
6+
[Content] =
7+
[Removal] =
8+
[Domain] = 1:14-1:25
9+
>-----------<
10+
1| width: calc(100% - 50px);
11+
12+
[Insertion delimiter] = ", "
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
* {
2+
background: repeating-linear-gradient(red, orange 50px);
3+
}
4+
---
5+
6+
[#1 Content] =
7+
[#1 Domain] = 1:40-1:43
8+
>---<
9+
1| background: repeating-linear-gradient(red, orange 50px);
10+
11+
[#1 Removal] = 1:40-1:45
12+
>-----<
13+
1| background: repeating-linear-gradient(red, orange 50px);
14+
15+
[#1 Trailing delimiter] = 1:43-1:45
16+
>--<
17+
1| background: repeating-linear-gradient(red, orange 50px);
18+
19+
[#1 Insertion delimiter] = ", "
20+
21+
22+
[#2 Content] =
23+
[#2 Domain] = 1:45-1:56
24+
>-----------<
25+
1| background: repeating-linear-gradient(red, orange 50px);
26+
27+
[#2 Removal] = 1:43-1:56
28+
>-------------<
29+
1| background: repeating-linear-gradient(red, orange 50px);
30+
31+
[#2 Leading delimiter] = 1:43-1:45
32+
>--<
33+
1| background: repeating-linear-gradient(red, orange 50px);
34+
35+
[#2 Insertion delimiter] = ", "
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
* {
2+
clip-path: ellipse(115px 55px at 50% 40%);
3+
}
4+
---
5+
6+
[#1 Content] =
7+
[#1 Domain] = 1:21-1:31
8+
>----------<
9+
1| clip-path: ellipse(115px 55px at 50% 40%);
10+
11+
[#1 Removal] = 1:21-1:35
12+
>--------------<
13+
1| clip-path: ellipse(115px 55px at 50% 40%);
14+
15+
[#1 Trailing delimiter] = 1:31-1:35
16+
>----<
17+
1| clip-path: ellipse(115px 55px at 50% 40%);
18+
19+
[#1 Insertion delimiter] = ", "
20+
21+
22+
[#2 Content] =
23+
[#2 Domain] = 1:35-1:42
24+
>-------<
25+
1| clip-path: ellipse(115px 55px at 50% 40%);
26+
27+
[#2 Removal] = 1:31-1:42
28+
>-----------<
29+
1| clip-path: ellipse(115px 55px at 50% 40%);
30+
31+
[#2 Leading delimiter] = 1:31-1:35
32+
>----<
33+
1| clip-path: ellipse(115px 55px at 50% 40%);
34+
35+
[#2 Insertion delimiter] = ", "
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
* {
2+
clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
3+
}
4+
---
5+
6+
[#1 Content] =
7+
[#1 Domain] = 1:21-1:27
8+
>------<
9+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
10+
11+
[#1 Removal] = 1:21-1:29
12+
>--------<
13+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
14+
15+
[#1 Trailing delimiter] = 1:27-1:29
16+
>--<
17+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
18+
19+
[#1 Insertion delimiter] = ", "
20+
21+
22+
[#2 Content] =
23+
[#2 Domain] = 1:29-1:36
24+
>-------<
25+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
26+
27+
[#2 Removal] = 1:29-1:38
28+
>---------<
29+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
30+
31+
[#2 Leading delimiter] = 1:27-1:29
32+
>--<
33+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
34+
35+
[#2 Trailing delimiter] = 1:36-1:38
36+
>--<
37+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
38+
39+
[#2 Insertion delimiter] = ", "
40+
41+
42+
[#3 Content] =
43+
[#3 Domain] = 1:38-1:46
44+
>--------<
45+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
46+
47+
[#3 Removal] = 1:36-1:46
48+
>----------<
49+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
50+
51+
[#3 Leading delimiter] = 1:36-1:38
52+
>--<
53+
1| clip-path: polygon(50% 0%, 60% 40%, 100% 50%);
54+
55+
[#3 Insertion delimiter] = ", "
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
* {
2+
color: red;
3+
padding: 1rem;
4+
}
5+
---
6+
7+
[Range] = 1:4-2:18
8+
>-----------
9+
1| color: red;
10+
2| padding: 1rem;
11+
------------------<
12+
13+
[Domain] = 0:3-3:0
14+
>
15+
0| * {
16+
1| color: red;
17+
2| padding: 1rem;
18+
3| }
19+
<
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
* {
2+
color: red;
3+
padding: 1rem;
4+
}
5+
---
6+
7+
[#1 Content] =
8+
[#1 Domain] = 1:4-1:15
9+
>-----------<
10+
1| color: red;
11+
12+
[#1 Removal] = 1:0-2:0
13+
>---------------
14+
1| color: red;
15+
2| padding: 1rem;
16+
<
17+
18+
[#1 Leading delimiter] = 1:0-1:4
19+
>----<
20+
1| color: red;
21+
22+
[#1 Insertion delimiter] = "\n"
23+
24+
25+
[#2 Content] =
26+
[#2 Domain] = 1:4-2:18
27+
>-----------
28+
1| color: red;
29+
2| padding: 1rem;
30+
------------------<
31+
32+
[#2 Removal] = 1:0-3:0
33+
>---------------
34+
1| color: red;
35+
2| padding: 1rem;
36+
3| }
37+
<
38+
39+
[#2 Leading delimiter] = 1:0-1:4
40+
>----<
41+
1| color: red;
42+
43+
[#2 Insertion delimiter] = ",\n"
44+
45+
46+
[#3 Content] =
47+
[#3 Domain] = 2:4-2:18
48+
>--------------<
49+
2| padding: 1rem;
50+
51+
[#3 Removal] = 2:0-3:0
52+
>------------------
53+
2| padding: 1rem;
54+
3| }
55+
<
56+
57+
[#3 Leading delimiter] = 2:0-2:4
58+
>----<
59+
2| padding: 1rem;
60+
61+
[#3 Insertion delimiter] = "\n"
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
/*
2-
foo
3-
bar
2+
Hello world
43
*/
54
---
65

76
[Content] =
87
[Removal] =
9-
[Domain] = 0:0-3:2
8+
[Domain] = 0:0-2:2
109
>--
1110
0| /*
12-
1| foo
13-
2| bar
14-
3| */
11+
1| Hello world
12+
2| */
1513
--<
1614

1715
[Insertion delimiter] = "\n"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
* {
2+
transform: translate(-50%, -50%);
3+
}
4+
---
5+
6+
[Content] =
7+
[Domain] = 1:15-1:36
8+
>---------------------<
9+
1| transform: translate(-50%, -50%);
10+
11+
[Removal] = 1:14-1:36
12+
>----------------------<
13+
1| transform: translate(-50%, -50%);
14+
15+
[Leading delimiter] = 1:14-1:15
16+
>-<
17+
1| transform: translate(-50%, -50%);
18+
19+
[Insertion delimiter] = " "

0 commit comments

Comments
 (0)