This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
261 lines (232 loc) · 9.6 KB
/
index.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Material Web Helios</title>
<link rel="shortcut icon" href="https://material.io/favicon.ico" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"
/>
<link rel="stylesheet" href="bundle.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
</head>
<body>
<div class="content">
<h1>Material Web Components Styled with Helios</h1>
<button id="theme-switch" class="mdc-switch mdc-switch--unselected" type="button" role="switch" aria-checked="false">
<div class="mdc-switch__track"></div>
<div class="mdc-switch__handle-track">
<div class="mdc-switch__handle">
<div class="mdc-switch__shadow">
<div class="mdc-elevation-overlay"></div>
</div>
<div class="mdc-switch__ripple"></div>
</div>
</div>
</button>
<h2>Button</h2>
<div class="section">
<button class="helios-button mdc-button">
<span class="mdc-button__label">Default</span>
</button>
<button class="helios-button mdc-button" disabled>
<span class="mdc-button__label">Disabled</span>
</button>
<button class="helios-button failure mdc-button">
<span class="mdc-button__label">Failure</span>
</button>
<button class="helios-button caution mdc-button">
<span class="mdc-button__label">Caution</span>
</button>
<button class="helios-button success mdc-button">
<span class="mdc-button__label">Success</span>
</button>
<button class="helios-button small mdc-button">
<span class="mdc-button__label">Small Default</span>
</button>
<button class="helios-button mdc-button mdc-button--leading">
<i class="material-icons mdc-button__icon" aria-hidden="true">bookmark</i>
<span class="mdc-button__label">Leading Icon</span>
</button>
<button class="helios-button mdc-button mdc-button--trailing">
<span class="mdc-button__label">Trailing Icon</span>
<i class="material-icons mdc-button__icon" aria-hidden="true">bookmark</i>
</button>
<button class="helios-button mdc-button subtle mdc-button--trailing">
<span class="mdc-button__label">Trailing Icon Subtle</span>
<i class="material-icons mdc-button__icon" aria-hidden="true">bookmark</i>
</button>
<button class="subtle helios-button mdc-button ">
<span class="mdc-button__label">Subtle</span>
</button>
<button class="mdc-button subtle failure helios-button">
<span class="mdc-button__label">Subtle Failure</span>
</button>
<button class="mdc-button helios-button text">
<span class="mdc-button__label">Text</span>
</button>
<button class="mdc-button helios-button text failure">
<span class="mdc-button__label">Text Failure</span>
</button>
<button class="mdc-button helios-button text failure" disabled>
<span class="mdc-button__label">Text Disabled</span>
</button>
</div>
<h2>Textfield</h2>
<div class="section">
<label class="helios-text-field mdc-text-field">
<span class="helios-text-field-label" id="my-label-id-0">With Label</span>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-0"
/>
</span>
</label>
<label class="helios-text-field mdc-text-field">
<span class="helios-text-field-label" id="my-label-id-1"
>With Leading Icon</span
>
<span class="helios-text-field-outline">
<i
class="material-icons mdc-text-field__icon mdc-text-field__icon--leading"
>event</i
>
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-1"
/>
</span>
</label>
<label class="helios-text-field mdc-text-field">
<span class="helios-text-field-label" id="my-label-id-2"
>With Trailing Icon</span
>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-2"
/>
<i
class="material-icons mdc-text-field__icon mdc-text-field__icon--trailing"
>event</i
>
</span>
</label>
<label class="helios-text-field mdc-text-field mdc-text-field--disabled">
<span class="helios-text-field-label" id="my-label-id-3">Disabled</span>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-3"
disabled
/>
</span>
</label>
<label class="helios-text-field mdc-text-field mdc-text-field--no-label">
<span class="helios-text-field-label" id="my-label-id-4">Placeholder</span>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-4"
placeholder="The Placeholder Text"
/>
</span>
</label>
<label class="helios-text-field mdc-text-field mdc-text-field--invalid">
<span class="helios-text-field-label" id="my-label-id-5">Invalid (Error)</span>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-5"
required
minlength="8"
/>
</span>
</label>
<label class="helios-text-field mdc-text-field">
<span class="helios-text-field-label" id="my-label-id-6">Helper Text</span>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-controls="my-helper-id"
aria-labelledby="my-label-id-6"
aria-describedby="my-helper-id"
/>
</span>
</label>
<div class="mdc-text-field-helper-line">
<div class="helios-text-field-helper-text mdc-text-field-helper-text" id="my-helper-id" aria-hidden="true">The Helper Text</div>
</div>
<label class="helios-text-field mdc-text-field">
<span class="helios-text-field-label" id="my-label-id-7">Persistent Helper Text</span>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-7"
aria-describedby="my-helper-id"
/>
</span>
</label>
<div class="mdc-text-field-helper-line">
<div class="helios-text-field-helper-text mdc-text-field-helper-text mdc-text-field-helper-text--persistent" id="my-helper-id" aria-hidden="true">The Helper Text</div>
</div>
<label class="helios-text-field mdc-text-field mdc-text-field--invalid">
<span class="helios-text-field-label" id="my-label-id-8">Validation Helper Text</span>
<span class="helios-text-field-outline">
<input
type="text"
class="mdc-text-field__input"
aria-labelledby="my-label-id-8"
aria-describedby="my-helper-id"
required
/>
</span>
</label>
<div class="mdc-text-field-helper-line">
<div class="helios-text-field-helper-text mdc-text-field-helper-text mdc-text-field-helper-text--persistent mdc-text-field-helper-text--validation-msg" id="my-helper-id" aria-hidden="true">Describe the Error</div>
</div>
<label class="helios-text-field mdc-text-field mdc-text-field--textarea">
<span class="helios-text-field-label" id="my-label-id-9">Multiline</span>
<span class="helios-text-field-outline">
<textarea class="mdc-text-field__input resizable" aria-labelledby="my-label-id-9" rows="4"
cols="40"></textarea>
</span>
</label>
</div>
<h2>Card</h2>
<div class="section">
<div class="helios-card mdc-card"><span class="mdc-card__content">Elevated Card</span></div>
<div class="helios-card mdc-card mdc-card--outlined"><span class="mdc-card__content">Outlined Card</span></div>
<div class="helios-card mdc-card">
<span class="mdc-card__content">Card With Actions</span>
<div class="mdc-card__actions">
<button class="helios-button mdc-button mdc-card__action mdc-card__action--button">
<span class="mdc-button__label">Action 1</span>
</button>
<button class="helios-button success mdc-button mdc-card__action mdc-card__action--button">
<span class="mdc-button__label">Action 2</span>
</button>
</div>
</div>
</div>
<script src="bundle.js" async></script>
</body>
</html>