-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate-icon.html
72 lines (72 loc) · 3.69 KB
/
state-icon.html
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
<link rel="import" href="../polymer/polymer.html" />
<dom-module id="state-icon">
<template>
<style>
.stateface:before { font-family: StateFaceRegular; margin-right: 5px; }
.stateface-replace { text-indent: -999em; display: inline-block; position: relative; min-width: 1em; }
.stateface-replace:before { position: absolute; left: 0; margin-top: -10px; text-indent: 0; }
.stateface-AK:before { content: "A"; }
.stateface-AL:before { content: "B"; }
.stateface-AR:before { content: "C"; }
.stateface-AZ:before { content: "D"; }
.stateface-CA:before { content: "E"; }
.stateface-CO:before { content: "F"; }
.stateface-CT:before { content: "G"; }
.stateface-DC:before { content: "y"; }
.stateface-DE:before { content: "H"; }
.stateface-FL:before { content: "I"; }
.stateface-GA:before { content: "J"; }
.stateface-HI:before { content: "K"; }
.stateface-IA:before { content: "L"; }
.stateface-ID:before { content: "M"; }
.stateface-IL:before { content: "N"; }
.stateface-IN:before { content: "O"; }
.stateface-KS:before { content: "P"; }
.stateface-KY:before { content: "Q"; }
.stateface-LA:before { content: "R"; }
.stateface-MA:before { content: "S"; }
.stateface-MD:before { content: "T"; }
.stateface-ME:before { content: "U"; }
.stateface-MI:before { content: "V"; }
.stateface-MN:before { content: "W"; }
.stateface-MO:before { content: "X"; }
.stateface-MS:before { content: "Y"; }
.stateface-MT:before { content: "Z"; }
.stateface-NC:before { content: "a"; }
.stateface-ND:before { content: "b"; }
.stateface-NE:before { content: "c"; }
.stateface-NH:before { content: "d"; }
.stateface-NJ:before { content: "e"; }
.stateface-NM:before { content: "f"; }
.stateface-NV:before { content: "g"; }
.stateface-NY:before { content: "h"; }
.stateface-OH:before { content: "i"; }
.stateface-OK:before { content: "j"; }
.stateface-OR:before { content: "k"; }
.stateface-PA:before { content: "l"; }
.stateface-RI:before { content: "m"; }
.stateface-SC:before { content: "n"; }
.stateface-SD:before { content: "o"; }
.stateface-TN:before { content: "p"; }
.stateface-TX:before { content: "q"; }
.stateface-US:before { content: "z"; }
.stateface-UT:before { content: "r"; }
.stateface-VA:before { content: "s"; }
.stateface-VT:before { content: "t"; }
.stateface-WA:before { content: "u"; }
.stateface-WI:before { content: "v"; }
.stateface-WV:before { content: "w"; }
.stateface-WY:before { content: "x"; }
@font-face { font-family: 'StateFaceRegular'; src: url('stateface-regular-webfont.eot'); src: url('stateface-regular-webfont.eot?#iefix') format('embedded-opentype'), url('stateface-regular-webfont.woff') format('woff'), url('stateface-regular-webfont.ttf') format('truetype'), url('stateface-regular-webfont.svg#StateFaceRegular') format('svg'); font-weight: normal; font-style: normal; }
</style>
<span class$="stateface stateface-replace stateface-{{state.abbreviation}}"></span>
</template>
<script>
Polymer({
is:"state-icon",
properties: {
state: { type: Object, notify: true, },
},
});
</script>
</dom-module>