css.hbs
55 lines
| 1 | @font-face { |
| 2 | font-family: "{{ name }}"; |
| 3 | src: {{{ fontSrc }}}; |
| 4 | } |
| 5 | |
| 6 | [class*="otgs-ico"] { |
| 7 | display: inline-block; |
| 8 | transform: translate(0, 0); |
| 9 | } |
| 10 | [class*="otgs-ico"]:focus { |
| 11 | outline: none; |
| 12 | } |
| 13 | |
| 14 | |
| 15 | {{# if selector }} |
| 16 | {{ selector }}:before { |
| 17 | {{ else }} |
| 18 | [class^="{{prefix}}-"]:before, [class*=" {{prefix}}-"]:before, [data-{{prefix}}]:before { |
| 19 | {{/ if }} |
| 20 | font-family: {{ name }} !important; |
| 21 | font-style: normal; |
| 22 | font-weight: normal !important; |
| 23 | font-variant: normal; |
| 24 | text-transform: none; |
| 25 | line-height: 1; |
| 26 | vertical-align: text-bottom; |
| 27 | -webkit-font-smoothing: antialiased; |
| 28 | -moz-osx-font-smoothing: grayscale; |
| 29 | } |
| 30 | |
| 31 | .{{prefix}}-32:before { |
| 32 | font-size: 32px; |
| 33 | } |
| 34 | [data-{{prefix}}]:before { |
| 35 | content: attr(data-{{prefix}}); |
| 36 | } |
| 37 | |
| 38 | |
| 39 | {{# each codepoints }} |
| 40 | {{# if ../selector }} |
| 41 | {{ ../selector }}.{{ ../prefix }}-{{ @key }}:before { |
| 42 | {{ else }} |
| 43 | {{ tag }}.{{ ../prefix }}-{{ @key }}:before { |
| 44 | {{/ if }} |
| 45 | content: "\\{{ codepoint this }}"; |
| 46 | } |
| 47 | {{/ each }} |
| 48 | |
| 49 | /***************************** OTGS ico aliases **************************/ |
| 50 | |
| 51 | @-webkit-keyframes spin { |
| 52 | 0% {transform: rotate(0deg);} |
| 53 | 100% {transform: rotate(360deg);} |
| 54 | } |
| 55 |