-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.css
164 lines (117 loc) · 3.19 KB
/
example.css
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
:root{
--mycolor:yellow;
--myAngle:45deg;
}
.clr-red {
color: #FFDDDD;
}
.bg-blue {
background-color:#1133aa;
}
.gekanteld {
transform:rotate(30deg);
}
.my-box EXTENDS .clr-red AND .bg-blue AND .gekanteld {
border: 2px solid black;
padding:3px;
}
.my-dialog EXTENDS .my-box {
font-size: 1em;
position:absolute;
top: 50%;
left:50%;
}
.dlg APPLIES my-dialog {}
.dlg APPLIES [key="value"] {}
#btn1 ONCLICK + buttonclicked {} /*add substate */
#btn2 ONCLICK ~ buttonclicked {} /*delete substate*/
#btn2a ONCLICK -buttonclicked {} /*delete state*/
#btn3 ONCLICK btn3clicked[data-value] {}
#btn4 ONCLICK load[data-value] {}
#btn5 ONCLICK > alt_sub_state {}
#btn7 ONCLICK .allway_add_state {} /*always add thr state string to the path*/
#btn8 ONCLICK #absolute_state {}
#btn9 ONCLICK ~ * {}
#btn10 ONCLICK > .alt_sub_state {/*toggle last state*/}
#btn11 ONCLICK :empty [void="alert('hoi')"] {} /*do some js function */
#mytext WHEN buttonclicked *{
background-color:var(--mycolor);
}
#mycheck WHEN * buttonclicked *{
transform:rotate(var(--myAngle));
}
#dlg1 WHEN btn3clicked[data-value]{
content:"'${data-value}'";
background-color: red;
}
#myrange ONCHANGE rotate[angle="`${value}deg`"][bkgcolor="`rgb(${value},0,${value})`" ] {}
#dlg1{
--angle:45deg;
--bgcolor:#FFFFFF;
}
#dlg1 WHEN rotate [bgcolor="'${bkgcolor}'"]{
transform:rotate(var(--angle));
background-color:var(--bgcolor);
}
#angle WHEN rotate[value]{
content:'${value}';
}
nav>ul li ONCLICK navigeer[link] {}
nav>ul li{
display:inline;
border:1px solid black;
margin:3px;
padding:3px;
}
main>article WHEN navigeer * [link][test="'${link}'"] [bgcolor="new Promise( function(res, rej) { window.setTimeout( function(){ res('lightblue');}, 2000); }) "] {
content:url(`${link}.html`);
background-color: var(--bgcolor,pink);
}
main>article {
min-width:80vw;
min-height:30vh;
border:1px solid black;
}
main>article WHEN navigeer * [link] WHEN V{
background-color: green;
}
simple-component COMPONENT hello {
display:block;
width:150px;
padding:0px;
overflow:hidden;
content:"'Hello world'"
}
date-component COMPONENT newDate [templateId="date-component"] {
display:block;
width:150px;
padding:0px;
overflow:hidden;
/* content:"<input name='day'><input name='month'><input name='year'>";*/
}
time-component COMPONENT newTime [templateUrl="time-component.html"] {
display:inline-block;
width:150px;
padding:0px;
overflow:hidden;
/* content:"<input name='day'><input name='month'><input name='year'>";*/
}
div[sizing]{
background-color: red;
width:50%;
height:30px;
content:"`a long sentence to show how the SIZE keyword can be used`";
white-space:nowrap;
overflow-x: hidden;
}
div[sizing] SIZE elm.width > elm.widthFor[text="A long text demonstrating the SIZE keyword"] {
content:"`A long text demonstrating the SIZE keyword`";
}
div[sizing] SIZE elm.scrollWidth > elm.width {
content:"`Short text`";
}
select[name="gender"]{
content:"'<option>male</option><option>female</option>'";
}
form[name="register"] [name] MODEL person{
}