-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathStyles.fusion
102 lines (89 loc) · 2.43 KB
/
Styles.fusion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
prototype(Shel.CriticalCSS:Styles).@class = 'Shel\\CriticalCSS\\FusionObjects\\StylesImplementation'
prototype(Neos.Fusion:DataStructure).@class = 'Neos\\Fusion\\FusionObjects\\DataStructureImplementation'
prototype(Neos.Fusion:TestRenderer).@class = 'Neos\\Fusion\\Tests\\Functional\\View\\Fixtures\\TestRenderer'
styles.basic = Shel.CriticalCSS:Styles {
@content = '<div>foo</div>'
color = 'green'
font-size = '12px'
}
styles.hashCase1 = Shel.CriticalCSS:Styles {
@content = '<div>foo</div>'
color = 'blue'
}
styles.hashCase2 = Shel.CriticalCSS:Styles {
@content = '<div>foo</div>'
color = 'green'
}
styles.eelExpressions = Shel.CriticalCSS:Styles {
@content = '<div>foo</div>'
font-size = ${5 + 2 + 'px'}
}
styles.nested = Shel.CriticalCSS:Styles {
@content = '<div>foo <strong>bar</strong></div>'
color = 'blue'
strong = Neos.Fusion:DataStructure {
font-weight = 'bold'
}
}
styles.nestedWithoutDataStructures = Shel.CriticalCSS:Styles {
@content = '<div>foo <strong>bar <em>pony</em></strong></div>'
color = 'blue'
strong {
font-weight = 'bold'
em {
color = 'pink'
}
}
}
styles.nestedEvaluation = Shel.CriticalCSS:Styles {
@content = '<div>foo <strong>bar <em>pony</em></strong></div>'
color = 'blue'
strong {
font-weight = 'bold'
em = Neos.Fusion:DataStructure {
margin-top = ${5 * 10 + 'px'}
}
}
}
styles.selector = Shel.CriticalCSS:Styles {
@content = '<html><body>foo</body></html>'
@selector = 'body'
font-family = 'Comic Sans'
}
styles.mediaQuery = Shel.CriticalCSS:Styles {
@content = '<div>foo</div>'
color = 'blue'
'@media all' {
color = 'green'
}
}
styles.mediaQueryWithNesting = Shel.CriticalCSS:Styles {
@content = '<div>foo <strong>bar</strong></div>'
color = 'blue'
'@media all' {
color = 'green'
strong {
color = 'yellow'
}
}
}
styles.nestedMediaQueries = Shel.CriticalCSS:Styles {
@content = '<div>foo <strong>bar</strong></div>'
'@media print' {
strong {
display = 'none'
}
'@media (max-width:12cm)' {
strong {
display = 'block'
}
}
}
}
styles.supportsQuery = Shel.CriticalCSS:Styles {
@content = '<div>foo</div>'
display = 'block'
'@supports (display:flex)' {
display = 'flex'
}
}