html.hbs
72 lines
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <title>{{ name }}</title> |
| 6 | |
| 7 | <style> |
| 8 | body { |
| 9 | font-family: sans-serif; |
| 10 | margin: 0; |
| 11 | padding: 10px 20px; |
| 12 | text-align: center; |
| 13 | } |
| 14 | .preview { |
| 15 | width: 100px; |
| 16 | display: inline-block; |
| 17 | margin: 10px; |
| 18 | } |
| 19 | .preview .inner { |
| 20 | display: inline-block; |
| 21 | width: 100%; |
| 22 | text-align: center; |
| 23 | background: #f5f5f5; |
| 24 | -webkit-border-radius: 3px 3px 0 0; |
| 25 | -moz-border-radius: 3px 3px 0 0; |
| 26 | border-radius: 3px 3px 0 0; |
| 27 | } |
| 28 | .preview .inner {{ baseTag }} { |
| 29 | line-height: 85px; |
| 30 | font-size: 40px; |
| 31 | color: #333; |
| 32 | } |
| 33 | .label { |
| 34 | display: inline-block; |
| 35 | width: 100%; |
| 36 | box-sizing: border-box; |
| 37 | padding: 5px; |
| 38 | font-size: 10px; |
| 39 | font-family: Monaco, monospace; |
| 40 | color: #666; |
| 41 | white-space: nowrap; |
| 42 | overflow: hidden; |
| 43 | text-overflow: ellipsis; |
| 44 | background: #ddd; |
| 45 | -webkit-border-radius: 0 0 3px 3px; |
| 46 | -moz-border-radius: 0 0 3px 3px; |
| 47 | border-radius: 0 0 3px 3px; |
| 48 | color: #666; |
| 49 | } |
| 50 | </style> |
| 51 | |
| 52 | <link rel="stylesheet" type="text/css" href="css/{{ name }}.css" /> |
| 53 | </head> |
| 54 | <body> |
| 55 | |
| 56 | <h1>{{ name }}</h1> |
| 57 | |
| 58 | {{# each assets }} |
| 59 | |
| 60 | <div class="preview"> |
| 61 | <span class="inner"> |
| 62 | <{{ ../tag }} class="{{ ../prefix }} {{ ../prefix }}-{{ @key }}"></{{ ../tag }}> |
| 63 | </span> |
| 64 | <br> |
| 65 | <span class='label'>{{ @key }}</span> |
| 66 | </div> |
| 67 | |
| 68 | {{/ each }} |
| 69 | |
| 70 | </body> |
| 71 | </html> |
| 72 |