|
1 |
| -import { Component } from '@angular/core' |
| 1 | +import { Component, Inject, ViewEncapsulation } from '@angular/core' |
| 2 | +import { ENTRY_MARKDOWN } from '../services' |
2 | 3 | @Component({
|
3 | 4 | selector: 'ui-guide-components-view',
|
4 | 5 | template: `
|
5 |
| - <div class="components-view"> |
6 |
| - <h3>Components</h3> |
7 |
| - |
8 |
| - <p> |
9 |
| - Describe the library here. Need to make this dynamic from user and not hard coded |
10 |
| - </p> |
11 |
| - </div> |
| 6 | + |
| 7 | + <dope-docs-markdown [markdown]="entryMarkdown"></dope-docs-markdown> |
12 | 8 | `,
|
| 9 | + encapsulation: ViewEncapsulation.None, |
13 | 10 | styles: [`
|
14 |
| - h3 { |
15 |
| - font-weight: 300; |
16 |
| - font-size: 3rem; |
17 |
| - } |
| 11 | + @media print { |
| 12 | + *, |
| 13 | + *:before, |
| 14 | + *:after { |
| 15 | + background: transparent !important; |
| 16 | + color: #000 !important; |
| 17 | + box-shadow: none !important; |
| 18 | + text-shadow: none !important; |
| 19 | + } |
| 20 | +
|
| 21 | + a, |
| 22 | + a:visited { |
| 23 | + text-decoration: underline; |
| 24 | + } |
| 25 | +
|
| 26 | + a[href]:after { |
| 27 | + content: " (" attr(href) ")"; |
| 28 | + } |
| 29 | +
|
| 30 | + abbr[title]:after { |
| 31 | + content: " (" attr(title) ")"; |
| 32 | + } |
| 33 | +
|
| 34 | + a[href^="#"]:after, |
| 35 | + a[href^="javascript:"]:after { |
| 36 | + content: ""; |
| 37 | + } |
| 38 | +
|
| 39 | + pre, |
| 40 | + blockquote { |
| 41 | + border: 1px solid #999; |
| 42 | + page-break-inside: avoid; |
| 43 | + } |
| 44 | +
|
| 45 | + thead { |
| 46 | + display: table-header-group; |
| 47 | + } |
| 48 | +
|
| 49 | + tr, |
| 50 | + img { |
| 51 | + page-break-inside: avoid; |
| 52 | + } |
| 53 | +
|
| 54 | + img { |
| 55 | + max-width: 100% !important; |
| 56 | + } |
| 57 | +
|
| 58 | + p, |
| 59 | + h2, |
| 60 | + h3 { |
| 61 | + orphans: 3; |
| 62 | + widows: 3; |
| 63 | + } |
| 64 | +
|
| 65 | + h2, |
| 66 | + h3 { |
| 67 | + page-break-after: avoid; |
| 68 | + } |
| 69 | +} |
| 70 | +
|
| 71 | +html { |
| 72 | + font-size: 12px; |
| 73 | +} |
| 74 | +
|
| 75 | +@media screen and (min-width: 32rem) and (max-width: 48rem) { |
| 76 | + html { |
| 77 | + font-size: 15px; |
| 78 | + } |
| 79 | +} |
| 80 | +
|
| 81 | +@media screen and (min-width: 48rem) { |
| 82 | + html { |
| 83 | + font-size: 16px; |
| 84 | + } |
| 85 | +} |
| 86 | +
|
| 87 | +body { |
| 88 | + line-height: 1.85; |
| 89 | +} |
| 90 | +
|
| 91 | +p, |
| 92 | +.air-p { |
| 93 | + font-size: 1rem; |
| 94 | + margin-bottom: 1.3rem; |
| 95 | +} |
| 96 | +
|
| 97 | +h1, |
| 98 | +.air-h1, |
| 99 | +h2, |
| 100 | +.air-h2, |
| 101 | +h3, |
| 102 | +.air-h3, |
| 103 | +h4, |
| 104 | +.air-h4 { |
| 105 | + margin: 1.414rem 0 .5rem; |
| 106 | + font-weight: inherit; |
| 107 | + line-height: 1.42; |
| 108 | +} |
| 109 | +
|
| 110 | +h1, |
| 111 | +.air-h1 { |
| 112 | + margin-top: 0; |
| 113 | + font-size: 3.998rem; |
| 114 | +} |
| 115 | +
|
| 116 | +h2, |
| 117 | +.air-h2 { |
| 118 | + font-size: 2.827rem; |
| 119 | +} |
| 120 | +
|
| 121 | +h3, |
| 122 | +.air-h3 { |
| 123 | + font-size: 1.999rem; |
| 124 | +} |
| 125 | +
|
| 126 | +h4, |
| 127 | +.air-h4 { |
| 128 | + font-size: 1.414rem; |
| 129 | +} |
| 130 | +
|
| 131 | +h5, |
| 132 | +.air-h5 { |
| 133 | + font-size: 1.121rem; |
| 134 | +} |
| 135 | +
|
| 136 | +h6, |
| 137 | +.air-h6 { |
| 138 | + font-size: .88rem; |
| 139 | +} |
| 140 | +
|
| 141 | +small, |
| 142 | +.air-small { |
| 143 | + font-size: .707em; |
| 144 | +} |
| 145 | +
|
| 146 | +/* https://github.com/mrmrs/fluidity */ |
| 147 | +
|
| 148 | +img, |
| 149 | +canvas, |
| 150 | +iframe, |
| 151 | +video, |
| 152 | +svg, |
| 153 | +select, |
| 154 | +textarea { |
| 155 | + max-width: 100%; |
| 156 | +} |
| 157 | +
|
| 158 | +@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,300); |
| 159 | +
|
| 160 | +body { |
| 161 | + color: #444; |
| 162 | + font-family: 'Open Sans', Helvetica, sans-serif; |
| 163 | + font-weight: 300; |
| 164 | + margin: 6rem auto 1rem; |
| 165 | + text-align: center; |
| 166 | +} |
| 167 | +
|
| 168 | +img { |
| 169 | + border-radius: 50%; |
| 170 | + height: 200px; |
| 171 | + margin: 0 auto; |
| 172 | + width: 200px; |
| 173 | +} |
| 174 | +
|
| 175 | +a, |
| 176 | +a:visited { |
| 177 | + color: #3498db; |
| 178 | +} |
| 179 | +
|
| 180 | +a:hover, |
| 181 | +a:focus, |
| 182 | +a:active { |
| 183 | + color: #2980b9; |
| 184 | +} |
| 185 | +
|
| 186 | +pre { |
| 187 | + background-color: #fafafa; |
| 188 | + padding: 1rem; |
| 189 | + text-align: left; |
| 190 | +} |
| 191 | +
|
| 192 | +blockquote { |
| 193 | + margin: 0; |
| 194 | + border-left: 5px solid #7a7a7a; |
| 195 | + font-style: italic; |
| 196 | + padding: 1.33em; |
| 197 | + text-align: left; |
| 198 | +} |
| 199 | +
|
| 200 | +ul, |
| 201 | +ol, |
| 202 | +li { |
| 203 | + text-align: left; |
| 204 | +} |
| 205 | +
|
| 206 | +p { |
| 207 | + color: #777; |
| 208 | +} |
18 | 209 | `]
|
19 | 210 | })
|
20 |
| -export class ComponentsView {} |
| 211 | +export class ComponentsView { |
| 212 | + constructor(@Inject(ENTRY_MARKDOWN) public entryMarkdown: string) { } |
| 213 | +} |
0 commit comments