gdritter repos dogs / f7bc22d
Add build support for the extra items Getty Ritter 5 years ago
2 changed file(s) with 26 addition(s) and 8 deletion(s). Collapse all Expand all
77 sed -i -e 's/height=[^>]*/height="1em"/g' $@
88 sed -i -e 's/width=[^>]*/width="1em"/g' $@
99
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
1111 bin/b64-payload \
1212 --raleway=/usr/share/fonts/TTF/Raleway-Medium.ttf \
1313 --trait-icon=build/icon-heart.svg \
1414 --relationship-icon=build/icon-relationship.svg \
15 --object-icon=build/icon-object.svg \
16 --stat-icon=build/icon-stat.svg \
1517 >build/payload.json
1618
1719 build/template.html: txt/template.mustache build/payload.json
5656 }
5757 p { margin-left: 20pt; margin-right: 20pt; }
5858 a { text-decoration: none; color: #822; }
59 a[href="#background"]::after {
59 a[href="#backgrounds"]::after {
6060 content: "Background";
6161 }
62 a[href="#trait"]::before {
62
63 a[href="#traits"]::before {
6364 content: url(data:image/svg+xml;base64,{{trait-icon}});
6465 }
65 a[href="#trait"]::after {
66 content: " Trait";
66 a[href="#traits"]::after {
67 content: "Trait";
6768 }
68 a[href="#relationship"]::before {
69
70 a[href="#relationships"]::before {
6971 content: url(data:image/svg+xml;base64,{{relationship-icon}});
7072 }
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";
7389 }
7490 </style>
7591 </head>