speedo 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,20 +23,20 @@ Enjoy!
23
23
  (function($) {
24
24
  $.uniform = {
25
25
  options: {
26
- selectClass: 'selector',
27
- radioClass: 'radio',
28
- checkboxClass: 'checker',
29
- fileClass: 'uploader',
30
- filenameClass: 'filename',
31
- fileBtnClass: 'action',
26
+ selectClass: 'uni-selector',
27
+ radioClass: 'uni-radio',
28
+ checkboxClass: 'uni-checker',
29
+ fileClass: 'uni-uploader',
30
+ filenameClass: 'uni-filename',
31
+ fileBtnClass: 'uni-action',
32
32
  fileDefaultText: 'No file selected',
33
33
  fileBtnText: 'Choose File',
34
- checkedClass: 'checked',
35
- focusClass: 'focus',
36
- disabledClass: 'disabled',
37
- buttonClass: 'uniformbutton',
38
- activeClass: 'active',
39
- hoverClass: 'hover',
34
+ checkedClass: 'uni-checked',
35
+ focusClass: 'uni-focus',
36
+ disabledClass: 'uni-disabled',
37
+ buttonClass: 'uni-button',
38
+ activeClass: 'uni-active',
39
+ hoverClass: 'uni-hover',
40
40
  useID: true,
41
41
  idPrefix: 'uniform',
42
42
  resetSelector: false,
@@ -0,0 +1,271 @@
1
+ /* -------------------------------------------------------------------------------------------------
2
+
3
+
4
+
5
+
6
+ THIS FILE HAS BEEN MODIFIED FOR SPEEDO: ALL REFERENCES TO .button(s), .action(s), .button_action
7
+ AND .link_action HAVE BEEN REMOVED, TO REMOVE CONFLICTS WITH GH-BUTTONS
8
+
9
+
10
+
11
+
12
+ It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
13
+ this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
14
+ This will allow you to update formtastic.css with new releases without clobbering your own changes.
15
+
16
+ This stylesheet forms part of the Formtastic Rails Plugin
17
+ (c) 2008-2011 Justin French
18
+
19
+ --------------------------------------------------------------------------------------------------*/
20
+
21
+ /* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just .formtastic
22
+ --------------------------------------------------------------------------------------------------*/
23
+ .formtastic,
24
+ .formtastic ul,
25
+ .formtastic ol,
26
+ .formtastic li,
27
+ .formtastic fieldset,
28
+ .formtastic legend,
29
+ .formtastic input,
30
+ .formtastic textarea,
31
+ .formtastic select,
32
+ .formtastic p {
33
+ margin:0;
34
+ padding:0;
35
+ }
36
+
37
+ .formtastic fieldset {
38
+ border:0;
39
+ }
40
+
41
+ .formtastic em,
42
+ .formtastic strong {
43
+ font-style:normal;
44
+ font-weight:normal;
45
+ }
46
+
47
+ .formtastic ol,
48
+ .formtastic ul {
49
+ list-style:none;
50
+ }
51
+
52
+ .formtastic abbr,
53
+ .formtastic acronym {
54
+ border:0;
55
+ font-variant:normal;
56
+ }
57
+
58
+ .formtastic input,
59
+ .formtastic textarea {
60
+ font-family:sans-serif;
61
+ font-size:inherit;
62
+ font-weight:inherit;
63
+ }
64
+
65
+ .formtastic input,
66
+ .formtastic textarea,
67
+ .formtastic select {
68
+ font-size:100%;
69
+ }
70
+
71
+ .formtastic legend {
72
+ white-space:normal;
73
+ color:#000;
74
+ }
75
+
76
+
77
+ /* SEMANTIC ERRORS
78
+ --------------------------------------------------------------------------------------------------*/
79
+ .formtastic .errors {
80
+ color:#cc0000;
81
+ margin:0.5em 0 1.5em 25%;
82
+ list-style:square;
83
+ }
84
+
85
+ .formtastic .errors li {
86
+ padding:0;
87
+ border:none;
88
+ display:list-item;
89
+ }
90
+
91
+
92
+ /* INPUTS
93
+ --------------------------------------------------------------------------------------------------*/
94
+ .formtastic .inputs {
95
+ overflow:hidden; /* clear containing floats */
96
+ }
97
+
98
+ .formtastic .input {
99
+ overflow:hidden; /* clear containing floats */
100
+ padding:0.5em 0; /* padding and negative margin juggling is for Firefox */
101
+ margin-top:-0.5em;
102
+ margin-bottom:1em;
103
+ }
104
+
105
+
106
+ /* LEFT ALIGNED LABELS
107
+ --------------------------------------------------------------------------------------------------*/
108
+ .formtastic .input .label {
109
+ display:block;
110
+ width:25%;
111
+ float:left;
112
+ padding-top:.2em;
113
+ }
114
+
115
+ .formtastic .fragments .label,
116
+ .formtastic .choices .label {
117
+ position:absolute;
118
+ width:95%;
119
+ left:0px;
120
+ }
121
+
122
+ .formtastic .fragments .label label,
123
+ .formtastic .choices .label label {
124
+ position:absolute;
125
+ }
126
+
127
+ /* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
128
+ --------------------------------------------------------------------------------------------------*/
129
+ .formtastic .choices {
130
+ position:relative;
131
+ }
132
+
133
+ .formtastic .choices-group {
134
+ float:left;
135
+ width:74%;
136
+ margin:0;
137
+ padding:0 0 0 25%;
138
+ }
139
+
140
+ .formtastic .choice {
141
+ padding:0;
142
+ border:0;
143
+ }
144
+
145
+
146
+ /* INLINE HINTS
147
+ --------------------------------------------------------------------------------------------------*/
148
+ .formtastic .input .inline-hints {
149
+ color:#666;
150
+ margin:0.5em 0 0 25%;
151
+ }
152
+
153
+
154
+ /* INLINE ERRORS
155
+ --------------------------------------------------------------------------------------------------*/
156
+ .formtastic .inline-errors {
157
+ color:#cc0000;
158
+ margin:0.5em 0 0 25%;
159
+ }
160
+
161
+ .formtastic .errors {
162
+ color:#cc0000;
163
+ margin:0.5em 0 0 25%;
164
+ list-style:square;
165
+ }
166
+
167
+ .formtastic .errors li {
168
+ padding:0;
169
+ border:none;
170
+ display:list-item;
171
+ }
172
+
173
+
174
+ /* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE, SEARCH (ETC) OVERRIDES
175
+ --------------------------------------------------------------------------------------------------*/
176
+ .formtastic .stringish input {
177
+ width:72%;
178
+ }
179
+
180
+ .formtastic .stringish input[size] {
181
+ width:auto;
182
+ max-width:72%;
183
+ }
184
+
185
+
186
+ /* TEXTAREA OVERRIDES
187
+ --------------------------------------------------------------------------------------------------*/
188
+ .formtastic .text textarea {
189
+ width:72%;
190
+ }
191
+
192
+ .formtastic .text textarea[cols] {
193
+ width:auto;
194
+ max-width:72%;
195
+ }
196
+
197
+
198
+ /* HIDDEN OVERRIDES
199
+ --------------------------------------------------------------------------------------------------*/
200
+ .formtastic .hidden {
201
+ display:none;
202
+ }
203
+
204
+
205
+ /* BOOLEAN LABELS
206
+ --------------------------------------------------------------------------------------------------*/
207
+ .formtastic .boolean label {
208
+ padding-left:25%;
209
+ display:block;
210
+ }
211
+
212
+
213
+ /* CHOICE GROUPS
214
+ --------------------------------------------------------------------------------------------------*/
215
+ .formtastic .choices-group {
216
+ margin-bottom:-0.5em;
217
+ }
218
+
219
+ .formtastic .choice {
220
+ margin:0.1em 0 0.5em 0;
221
+ }
222
+
223
+ .formtastic .choice label {
224
+ float:none;
225
+ width:100%;
226
+ line-height:100%;
227
+ padding-top:0;
228
+ margin-bottom:0.6em;
229
+ }
230
+
231
+
232
+ /* ADJUSTMENTS FOR INPUTS INSIDE LABELS (boolean input, radio input, check_boxes input)
233
+ --------------------------------------------------------------------------------------------------*/
234
+ .formtastic .choice label input,
235
+ .formtastic .boolean label input {
236
+ margin:0 0.3em 0 0.1em;
237
+ line-height:100%;
238
+ }
239
+
240
+
241
+ /* FRAGMENTED INPUTS (DATE/TIME/DATETIME)
242
+ --------------------------------------------------------------------------------------------------*/
243
+ .formtastic .fragments {
244
+ position:relative;
245
+ }
246
+
247
+ .formtastic .fragments-group {
248
+ float:left;
249
+ width:74%;
250
+ margin:0;
251
+ padding:0 0 0 25%;
252
+ }
253
+
254
+ .formtastic .fragment {
255
+ float:left;
256
+ width:auto;
257
+ margin:0 .3em 0 0;
258
+ padding:0;
259
+ border:0;
260
+ }
261
+
262
+ .formtastic .fragment label {
263
+ display:none;
264
+ }
265
+
266
+ .formtastic .fragment label input {
267
+ display:inline;
268
+ margin:0;
269
+ padding:0;
270
+ }
271
+