yass-css 0.1.0-aarch64-linux → 0.3.0-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ require "yass"
2
+
3
+ sheet = Yass::Parser.parse(<<~CSS)
4
+ h1 {
5
+ align-items: center;
6
+ display: flex;
7
+ position: absolute;
8
+ }
9
+
10
+ .left {
11
+ float: left;
12
+ }
13
+
14
+ .right {
15
+ float: right;
16
+ }
17
+
18
+ #thing {
19
+ visibility: hidden;
20
+ }
21
+ CSS
22
+
23
+ class MyVisitor < Yass::Visitor
24
+ def visit_selector_local_name(node)
25
+ # prints "h1"
26
+ puts node.value
27
+ end
28
+
29
+ def visit_selector_klass(node)
30
+ # prints "left" and "right"
31
+ puts node.value
32
+ end
33
+
34
+ def visit_selector_id(node)
35
+ # prints "thing"
36
+ puts node.value
37
+ end
38
+ end
39
+
40
+ visitor = MyVisitor.new
41
+ visitor.visit(sheet)
Binary file
Binary file
data/lib/yass/3.2/yass.so CHANGED
Binary file
data/lib/yass/3.3/yass.so CHANGED
Binary file
data/lib/yass/3.4/yass.so CHANGED
Binary file
data/lib/yass/4.0/yass.so CHANGED
Binary file