forked from Touffy/JSSCxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCxmlView.css
216 lines (207 loc) · 3.82 KB
/
SCxmlView.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
@-webkit-keyframes exit{
from{
outline: 0 solid rgba(255,0,0,0.5);
}
to{
outline: 3pt solid rgba(255,0,0,0.5);
}
}
@-webkit-keyframes enter{
from{
outline: 0 solid rgba(0,255,0,0.7);
}
to{
outline: 3pt solid rgba(0,255,0,0.7);
}
}
@-webkit-keyframes burn{
from{
line-height: 11pt;
text-shadow: 0px 0px 1px #8ee9ff;
}
15%{
color: rgba(255,238,76,1);
text-shadow: 0px 0px 3px #ffb33f;
}
50%{
color: rgba(0,0,0,0);
text-shadow: 0px 0px 8px rgba(177,51,0,0.64);
}
85%{
line-height: 2pt;
color: rgba(0,0,0,0);
opacity: 1.0;
text-shadow: 0px -7px 20px rgba(0,0,0,0.42);
}
to{
line-height: 0;
color: rgba(0,0,0,0);
opacity: 0;
text-shadow: 0px -10px 25px rgba(0,0,0,0.42);
}
}
.SCxmlDebug{
width: 100%;
line-height: 12pt;
}
.SCxmlDebug .sc{
min-height: 4em;
}
.SCxmlDebug td{
vertical-align: top;
border: 0 none;
overflow-x: hidden;
}
.SCxmlDebug td+td{ border-left: 1px solid grey; }
.SCxmlDebug td+td+td{
width: auto;
border-left: 0 none;
overflow-x: visible;
}
.SCxmlDebug td h2{
font-size: 12pt;
margin: 0;
font-weight: normal;
text-align: center;
}
.SCxmlDebug input[type=submit], .SCxmlDebug label{
font-size: 12pt;
margin: 0 4pt;
}
/* SCXML element rendering */
.final, .history, .parallel, .state{
background-color: white;
float: left;
border: 1px solid grey;
padding: 4pt;
margin: 6pt;
box-shadow: 0px 1pt 3pt grey;
min-width: 3em;
width: auto;
transition: background-color 0.7s ease-out 0;
outline: 0 solid white;
}
invoke{
color: #ce45d0;
display: block;
margin: 0;
}
.sc h4{
display: inline;
font-size: 10pt;
margin: 0;
}
.transition{
clear: left;
opacity: 0.5;
display: block;
border-bottom: 2px solid #0f3a98;
}
.transition:hover, .transition.on{
border-color: #179fff;
background: linear-gradient(rgba(255,255,255,0) 30%, #179fff 100%);
}
.transition.enabled{
border-color: green;
background: linear-gradient(rgba(255,255,255,0) 30%, green 100%);
}
.transition.enabled:hover, .transition.on.enabled{
border-color: lime;
background: linear-gradient(rgba(255,255,255,0) 30%, lime 100%);
}
.transition code + * {
margin-left: 4pt;
}
.transition > summary h4{
font-weight: normal;
}
.transition > summary h4:before{
content: "on ";
color:#708c61;
}
.transition span{
font-size: 10pt;
}
.transition code:before{
content: "if ";
color: #7d0000;
}
.transition span:before, .transition span+code:before{
content: "to ";
color: #00497e;
}
.sc .empty{
font-style: italic;
}
.transition > summary h4.empty:before{
content: "eventless";
}
.transition code.empty:before{
content: "always";
}
.transition span.empty:before, .transition span+code.empty:before{
content: "targetless";
}
details.final{ border-color: red; }
details.parallel{
border: 3px double grey;
padding: 2pt;
}
details.active{
background-color: rgba(200,255,0,0.32);
-webkit-animation: enter 0.3s linear 0 3 alternate;
}
details.active > .transition{
opacity: 1;
}
details.exited{
-webkit-animation: exit 0.3s linear 0 3 alternate;
}
details.enabled{
border-color: green;
}
/* events */
.SCxmlDebug ol{
padding-left: 1.4em;
}
.SCxmlDebug li.error{
color: red;
}
.SCxmlDebug li.burn{
-webkit-animation: burn 1.3s linear;
display: block;
}
/* .transition arrows */
svg{
position: absolute;
pointer-events: none;
}
#arrow{ fill: #0f3a98; }
#arrowOn{ fill: #179fff; }
#arrowOnEnabled{ fill: lime; }
#arrowIni{ fill: #ff14e3; }
scxml path{
pointer-events: visibleStroke;
fill: none;
stroke: #0f3a98;
stroke-width: 2;
marker-end: url(#arrow);
}
scxml path:hover, scxml path.on{
marker-end: url(#arrowOn);
stroke: #179fff;
}
scxml path.enabled{
stroke: green;
}
scxml path.enabled:hover, scxml path.on.enabled{
marker-end: url(#arrowOnEnabled);
stroke: lime;
}
scxml path.ini, scxml path.ini:hover{
pointer-events: visibleStroke;
fill: none;
stroke: #ff14e3;
stroke-width: 2;
marker-end: url(#arrowIni);
}