6
6
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1.0, maximum-scale=1 ">
8
8
9
- < title > TPX Forms </ title >
9
+ < title > tpxForms </ title >
10
10
11
11
< link href ="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css " rel ="stylesheet ">
12
12
< link rel ="stylesheet " href ="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/default.min.css ">
@@ -34,6 +34,16 @@ <h3 class="tpx-desc">An enhanced version of some of the html form elements writt
34
34
35
35
< hr >
36
36
37
+ < div class ="inline-block ">
38
+ < a href ="" class ="download-btn "> Download CSS</ a >
39
+ < small > Compiled and minified CSS</ small >
40
+ </ div >
41
+
42
+ < div class ="inline-block ">
43
+ < a href ="" class ="download-btn "> Download CSS</ a >
44
+ < small > Includes less files and docs</ small >
45
+ </ div >
46
+
37
47
< h2 class ="sectitle "> Radios</ h2 >
38
48
< p class ="secdesc "> Use the available syntax below to use the enhanced radio box.</ p >
39
49
@@ -45,25 +55,184 @@ <h2 class="sectitle">Radios</h2>
45
55
46
56
< p > To create a custom design, we use the < code > <span></ code > element as an indicator to the input radio which is hidden within the < code > <label></ code > .</ p >
47
57
48
- < h4 class ="subtitle "> Examples:</ h4 >
58
+ < hr >
59
+
60
+ < h4 class ="subtitle "> Default Radio</ h4 >
61
+ < p class ="subdesc "> Start with this basic radio by copying the syntax given above.</ p >
62
+
49
63
< div >
50
64
< label class ="tpx-radio ">
51
- < input type ="radio " name ="radio1 " value ="1 ">
65
+ < input type ="radio " name ="radio1 " value ="1 " checked >
52
66
< span > </ span >
53
- Default Radio 1
67
+ Default Radio
54
68
</ label >
55
69
< label class ="tpx-radio ">
56
70
< input type ="radio " name ="radio1 " value ="2 ">
57
71
< span > </ span >
58
- Default Radio 2
72
+ Default Radio
73
+ </ label >
74
+ </ div >
75
+
76
+ < br >
77
+ < h4 class ="subtitle "> Inversed Radio</ h4 >
78
+ < p class ="subdesc "> Create an inversed color of the default radio.</ p >
79
+
80
+ < div >
81
+ < label class ="tpx-radio tpx-radio-inverse ">
82
+ < input type ="radio " name ="radio2 " value ="1 " checked >
83
+ < span > </ span >
84
+ Inversed Radio
85
+ </ label >
86
+ < label class ="tpx-radio tpx-radio-inverse ">
87
+ < input type ="radio " name ="radio2 " value ="2 ">
88
+ < span > </ span >
89
+ Inversed Radio
90
+ </ label >
91
+ </ div >
92
+ < pre > < code class ="html "> <label class="tpx-radio tpx-inverse">...</label></ code > </ pre >
93
+
94
+ < br >
95
+ < h4 class ="subtitle "> Radio Sizes</ h4 >
96
+ < p class ="subdesc "> Make larger or smaller radio by adding < span class ="code "> .tpx-radio-sm</ span > , < span class ="code "> .tpx-radio-xs</ span > , or < span class ="code "> .tpx-radio-lg</ span < for additional sizes. </ p >
97
+
98
+ < div >
99
+ < label class ="tpx-radio tpx-radio-lg ">
100
+ < input type ="radio " name ="radio3 " value ="1 " checked >
101
+ < span > </ span >
102
+ Radio Large
103
+ </ label >
104
+ < label class ="tpx-radio tpx-radio-lg ">
105
+ < input type ="radio " name ="radio3 " value ="2 ">
106
+ < span > </ span >
107
+ Radio Large
108
+ </ label >
109
+ </ div >
110
+
111
+ < pre > < code class ="html "> <label class="tpx-radio tpx-radio-lg">...</label></ code > </ pre >
112
+
113
+ < br >
114
+
115
+ < div >
116
+ < label class ="tpx-radio tpx-radio-sm ">
117
+ < input type ="radio " name ="radio4 " value ="1 " checked >
118
+ < span > </ span >
119
+ Radio Small
120
+ </ label >
121
+ < label class ="tpx-radio tpx-radio-sm ">
122
+ < input type ="radio " name ="radio4 " value ="2 ">
123
+ < span > </ span >
124
+ Radio Small
125
+ </ label >
126
+ </ div >
127
+
128
+ < pre > < code class ="html "> <label class="tpx-radio tpx-radio-sm">...</label></ code > </ pre >
129
+
130
+ < br >
131
+
132
+ < div >
133
+ < label class ="tpx-radio tpx-radio-xs ">
134
+ < input type ="radio " name ="radio5 " value ="1 " checked >
135
+ < span > </ span >
136
+ Radio Extra Small
137
+ </ label >
138
+ < label class ="tpx-radio tpx-radio-xs ">
139
+ < input type ="radio " name ="radio5 " value ="2 ">
140
+ < span > </ span >
141
+ Radio Extra Small
142
+ </ label >
143
+ </ div >
144
+
145
+ < pre > < code class ="html "> <label class="tpx-radio tpx-radio-xs">...</label></ code > </ pre >
146
+
147
+ < br >
148
+ < h4 class ="subtitle "> Radio Disabled</ h4 >
149
+ < p class ="subdesc "> Add the < span class ="code "> disabled</ span > attribute to < span class ="code "> <input></ span > within the label.</ p >
150
+
151
+ < div >
152
+ < label class ="tpx-radio ">
153
+ < input type ="radio " name ="radio6 " value ="1 " checked disabled >
154
+ < span > </ span >
155
+ Disabled Radio
59
156
</ label >
60
157
< label class ="tpx-radio ">
61
- < input type ="radio " name ="radio1 " value ="3 ">
158
+ < input type ="radio " name ="radio6 " value ="2 " disabled >
159
+ < span > </ span >
160
+ Disabled Radio
161
+ </ label >
162
+ </ div >
163
+
164
+ < pre > < code class ="html "> <input type="radio" disabled></ code > </ pre >
165
+
166
+ < br >
167
+ < h4 class ="subtitle "> Colored Radio</ h4 >
168
+ < p class ="subdesc "> Use any of the available radio classes to create a colored radio button..</ p >
169
+
170
+ < div >
171
+ < label class ="tpx-radio tpx-radio-primary ">
172
+ < input type ="radio " name ="radio7 " value ="1 " checked >
173
+ < span > </ span >
174
+ Primary Radio
175
+ </ label >
176
+ < label class ="tpx-radio tpx-radio-inverse tpx-radio-primary ">
177
+ < input type ="radio " name ="radio7 " value ="2 ">
178
+ < span > </ span >
179
+ Primary Radio Inverse
180
+ </ label >
181
+ </ div >
182
+
183
+ < pre > < code class ="html "> <label class="tpx-radio tpx-radio-primary">...</label>
184
+ <label class="tpx-radio tpx-radio-primary tpx-radio-inverse">...</label></ code > </ pre >
185
+
186
+ < div >
187
+ < label class ="tpx-radio tpx-radio-success ">
188
+ < input type ="radio " name ="radio8 " value ="1 " checked >
62
189
< span > </ span >
63
- Default Radio 3
190
+ Success Radio
191
+ </ label >
192
+ < label class ="tpx-radio tpx-radio-inverse tpx-radio-success ">
193
+ < input type ="radio " name ="radio8 " value ="2 ">
194
+ < span > </ span >
195
+ Success Radio Inverse
64
196
</ label >
65
197
</ div >
66
198
199
+ < pre > < code class ="html "> <label class="tpx-radio tpx-radio-success">...</label>
200
+ <label class="tpx-radio tpx-radio-success tpx-radio-inverse">...</label></ code > </ pre >
201
+
202
+ < div >
203
+ < label class ="tpx-radio tpx-radio-warning ">
204
+ < input type ="radio " name ="radio9 " value ="1 " checked >
205
+ < span > </ span >
206
+ Warning Radio
207
+ </ label >
208
+ < label class ="tpx-radio tpx-radio-inverse tpx-radio-warning ">
209
+ < input type ="radio " name ="radio9 " value ="2 ">
210
+ < span > </ span >
211
+ Warning Radio Inverse
212
+ </ label >
213
+ </ div >
214
+
215
+ < pre > < code class ="html "> <label class="tpx-radio tpx-radio-warning">...</label>
216
+ <label class="tpx-radio tpx-radio-warning tpx-radio-inverse">...</label></ code > </ pre >
217
+
218
+ < div >
219
+ < label class ="tpx-radio tpx-radio-danger ">
220
+ < input type ="radio " name ="radio10 " value ="1 " checked >
221
+ < span > </ span >
222
+ Danger Radio
223
+ </ label >
224
+ < label class ="tpx-radio tpx-radio-inverse tpx-radio-danger ">
225
+ < input type ="radio " name ="radio10 " value ="2 ">
226
+ < span > </ span >
227
+ Danger Radio Inverse
228
+ </ label >
229
+ </ div >
230
+
231
+ < pre > < code class ="html "> <label class="tpx-radio tpx-radio-danger">...</label>
232
+ <label class="tpx-radio tpx-radio-danger tpx-radio-inverse">...</label></ code > </ pre >
233
+
234
+
235
+
67
236
</ div >
68
237
</ section >
69
238
0 commit comments