-
Notifications
You must be signed in to change notification settings - Fork 4
/
xdsmjs.css
320 lines (256 loc) · 4.4 KB
/
xdsmjs.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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
/*
* XDSMjs
* Copyright 2016-2020 Rémi Lafage
*/
.node text {
font-size: medium;
}
.edge text {
font-size: small;
}
/** XDSM v1 ***************************************************/
/* Special hidden first component */
.xdsm .driver {
visibility: hidden;
}
.xdsm .node {
stroke: black;
stroke-width: 1px;
}
/** XDSM v1 */
.xdsm .optimization {
fill: #ccf;
}
.xdsm .lp_optimization {
fill: #ccf;
}
.xdsm .analysis {
fill: #cfc;
}
/* Forward compatibility */
.xdsm .implicit_analysis {
fill: #9fccc9;
}
.xdsm .mdo {
fill: #fcc;
}
/* Forward compatibility */
.xdsm .sub-optimization {
fill: #fcc;
}
.xdsm .function {
fill: #f2ccd9;
}
/* Forward compatibility */
.xdsm .implicit-function {
fill: #f2ccd9;
}
.xdsm .mda {
fill: #ffe5cc;
}
/* Forward compatibility */
.xdsm .group {
fill: #ffe5cc;
}
/* Forward compatibility */
.xdsm .implicit-group {
fill: #ffe5cc;
}
.xdsm .metamodel {
fill: #fffccc;
}
.xdsm .doe {
fill: #fffccc;
}
/* Text Default */
.xdsm text {
fill: black;
stroke: none;
font-family: Arial, sans-serif;
}
/* Title */
.xdsm g.title text {
display: block;
margin: 0.67em 0;
font-size: 1em;
font-weight: bold;
}
.xdsm g.title rect {
fill: none;
}
.xdsm tspan.sub {
font-size: small;
}
.xdsm tspan.sup {
font-size: small;
}
/* Data */
.xdsm .dataInter polygon {
fill: #e5e5e5;
stroke: black;
stroke-width: 1px;
}
.xdsm .dataIO polygon {
fill: #fff;
stroke: black;
stroke-width: 1px;
}
/* Dataflow */
.xdsm g.dataflow {
fill: none;
stroke: grey;
stroke-width: 8px;
}
/* Workflow */
.xdsm g.workflow {
fill: none;
stroke: black;
stroke-width: 2px;
}
/** XDSM v2 ***************************************************/
.xdsm2 .driver {
visibility: hidden;
}
.xdsm2 .node {
stroke: black;
stroke-width: 1px;
}
.xdsm2 .optimization {
fill: #a0cbe8;
}
.xdsm2 .sub-optimization {
fill: #a0cbe8;
}
/* Deprecated: use optimization */
.xdsm2 .lp_optimization {
fill: #a0cbe8;
}
/* Deprecated: use sub-optimization */
.xdsm2 .mdo {
fill: #a0cbe8;
}
.xdsm2 .doe {
fill: #a0cbe8;
}
.xdsm2 .function {
fill: #8cd17d;
}
.xdsm2 .implicit-function {
fill: #ff9d9a;
}
/* Deprecated: use function */
.xdsm2 .analysis {
fill: #8cd17d;
}
.xdsm2 .mda {
fill: #ffbe7d;
}
.xdsm2 .metamodel {
fill: #f1ce63;
}
.xdsm2 .group {
fill: #8cd17d;
}
.xdsm2 .implicit-group {
fill: #ff9d9a;
}
/* Text Default */
.xdsm2 text {
fill: black;
stroke: none;
font-family: Arial, sans-serif;
}
/* Title */
.xdsm2 g.title text {
display: block;
margin: 0.67em 0;
font-size: 1em;
font-weight: bold;
}
.xdsm2 g.title rect {
fill: none;
}
.xdsm2 tspan.sub {
font-size: small;
}
.xdsm2 tspan.sup {
font-size: small;
}
/* Data */
.xdsm2 .dataInter polygon {
fill: #e5e5e5;
stroke: black;
stroke-width: 1px;
}
.xdsm2 .dataIO polygon {
fill: #fff;
stroke: black;
stroke-width: 1px;
}
/* Dataflow */
.xdsm2 g.dataflow {
fill: none;
stroke: grey;
stroke-width: 8px;
}
/* Workflow */
.xdsm2 g.workflow {
fill: none;
stroke: black;
stroke-width: 2px;
}
/* Tooltip */
div.xdsm-tooltip {
position: absolute;
text-align: center;
padding: 10px;
background: lightsteelblue;
border: 0;
border-radius: 8px;
pointer-events: none;
}
/* Info */
div.optpb {
position: absolute;
padding: 10px;
background: #ccf;
border: 0;
border-radius: 8px;
font-size: 150%;
}
sub,
sup {
/* Specified in % so that the sup/sup is the right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position the sup/sup properly, relative to the surrounding text */
position: relative;
/* Note that if you're using Eric Meyer's reset.css, this is already set and you can remove this rule */
vertical-align: baseline;
}
sup {
/* Move the superscripted text up */
top: -0.5em;
}
sub {
/* Move the subscripted text down, but only half as far down as the superscript moved up */
bottom: -0.5em;
}
/* Version button */
label#xdsm-version-label {
margin: 0 5px 0 50px;
font-weight: bolder;
font-size: 24px;
font-family: Arial, sans-serif;
}
select#xdsm-version-toggle {
display: table-cell;
vertical-align: top;
font-weight: bolder;
font-size: 20px;
font-family: Arial, sans-serif;
}
.subxdsm-link:hover {
text-decoration: underline;
}