-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtt.css
270 lines (220 loc) · 5.07 KB
/
tt.css
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
262
263
264
265
266
267
268
269
270
/* keyboard - jQuery UI Widget */
.ui-keyboard {
padding: .3em;
position: absolute;
left: 0;
top: 0;
z-index: 16000;
}
.ui-keyboard-has-focus {
z-index: 16001;
}
.ui-keyboard div {
font-size: 1.7em;
}
.ui-keyboard-button {
height: 2em;
width: 2em;
min-width: 1em;
margin: .1em;
cursor: pointer;
overflow: hidden;
line-height: 2em;
-moz-user-focus: ignore;
}
.ui-keyboard-button span {
padding: 0;
margin: 0;
white-space: nowrap;
display: inline-block;
}
.ui-keyboard-button-endrow {
clear: left;
}
.ui-keyboard-widekey {
min-width: 4em;
width: auto;
}
.ui-keyboard-space {
width: 15em;
}
.ui-keyboard-space span, .ui-keyboard-empty span {
font: 0/0 a;
text-shadow: none;
color: transparent;
}
/* see http://nicolasgallagher.com/another-css-image-replacement-technique/ */
.ui-keyboard-preview-wrapper {
text-align: center;
height: 2em;
}
.ui-keyboard-preview {
text-align: left;
margin: 0 0 3px 0;
display: inline;
width: 99%;
height: 1.8em;
}
/* width is calculated in IE, since 99% = 99% full browser width =( */
.ui-keyboard-keyset {
text-align: center;
white-space: nowrap;
}
.ui-keyboard-input {
text-align: left;
height: 1.8em;
}
.ui-keyboard-input-current {
-moz-box-shadow: 1px 1px 10px #00f;
-webkit-box-shadow: 1px 1px 10px #00f;
box-shadow: 1px 1px 10px #00f;
}
.ui-keyboard-placeholder {
color: #888;
}
.ui-keyboard-nokeyboard {
color: #888;
border-color: #888;
}
/* disabled or readonly inputs, or use input[disabled='disabled'] { color: #f00; } */
.ui-keyboard-button.disabled {
opacity: 0.5;
filter: alpha(opacity=50);
}
/* used by the acceptValid option to make the accept button appear faded */
.ui-keyboard-spacer {
display: inline-block;
width: 1px;
height: 0;
}
/* combo key styling - toggles diacritics on/off */
.ui-keyboard-button.ui-keyboard-combo.ui-state-default {
border-color: #ffaf0f;
}
/* (in)valid inputs */
button.ui-keyboard-accept.ui-keyboard-valid-input {
border-color: #0c0;
background: #080;
color: #fff;
}
button.ui-keyboard-accept.ui-keyboard-valid-input:hover {
background: #0a0;
}
button.ui-keyboard-accept.ui-keyboard-invalid-input {
border-color: #c00;
background: #800;
color: #fff;
}
button.ui-keyboard-accept.ui-keyboard-invalid-input:hover {
background: #a00;
}
/*** jQuery Mobile definitions ***/
/* jQuery Mobile styles - need wider buttons because of font size and text-overflow:ellipsis */
.ui-bar .ui-keyboard-button {
width: 3em;
display: inline-block;
}
.ui-bar .ui-keyboard-widekey {
width: 5.5em;
}
.ui-bar .ui-keyboard-space {
width: 15em;
}
.ui-bar .ui-keyboard-space span {
visibility: hidden;
}
/* hides the ellipsis */
.ui-bar .ui-keyboard-keyset {
line-height: 0.5em;
}
.ui-bar input.ui-input-text, .ui-bar textarea.ui-input-text {
width: 95%;
}
/* over-ride padding set by mobile ui theme - needed because the mobile script wraps button text with several more spans */
.ui-bar .ui-btn-inner {
height: 2em;
padding: 0.2em 0;
margin: 0;
}
.ui-bar .ui-btn {
margin: 0;
font-size: 16px;
}
/* mobile default size is 13px */
/* Media Queries (optimized for jQuery UI themes; may be slightly off in jQuery Mobile themes) */
/* 240 x 320 (small phone) */
@media all and (max-width: 319px) {
.ui-keyboard div {
font-size: 9px;
}
.ui-keyboard .ui-keyboard-input {
font-size: 12px;
}
/* I don't own an iPhone so I have no idea how small this really is... is it even clickable with your finger? */
.ui-bar .ui-btn {
margin: 0;
font-size: 9px;
}
.ui-bar .ui-keyboard-button {
width: 1.8em;
height: 2.5em;
}
.ui-bar .ui-keyboard-widekey {
width: 4em;
}
.ui-bar .ui-keyboard-space {
width: 8em;
}
.ui-bar .ui-btn-inner {
height: 2.5em;
padding: 0.3em 0;
}
}
/* 320 x 480 (iPhone) */
@media all and (min-width: 320px) and (max-width: 479px) {
.ui-keyboard div {
font-size: 9px;
}
.ui-keyboard .ui-keyboard-input {
font-size: 14px;
}
/* I don't own an iPhone so I have no idea how small this really is... is it even clickable with your finger? */
.ui-bar .ui-btn {
margin: 0;
font-size: 11px;
}
.ui-bar .ui-keyboard-button {
width: 1.8em;
height: 3em;
}
.ui-bar .ui-keyboard-widekey {
width: 4.5em;
}
.ui-bar .ui-keyboard-space {
width: 10em;
}
.ui-bar .ui-btn-inner {
height: 3em;
padding: 0.7em 0;
}
}
/* 480 x 640 (small tablet) */
@media all and (min-width: 480px) and (max-width: 767px) {
.ui-keyboard div {
font-size: 13px;
}
.ui-keyboard .ui-keyboard-input {
font-size: 14px;
}
.ui-bar .ui-btn {
margin: 0;
font-size: 10px;
}
.ui-bar .ui-keyboard-button {
height: 2.5em;
}
.ui-bar .ui-btn-inner {
height: 2.5em;
padding: 0.5em 0;
}
}