Add build support for the extra items
Getty Ritter
5 years ago
7 | 7 |
sed -i -e 's/height=[^>]*/height="1em"/g' $@
|
8 | 8 |
sed -i -e 's/width=[^>]*/width="1em"/g' $@
|
9 | 9 |
|
10 | |
build/payload.json: build/icon-heart.svg build/icon-relationship.svg
|
| 10 |
build/payload.json: build/icon-heart.svg build/icon-relationship.svg build/icon-object.svg build/icon-stat.svg
|
11 | 11 |
bin/b64-payload \
|
12 | 12 |
--raleway=/usr/share/fonts/TTF/Raleway-Medium.ttf \
|
13 | 13 |
--trait-icon=build/icon-heart.svg \
|
14 | 14 |
--relationship-icon=build/icon-relationship.svg \
|
| 15 |
--object-icon=build/icon-object.svg \
|
| 16 |
--stat-icon=build/icon-stat.svg \
|
15 | 17 |
>build/payload.json
|
16 | 18 |
|
17 | 19 |
build/template.html: txt/template.mustache build/payload.json
|
56 | 56 |
}
|
57 | 57 |
p { margin-left: 20pt; margin-right: 20pt; }
|
58 | 58 |
a { text-decoration: none; color: #822; }
|
59 | |
a[href="#background"]::after {
|
| 59 |
a[href="#backgrounds"]::after {
|
60 | 60 |
content: "Background";
|
61 | 61 |
}
|
62 | |
a[href="#trait"]::before {
|
| 62 |
|
| 63 |
a[href="#traits"]::before {
|
63 | 64 |
content: url(data:image/svg+xml;base64,{{trait-icon}});
|
64 | 65 |
}
|
65 | |
a[href="#trait"]::after {
|
66 | |
content: " Trait";
|
| 66 |
a[href="#traits"]::after {
|
| 67 |
content: "Trait";
|
67 | 68 |
}
|
68 | |
a[href="#relationship"]::before {
|
| 69 |
|
| 70 |
a[href="#relationships"]::before {
|
69 | 71 |
content: url(data:image/svg+xml;base64,{{relationship-icon}});
|
70 | 72 |
}
|
71 | |
a[href="#relationship"]::after {
|
72 | |
content: " Relationship";
|
| 73 |
a[href="#relationships"]::after {
|
| 74 |
content: "Relationship";
|
| 75 |
}
|
| 76 |
|
| 77 |
a[href="#objects"]::before {
|
| 78 |
content: url(data:image/svg+xml;base64,{{object-icon}});
|
| 79 |
}
|
| 80 |
a[href="#objects"]::after {
|
| 81 |
content: "Object";
|
| 82 |
}
|
| 83 |
|
| 84 |
a[href="#stats"]::before {
|
| 85 |
content: url(data:image/svg+xml;base64,{{stat-icon}});
|
| 86 |
}
|
| 87 |
a[href="#stats"]::after {
|
| 88 |
content: "Stat";
|
73 | 89 |
}
|
74 | 90 |
</style>
|
75 | 91 |
</head>
|