Skip to content

Commit 8e6f890

Browse files
committed
docs: clean up d2 styles
1 parent e8297c6 commit 8e6f890

File tree

1 file changed

+35
-31
lines changed

1 file changed

+35
-31
lines changed

docs/workshop/styles.d2

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
classes: {
2+
container: {
3+
style: {
4+
stroke: "#dedede"
5+
fill: "#f5f5f5"
6+
font-color: "#666666"
7+
font-size: 16
8+
border-radius: 8
9+
}
10+
}
11+
ledger_link: {
12+
style: {
13+
stroke: "#6ABD6A"
14+
}
15+
}
16+
# Ranking Block
217
rb: {
318
style: {
419
stroke: "#6A9BC7"
@@ -28,6 +43,12 @@ classes: {
2843
stroke-dash: 7
2944
}
3045
}
46+
to_rb_arrow: {
47+
style: {
48+
stroke: "#6A9BC7"
49+
}
50+
}
51+
# Endorsement Block
3152
eb: {
3253
style: {
3354
stroke: "#D4A76A"
@@ -47,23 +68,19 @@ classes: {
4768
stroke-dash: 7
4869
}
4970
}
50-
ib: {
71+
to_eb_arrow: {
5172
style: {
52-
stroke: "#D4C76A"
53-
fill: "#FFFACD"
54-
font-color: "#2a2a2a"
55-
font-size: 16
56-
border-radius: 10
73+
stroke: "#D4A76A"
5774
}
5875
}
59-
ib_unconfirmed: {
76+
# Input Block
77+
ib: {
6078
style: {
6179
stroke: "#D4C76A"
62-
fill: "#FFFAE5"
80+
fill: "#FFFACD"
6381
font-color: "#2a2a2a"
6482
font-size: 16
6583
border-radius: 10
66-
stroke-dash: 7
6784
}
6885
}
6986
ib_stacked: {
@@ -76,25 +93,22 @@ classes: {
7693
multiple: true
7794
}
7895
}
79-
ledger_link: {
80-
style: {
81-
stroke: "#6ABD6A"
82-
}
83-
}
84-
container: {
96+
ib_unconfirmed: {
8597
style: {
86-
stroke: "#dedede"
87-
fill: "#f5f5f5"
88-
font-color: "#666666"
98+
stroke: "#D4C76A"
99+
fill: "#FFFAE5"
100+
font-color: "#2a2a2a"
89101
font-size: 16
90-
border-radius: 8
102+
border-radius: 10
103+
stroke-dash: 7
91104
}
92105
}
93-
to_rb_arrow: {
106+
to_ib_arrow: {
94107
style: {
95-
stroke: "#6A9BC7"
108+
stroke: "#D4C76A"
96109
}
97110
}
111+
# Endorsement Certificate
98112
eb_cert: {
99113
style: {
100114
stroke: "#D4A76A"
@@ -104,14 +118,4 @@ classes: {
104118
shape: diamond
105119
}
106120
}
107-
to_eb_arrow: {
108-
style: {
109-
stroke: "#D4A76A"
110-
}
111-
}
112-
to_ib_arrow: {
113-
style: {
114-
stroke: "#D4C76A"
115-
}
116-
}
117121
}

0 commit comments

Comments
 (0)