Skip to content

Commit c8c9ea1

Browse files
authored
Merge pull request #150 from arrowtype/improve-footer
Adjust footer links to repo to be more user-friendly
2 parents cd9b460 + eab0649 commit c8c9ea1

File tree

1 file changed

+94
-19
lines changed

1 file changed

+94
-19
lines changed

src/popup.html

Lines changed: 94 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
<button type="button" id="addFont" class="add-font button-flex">
1818
<span>
1919
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
20-
<g fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-width="2">
20+
<g
21+
fill="none"
22+
fill-rule="evenodd"
23+
stroke-linecap="round"
24+
stroke-width="2"
25+
>
2126
<path d="M2,8 L14,8" />
2227
<path d="M2,8 L14,8" transform="rotate(90 8 8)" />
2328
</g>
@@ -31,19 +36,36 @@
3136
<form id="fontsForm">
3237
<div id="usedFonts"></div>
3338
<div class="controls">
34-
<button type="button" id="showBlacklist" class="button-flex show-blacklist">
39+
<button
40+
type="button"
41+
id="showBlacklist"
42+
class="button-flex show-blacklist"
43+
>
3544
<span>
36-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
37-
<g fill="none" fill-rule="evenodd" stroke-linecap="round">
38-
<path stroke-width="2" d="M6 1L4 15M12 1L10 15M2 5L14 5M2 11L14 11" />
45+
<svg
46+
xmlns="http://www.w3.org/2000/svg"
47+
viewBox="0 0 16 16"
48+
>
49+
<g
50+
fill="none"
51+
fill-rule="evenodd"
52+
stroke-linecap="round"
53+
>
54+
<path
55+
stroke-width="2"
56+
d="M6 1L4 15M12 1L10 15M2 5L14 5M2 11L14 11"
57+
/>
3958
</g>
4059
</svg>
4160
Ignore...
4261
</span>
4362
</button>
4463
<button type="button" class="button-flex full-reset">
4564
<span>
46-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
65+
<svg
66+
xmlns="http://www.w3.org/2000/svg"
67+
viewBox="0 0 16 16"
68+
>
4769
<path
4870
fill="none"
4971
stroke-linecap="round"
@@ -56,15 +78,26 @@
5678
</button>
5779
</div>
5880
<div class="blacklist">
59-
<span class="all-caps">Don't apply fonts to these selectors:</span>
81+
<span class="all-caps"
82+
>Don't apply fonts to these selectors:</span
83+
>
6084
<textarea rows="3" name="blacklist"></textarea>
6185
</div>
6286
</form>
6387
</main>
6488

6589
<footer>
66-
<a href="https://github.com/arrowtype/type-x/graphs/contributors" target="_blank">View Contributors</a>
67-
<a href="https://github.com/arrowtype/type-x" target="_blank" class="muted-link">Source on GitHub</a>
90+
<a
91+
href="https://github.com/arrowtype/type-x/blob/main/README.md"
92+
target="_blank"
93+
>How to use Type-X</a
94+
>
95+
<a
96+
href="https://github.com/arrowtype/type-x/issues"
97+
target="_blank"
98+
class="muted-link"
99+
>Submit Feedback</a
100+
>
68101
</footer>
69102

70103
<!-- Template: -->
@@ -76,8 +109,16 @@
76109
<span class="font-name-title-container">
77110
<span class="font-name-title"></span>
78111
<span class="font-name-instance"></span>
79-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
80-
<path fill="none" stroke-linecap="round" stroke-width="2" d="M11 8L6 3M6 13L11 8" />
112+
<svg
113+
xmlns="http://www.w3.org/2000/svg"
114+
viewBox="0 0 16 16"
115+
>
116+
<path
117+
fill="none"
118+
stroke-linecap="round"
119+
stroke-width="2"
120+
d="M11 8L6 3M6 13L11 8"
121+
/>
81122
</svg>
82123
</span>
83124
</button>
@@ -86,15 +127,29 @@
86127
<input type="hidden" name="id" value="" />
87128
<div class="select-font">
88129
<div class="select-font-dropdowns">
89-
<select name="file" class="font-file-select"></select>
130+
<select
131+
name="file"
132+
class="font-file-select"
133+
></select>
90134
<div class="variable-instances"></div>
91135
</div>
92136

93137
<label class="select-font-button">
94-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
95-
<g fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-width="2">
138+
<svg
139+
xmlns="http://www.w3.org/2000/svg"
140+
viewBox="0 0 16 16"
141+
>
142+
<g
143+
fill="none"
144+
fill-rule="evenodd"
145+
stroke-linecap="round"
146+
stroke-width="2"
147+
>
96148
<path d="M3,14 L13,14" />
97-
<path d="M4,6 L12,6" transform="rotate(90 8 6)" />
149+
<path
150+
d="M4,6 L12,6"
151+
transform="rotate(90 8 6)"
152+
/>
98153
<path d="M3 7L8 2M8 2L13 7" />
99154
</g>
100155
</svg>
@@ -121,7 +176,10 @@
121176
</button>
122177
<button type="button" class="button-flex delete-font">
123178
<span>
124-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
179+
<svg
180+
xmlns="http://www.w3.org/2000/svg"
181+
viewBox="0 0 16 16"
182+
>
125183
<g
126184
fill="none"
127185
fill-rule="evenodd"
@@ -131,7 +189,12 @@
131189
>
132190
<g class="lid">
133191
<path d="M3.5,4 L12.5,4" />
134-
<rect width="2" height="2" x="7" y="2" />
192+
<rect
193+
width="2"
194+
height="2"
195+
x="7"
196+
y="2"
197+
/>
135198
</g>
136199
<polygon points="5 7 11 7 11 14 5 14" />
137200
</g>
@@ -140,15 +203,27 @@
140203
</span>
141204
</button>
142205
</div>
143-
<textarea rows="1" name="fallback" class="fallback-fonts"></textarea>
206+
<textarea
207+
rows="1"
208+
name="fallback"
209+
class="fallback-fonts"
210+
></textarea>
144211
</div>
145212
</fieldset>
146213
</template>
147214

148215
<template id="variableSlider">
149216
<div class="variable-slider">
150217
<label for="slider-label"></label>
151-
<input type="range" name="" min="" max="" value="" data-name="" step=".01" />
218+
<input
219+
type="range"
220+
name=""
221+
min=""
222+
max=""
223+
value=""
224+
data-name=""
225+
step=".01"
226+
/>
152227
<span class="slider-value"></span>
153228
</div>
154229
</template>

0 commit comments

Comments
 (0)