-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextFields.html
113 lines (94 loc) · 5.24 KB
/
textFields.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
<html>
<head>
<link href="http://fonts.googleapis.com/css?family=Roboto:400,300,500" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="style/style.css"/>
<style>
body {
padding: 36px;
}
.example {
margin-bottom: 24px;
position: relative;
border: 1px solid #ccc;
}
</style>
</head>
<body>
<h1 class="type--display-1">Single-line text field</h1>
<h2 class="type--title">Standard</h2>
<div class="textField">
<input class="textField__input type--subheading-1" type="text" id="textField" placeholder="Full Name"/>
<label class="textField__label" for="textField"> </label>
</div>
<div class="textField">
<input class="textField__input type--subheading-1" type="text" disabled id="textField" placeholder="Disabled"/>
<label class="textField__label" for="textField"> </label>
</div>
<div class="textField textField--error">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField" placeholder="Email Address"/>
<label class="textField__label type--subheading-1" for="textField"></label>
<div class="textField__helperText">Username or password is incorrect</div>
</div>
<div class="textField textField--persistentText">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField" placeholder="Username"/>
<label class="textField__label type--subheading-1" for="textField"></label>
<div class="textField__helperText">Your username is your email address </div>
</div>
<h2 class="type--title">Icon</h2>
<div class="textField textField--icon">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField" placeholder="Phone"/>
<label class="textField__label" for="textField"> </label>
<i class="textField__icon material-icons">phone</i>
</div>
<div class="textField textField--icon">
<input class="textField__input type--subheading-1" type="text" required="required" disabled id="textField" placeholder="Phone"/>
<label class="textField__label" for="textField"> </label>
<i class="textField__icon material-icons">phone</i>
</div>
<div class="textField textField--icon textField--error">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField" placeholder="Email Address"/>
<label class="textField__label type--subheading-1" for="textField"></label>
<div class="textField__helperText">Username or password is incorrect</div>
<i class="textField__icon material-icons">phone</i>
</div>
<div class="textField textField--icon textField--persistentText">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField" placeholder="Username"/>
<label class="textField__label type--subheading-1" for="textField"></label>
<div class="textField__helperText">Your username is your email address </div>
<i class="textField__icon material-icons">phone</i>
</div>
<h2 class="type--title">Floating Label</h2>
<div class="textField textField--floatingLabel">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField"/>
<label class="textField__label type--subheading-1" for="textField">Label Text</label>
</div>
<div class="textField textField--floatingLabel">
<input class="textField__input type--subheading-1" type="text" required="required" value="Input text" id="textField"/>
<label class="textField__label type--subheading-1" for="textField">Label Text</label>
</div>
<div class="textField textField--floatingLabel">
<input class="textField__input type--subheading-1" type="text" required="required" disabled value="Disabled input" id="textField"/>
<label class="textField__label type--subheading-1" for="textField">Disabled Label</label>
</div>
<div class="textField textField--floatingLabel textField--error">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField" value="Input text"/>
<label class="textField__label type--subheading-1" for="textField">Label Text</label>
<div class="textField__helperText">Username or password is incorrect</div>
</div>
<div class="textField textField--floatingLabel textField--persistentText">
<input class="textField__input type--subheading-1" type="text" required="required" id="textField" value="Input text"/>
<label class="textField__label type--subheading-1" for="textField">Label Text</label>
<div class="textField__helperText">Username or password is incorrect</div>
</div>
<h1 class="type--display-1">Multi-line text field</h1>
<div>
<div class="textField textField--floatingLabel textField--persistentText">
<textarea class="textField__input type--subheading-1" type="text" rows="3" id="textField">The woodman set to work at once, and so sharp was his axe that the tree was soon chopped nearly through.</textarea>
<label class="textField__label type--subheading-2" for="textField">Description</label>
<div class="textField__helperText textField__helperText--charCount">55 / 150</div>
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>