-
Notifications
You must be signed in to change notification settings - Fork 0
/
style-mobile.css
406 lines (317 loc) · 12.7 KB
/
style-mobile.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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
/* =Mobile
----------------------------------------------- */
/* rules to make all responsive devices work better */
/* Make sure videos and embeds fit their containers */
embed,
iframe,
object,
video {
max-width: 100%;
}
.entry-content .twitter-tweet-rendered {
max-width: 100% !important; /* Override the Twitter embed fixed width */
}
/* rules for areas hidden in various hybrid "desktop" views */
.wvr-show-mobile-mobile {display:none;}
.wvr-show-mobile-phone {display:none;}
.wvr-show-mobile-smalltablet {display:none;}
.wvr-show-mobile-tablet {display:none;}
.wvr-show-mobile-any {display:none;}
/* the "desktop" state of some blocks */
#mobile-widget-area {display:none;}
.weaver-mobile #mobile-widget-area {display:block !important;}
#nav-bottom-menu,
#nav-top-menu {display:block;} /* needed for iOS */
#mobile-bottom-nav,
#mobile-top-nav {display:none;}
/* .weaver-mobile applies to phones and small tablets
So, this should apply to anything with a width of < 700, or a height <= 600
*/
/* ========== Simulator rules needed to override previous rules ============== */
.weaver-mobile .post-avatar {max-height:32px !important;max-width:32px !important;}
.weaver-mobile .mobile_widget_area {margin:6px 4px 4px 4px;}
.weaver-mobile #site-title {overflow:hidden;padding:0;position:relative;left:0px;top:0px;}
.weaver-mobile #site-title {font-size:140% !important;line-height:1.5em;}
.weaver-mobile #wrapper {padding:0px;}
.weaver-phone #site-description {display:none;}
.weaver-mobile .entry-content,
.weaver-mobile .entry-summary {padding-top:.5em;}
.weaver-mobile #content .entry-content p,
.weaver-mobile #content .entry-summary p {margin-bottom:.5em;}
.weaver-mobile #branding, .weaver-mobile #colophon {margin-left:0px;}
.weaver-mobile .entry-title a,
.weaver-mobile .entry-title {font-size:110%;}
.weaver-mobile #site-info {padding-left:4px;}
.weaver-mobile #site-generator {display:none;}
.weaver-mobile .commentlist {margin-left:4px;}
.weaver-mobile #colophon, .weaver-mobile #branding {margin-left:auto !important;margin-right:auto !important;}
.weaver-mobile #content {padding:12px;}
.weaver-mobile #sidebar_wrap_footer.one .widget-in-footer,
.weaver-mobile #sidebar_wrap_footer.two .widget-in-footer,
.weaver-mobile #sidebar_wrap_footer.three .widget-in-footer,
.weaver-mobile #sidebar_wrap_footer.four .widget-in-footer {
float:none !important;
margin:2% 4% 2% 4%;
width:90% !important;
}
.weaver-sim-phone #nav-bottom-menu,
.weaver-sim-phone #nav-top-menu {display:none;}
.weaver-mobile .wvr-show-mobile-mobile {display:inline-block !important;}
.weaver-mobile .wvr-show-mobile-any {display:inline-block !important;}
.weaver-mobile .wvr-hide-mobile-mobile {display:none !important;}
.weaver-mobile .wvr-hide-mobile-any {display:none !important;}
.weaver-phone .wvr-show-mobile-phone {display:inline-block !important;}
.weaver-phone .wvr-show-mobile-any {display:inline-block !important;}
.weaver-phone .wvr-hide-mobile-phone {display:none !important;}
.weaver-phone .wvr-hide-mobile-any {display:none !important;}
.weaver-smalltablet .wvr-show-mobile-smalltablet {display:inline-block !important;}
.weaver-smalltablet .wvr-show-mobile-any {display:inline-block !important;}
.weaver-smalltablet .wvr-hide-mobile-smalltablet {display:none !important;}
.weaver-smalltablet .wvr-hide-mobile-any {display:none !important;}
.weaver-tablet .wvr-show-mobile-tablet {display:inline-block !important;}
.weaver-tablet .wvr-show-mobile-any {display:inline-block !important;}
.weaver-tablet .wvr-hide-mobile-tablet {display:none !important;}
.weaver-tablet .wvr-hide-mobile-any {display:none !important;}
body.weaver-mobile {font-size:12px;padding:0px;}
.weaver-phone #infobar {display:none;}
.weaver-phone #respond input#submit {font-size:90%;width:100%;}
.weaver-tablet .menu_bar ul ul ul {left:50%;top:34px;}
.weaver-tablet .entry-title a,
.weaver-tablet .entry-title {font-size:110% !important;}
.weaver-tablet #wrapper {padding:4px;}
.weaver-smalltablet .menu_bar ul ul ul,
.weaver-smalltablet-sim .menu_bar ul ul ul {left:50% !important;top:34px !important;}
.weaver-smalltablet-sim #nav-bottom-menu,
.weaver-smalltablet-sim #nav-top-menu {display:none;}
.weaver-sim-mobile #container_wrap {width:100% !important;}
body.weaver-sim-mobile {font-size:11px;}
.weaver-smalltablet-sim .entry-title a,
.weaver-smalltablet-sim .entry-title {font-size:110% !important;}
.weaver-smalltablet-sim #respond input#submit {font-size:90% !important;width:100%;}
.weaver-smalltablet-sim #mobile-widget-area {display:block !important;}
.weaver-smalltablet-sim.weaver-mobile-smart-stacked #mobile-widget-area,
.weaver-sim-mobile #sidebar_wrap_left,
.weaver-sim-mobile #sidebar_wrap_right {display:none !important;}
.weaver-sim-mobile.weaver-mobile-smart-stacked #sidebar_wrap_left,
.weaver-sim-mobile.weaver-mobile-smart-stacked #sidebar_wrap_right {display:block !important;width:100% !important;}
@media only screen and (min-width:641px) {
.weaver-mobile-resp-nostack .mobile_menu_bar {display:none;}
}
/* ======================= STACKING SIDEBARS =================== */
@media only screen and (max-width:640px) and (orientation:portrait) {
#container_wrap,
#sidebar_wrap_left,
#sidebar_wrap_right {width:100% !important;}
.weaver-mobile-smart-nostack #sidebar_wrap_left,
.weaver-mobile-smart-nostack #sidebar_wrap_right,
.weaver-mobile-smart-nostack #sidebar_wrap_footer,
.weaver-mobile-resp-nostack #sidebar_wrap_footer,
.weaver-mobile-resp-nostack #sidebar_wrap_left,
.weaver-mobile-resp-nostack #sidebar_wrap_right {display:none !important;}
.weaver-mobile-resp-nostack #mobile-widget-area {display:block !important;}
}
@media only screen and (max-width:640px) and (orientation:landscape) {
#container_wrap,#sidebar_wrap_left,#sidebar_wrap_right {width:100% !important;}
.entry-content p,
.entry-summary p {margin-bottom:.5em !important;line-height:1.25em !important;}
}
/* ===================== Vertical Tablets ================== */
@media only screen and (max-width:768px) and (orientation:portrait) {
.wvr-show-mobile-tablet {display:inline-block !important;}
.wvr-show-mobile-any {display:inline-block !important;}
.wvr-hide-mobile-tablet {display:none !important;}
.wvr-hide-mobile-any {display:none !important;}
}
/* ===================== Small Tablet AND Phones ================== */
@media only screen and (max-width:640px) {
body {font-size:12px !important;padding:0 !important;}
.wvr-show-mobile-mobile {display:inline-block !important;}
.wvr-show-mobile-any {display:inline-block !important;}
.wvr-hide-mobile-mobile {display:none !important;}
.wvr-hide-mobile-any {display:none !important;}
.weaver-mobile-smart-stacked #sidebar_wrap_left, /* weaverjslib will turn on - prevents visible swap of area */
.weaver-mobile-resp-stacked #sidebar_wrap_left {
display:none;
}
#nav-bottom-menu,
#nav-top-menu {min-height:24px;}
#nav-bottom-menu,
#nav-top-menu {display:none;} /* needed for iOS */
.menu_pop_left {margin-left:50% !important;}
.menu_pop_right {margin-right:50% !important;}
.menu_pop_left .menu_bar ul ul {
left:-54%;
top:0px;
}
.post-avatar {max-height:32px !important;max-width:32px !important;}
.menu_bar a {line-height:24px;}
.menu_bar ul ul {top:24px;left:-8px;width:150px;}
.menu_bar ul a {width:120px;padding:2px 12px 8px 6px;}
.menu_bar ul ul a {width:144px;}
.menu_bar ul ul ul {left:25%;top:34px;}
.menu_bar,
.menu_bar ul ul a,
.menu_bar li:hover > a,
.menu_bar ul ul :hover > a { background-image:none !important;}
.sf-sub-indicator {margin-top:-3px; display:none;}
.mobile_widget_area {margin:6px 4px 4px 4px;}
#site-title {
font-size:180% !important;
left:0px;
line-height:1.25em !important;
overflow:hidden;
padding:0;
position:relative;
top:0px;
}
#branding #site-description {font-size:110%;}
#wrapper {padding:0px;}
#content .entry-content,
#content .entry-summary {padding-top:.5em;}
#content .entry-content p,
#content .entry-summary p {margin-bottom:.6em;line-height:1.25em;}
#branding, #colophon {margin-left:0px;}
#content .entry-title a,
#content .entry-title {font-size:110%;}
#site-info {padding-left:4px;}
#site-generator {display:none;}
.commentlist {margin-left:4px;}
#colophon, #branding {margin-left:auto !important;margin-right:auto !important;}
#content {padding:12px;}
.menu_bar ul ul ul {left:50% !important;top:34px !important;}
#respond input#submit {font-size:90% !important;width:100% !important;}
#sidebar_wrap_footer.one .widget-in-footer,
#sidebar_wrap_footer.two .widget-in-footer,
#sidebar_wrap_footer.three .widget-in-footer,
#sidebar_wrap_footer.four .widget-in-footer {
float:none !important;
margin:2% 4% 2% 4%;
width:90% !important;
}
#sidebar_wrap_left {display:none;} /* javascript will display:block if stacked */
.content-3-col-left,
.content-3-col-right {
float:none !important;
overflow:hidden;
width:100% !important;
padding-right:0 !important;
}
/* standard elements */
ul, ol {
margin:0 0 1.0em 1em;
}
dl {
margin:0 .9em;
}
dd {
margin-bottom:1em;
margin-left:.9em;
}
blockquote {
margin:0 1em;
}
.blog-post-cols-2,
.blog-post-cols-3,
.blog-post-cols-4,
.blog-post-cols-5,
.blog-post-cols-2-span-2,
.blog-post-cols-3-span-2,
.blog-post-cols-4-span-2,
.blog-post-cols-5-span-2 {
width:47%;
margin: 6px 6px 0px 6px;
}
.blog-post-cols-2 img,
.blog-post-cols-3 img,
.blog-post-cols-4 img,
.blog-post-cols-5 img {
max-width:97% !important;
}
}
/* ======================= Small Tablets Only ======================= */
@media only screen and (min-width:581px) and (max-width: 640px) {
.wvr-show-mobile-mobile {display:inline-block !important;}
.wvr-show-mobile-any {display:inline-block !important;}
.wvr-hide-mobile-mobile {display:none !important;}
.wvr-hide-mobile-any {display:none !important;}
.wvr-show-mobile-smalltablet {display:inline-block !important;}
.wvr-hide-mobile-smalltablet {display:none !important;}
}
/* =========================== PHONES ONLY ========================== */
@media only screen and (max-width: 580px) { /* 580 chosen because of iPhone 5 landscape */
.wvr-show-mobile-mobile {display:inline-block !important;}
.wvr-show-mobile-any {display:inline-block !important;}
.wvr-hide-mobile-mobile {display:none !important;}
.wvr-hide-mobile-any {display:none !important;}
.wvr-show-mobile-phone {display:inline-block !important;}
.wvr-hide-mobile-phone {display:none !important;}
body {padding: 0 !important; }
.wvr-show-tablet {display: none !important;}
.wvr-show-smalltablet {display: none !important;}
.wvr-show-phone {display: block !important;}
#site-title {font-size:160% !important;line-height:1.5em;}
#site-description {display:none;}
.content-2-col-left,
.content-2-col-right,
.content-3-col-left,
.content-3-col-right {
float:none !important;
overflow:hidden;
width:100% !important;
padding-right:0 !important;
}
#infobar {display:none;}
}
@media only screen and (max-width: 420px) { /* Masonry smaller yet for small screens */
.blog-post-cols-2,
.blog-post-cols-3,
.blog-post-cols-4,
.blog-post-cols-5,
.blog-post-cols-2-span-2,
.blog-post-cols-3-span-2,
.blog-post-cols-4-span-2,
.blog-post-cols-5-span-2 {
width:97%;
}
}
/* ====================== IE fixes ======================== */
#ie7 .wvr-show-mobile-mobile,
#ie8 .wvr-show-mobile-mobile {display:none !important;}
#ie7 .wvr-show-mobile-any,
#ie8 .wvr-show-mobile-any {display:none !important;}
#ie7 .wvr-show-mobile-smalltablet,
#ie8 .wvr-show-mobile-smalltablet {display:none !important;}
#ie7 .wvr-show-mobile-tablet,
#ie8 .wvr-show-mobile-tablet {display:none !important;}
#ie7 .wvr-hide-mobile-mobile,
#ie8 .wvr-hide-mobile-mobile {display:inline-block !important;}
#ie7 .wvr-hide-mobile-any,
#ie8 .wvr-hide-mobile-any {display:inline-block !important;}
#ie7 .wvr-hide-mobile-smalltablet,
#ie8 .wvr-hide-mobile-smalltablet {display:inline-block !important;}
#ie7 .wvr-hide-mobile-tablet,
#ie8 .wvr-hide-mobile-tablet {display:inline-block !important;}
/* ====================== slide open menu ================= */
.mobile-menu-link {
border-width:1px;
border-style:solid;
float:right;
margin-right:15px;
padding:0 2px 0 4px;
}
.mobile-menu-add {
padding-bottom: 10px;
text-align:center !important;
}
.menu-add .mad-br {display: none;}
.menu-vertical .menu-add .mad-br {display:block !important;}
.menu-vertical .menu-add-left {display:none !important;}
.menu-vertical .menu-add {display:block !important; float:none; text-align:center;max-height:100%;padding-bottom:4px;}
.menu-vertical .sf-menu .sf-with-ul:after {content:" \2193";} /* this adds arrow to superfish/mobile. alt: 21e9 */
/* ============================ User Agent Smart Model Rules ================ */
@media only screen and (min-width: 581px) and (max-width: 640px) { /* vertical small tablet */
.weaver-smalltablet #container_wrap {width:100% !important;}
}
@media only screen and (min-width: 641px) { /* horizontal small tablet */
.weaver-smalltablet #mobile-widget-area {display:none !important;}
}