Merge remote-tracking branch 'origin/new/bug_8233'
[koha.git] / koha-tmpl / opac-tmpl / ccsr / en / css / mobile.css
1 /*
2     Mobile stylesheet
3     Frédérick Capovilla, 2012 - Libéo
4 */
5
6 /* Hidden elements */
7
8 .mobile-hidden,
9 body#opac-main #login,
10 body#opac-main #login~div,
11 body#opac-main #opacnav,
12 body#opac-main #opacmainuserblock,
13 body#opac-main #news,
14 body#results #facetcontainer,
15 body#opac-detail #ulactioncontainer>:not(#action),
16 body#opac-detail #ulactioncontainer #action a:not(.reserve),
17 body#opac-detail #shelfbrowser,
18 body#opac-detail #views,
19 body#opac-detail div#bibliodescriptions>ul>li:nth-of-type(n+3),
20 body#results #userresults .pages:nth-of-type(1),
21 body#results #userresults>br,
22 body#results td.select.selectcol,
23 body#results span.results_summary.actions>:not(.hold),
24 body#results span.addto,
25 body#results span#placehold,
26 body#results span.checkall,
27 body#results span.clearall,
28 body#results .searchresults td.resultscontrol,
29 body#advsearch form div.yui-g:nth-last-of-type(-n+4),
30 body#opac-readingrecord ul.ui-tabs-nav li,
31 body#opac-login-page #opac-main-search div#libraryname,
32 #leftmenus>:not(#menu),
33 #top-bar #menu-left,
34 #members>ul>li:nth-child(2),
35 #moresearches,
36 #breadcrumbs>p:nth-of-type(1),
37 #main_footer .colleft,
38 #opac-main-search a.logo {
39     display:none !important;
40 }
41
42
43 /* General */
44
45 body{
46     min-width: 100px;
47 }
48
49 #doc, #doc2, #doc3, #doc4, .yui-t1, .yui-t2, .yui-t3, .yui-t4, .yui-t5, .yui-t6, .yui-t7 {
50     min-width: 100px;
51 }
52
53 .yui-ge div.first, .yui-gf .yui-g, .yui-gf .yui-u{
54     width: 100%;
55 }
56
57 #bd:after, .yui-g:after, .yui-gb:after, .yui-gc:after, .yui-gd:after, .yui-ge:after, .yui-gf:after {
58     content: "";
59 }
60
61 #container{
62     border-radius: 0;
63     margin: 0;
64     padding: 0;
65     padding-bottom: 10px;
66     border: 0;
67 }
68
69 #container #ctn_lt {
70     padding: 0 10px;
71     padding-left: auto;
72 }
73
74 #doc3{
75     margin: 0;
76     width: 100%;
77 }
78
79 #opac-main-search {
80     margin: 0 !important;
81     padding: 0;
82 }
83
84 #main_footer{
85     margin-bottom: 0;
86 }
87
88 #yui-main .yui-b {
89     margin: 0 !important;
90 }
91
92 #breadcrumbs{
93     margin: 0 !important;
94     padding: 0 !important;
95 }
96
97 body#results #breadcrumbs>*{
98     padding: 20px !important;
99 }
100
101
102 /* Main */
103
104 body#opac-main #container #ctn_lt{
105     padding: 15px;
106 }
107
108 body#opac-main #opacmainuserblockmobile {
109     display: block;
110 }
111
112
113
114 /* Results */
115
116 body#results div#userresults {
117     padding: 0;
118     border: 0;
119 }
120
121 body#results .yui-t1 #yui-main .yui-b {
122     margin: 0;
123 }
124
125 body#results #container #ctn_lt{
126     padding: 0;
127 }
128
129 body#results .searchresults td.resultscontrol{
130     border-radius: 0;
131 }
132
133 body#results .searchresults .resort{
134     width: 50%;
135     float:right;
136 }
137
138 body#results .searchresults #sort_by{
139     width: 100%;
140 }
141
142 body#results .searchresults .cartlist{
143     width:50%;
144 }
145
146 body#results .results_summary.actions .hold {
147     font-size: 140%;
148     font-weight: bold;
149     margin-left: 0;
150 }
151
152
153 /* Cancel highlighting */
154
155 a .term {
156     text-decoration: inherit;
157 }
158
159 .term {
160     background-color: inherit;
161     color: inherit;
162 }
163
164
165 /* Details */
166
167 body#opac-detail #ctn_lt,
168 body#opac-marcdetail #ctn_lt,
169 body#opac-isbddetail #ctn_lt{
170     margin: 10px;
171     padding: 0;
172 }
173
174 body#opac-detail #opac-detail-yui-ge {
175     padding-top: 15px;
176 }
177
178 #views>span {
179     display:block;
180 }
181
182 body#opac-detail #ulactioncontainer{
183     position: absolute;
184     top: 0;
185     right: 0;
186 }
187
188 body#opac-detail #container {
189     position: relative;
190 }
191
192 body#opac-detail #ulactioncontainer ul{
193     margin-top: 0;
194     padding: 5px;
195 }
196
197 body#opac-detail #ulactioncontainer li{
198     margin: 0;
199     padding: 0;
200 }
201
202 /* Logo in the footer */
203
204 #opac-main-search div#libraryname {
205     display: block;
206     position: absolute;
207     bottom: -116px;
208     left: 0;
209     padding: 0 20px;
210 }
211
212 #opac-main-search div#libraryname img {
213     display: block;
214 }
215
216 #doc3{
217     position: relative;
218 }
219
220 #main_footer {
221     padding-top: 29px;
222 }
223
224 #main_footer .colright,
225 #main_footer .colleft{
226     float: none;
227 }
228
229 #main_footer .colright .koha{
230     float: right;
231     overflow: hidden;
232     text-indent: -5000em;
233     width: 92px;
234     height: 80px;
235     background-position: center;
236 }
237
238
239 /* Login bar */
240
241 div#top-bar {
242     display: block;
243     position: absolute;
244     left: 0;
245     bottom: -29px;
246     top: auto;
247     overflow: hidden;
248     z-index: auto;
249 }
250
251 #members ul{
252     margin: 0;
253 }
254
255
256 /* Search bar */
257
258 form#searchform {
259     border-radius: 0;
260     padding-top: 50px;
261 }
262
263 form#searchform #filters .jqTransformSelectWrapper,
264 form#searchform #libraries .jqTransformSelectWrapper {
265     position: relative;
266     left: 0;
267     top: 0;
268     border-radius: 3px;
269 }
270
271 form.multi-libraries #filters .jqTransformSelectWrapper{
272     width: 49% !important;
273     float: left;
274 }
275
276 form.multi-libraries #libraries .jqTransformSelectWrapper{
277     width: 49% !important;
278     float: right;
279 }
280
281 form.single-library #filters .jqTransformSelectWrapper,
282 form.multi-libraries.single-field-mobile #filters .jqTransformSelectWrapper,
283 form.multi-libraries.single-field-mobile #libraries .jqTransformSelectWrapper{
284     width: 100% !important;
285     float:left;
286 }
287
288 form.multi-libraries .input-wrapper{
289     margin: 0;
290 }
291
292 form#searchform .input-wrapper input[type="text"]{
293     -webkit-box-sizing: border-box;
294     -moz-box-sizing: border-box;
295     box-sizing: border-box;
296     border-radius: 3px;
297 }
298
299 form#searchform .input-wrapper{
300     -webkit-box-sizing: border-box;
301     -moz-box-sizing: border-box;
302     box-sizing: border-box;
303     position: absolute;
304     top: 15px;
305     left: 0;
306     width: 100%;
307     padding: 0 10px;
308     padding-right: 46px;
309 }
310
311 form#searchform input[type="submit"]{
312     position: absolute;
313     border-radius: 0;
314     top: 15px;
315     right: 10px;
316 }
317
318 .jqTransformSelectWrapper{
319     margin: 0;
320 }
321
322 .jqTransformSelectWrapper div{
323     overflow: hidden;
324 }
325
326 .jqTransformSelectWrapper div span{
327     white-space:nowrap;
328 }
329
330 .jqTransformSelectWrapper div a{
331     border-left: 5px solid #FFF;
332     border-right: 5px solid #FFF;
333     background-color: white;
334     box-shadow: -3px 0 5px #FFF;
335     right: 0px;
336     border-radius: 8px;
337 }
338
339 .jqTransformSelectWrapper ul li a{
340     padding: 10px 0;
341 }
342
343 #opac-main-search #fluid {
344     display: block;
345 }
346
347
348 /* Login screen */
349
350 #holds, #opac-auth {
351     min-width: 0;
352     width: auto;
353 }
354
355
356 /* User */
357
358 body#opac-user .yui-b,
359 body#opac-passwd .yui-b,
360 body#opac-search-history .yui-b,
361 body#opac-readingrecord .yui-b,
362 body#opac-userupdate .yui-b,
363 body#opac-account .yui-b{
364     width: auto;
365     float: none;
366 }
367
368 body#opac-user #yui-main ,
369 body#opac-passwd #yui-main ,
370 body#opac-search-history #yui-main ,
371 body#opac-readingrecord #yui-main ,
372 body#opac-userupdate #yui-main ,
373 body#opac-account #yui-main {
374     float: none;
375     margin: 0;
376 }
377
378 body#opac-userupdate .yui-g .yui-u{
379     width: 100%;
380 }
381
382 body#opac-passwd fieldset,
383 body#opac-userupdate fieldset{
384     margin: 1em 0;
385 }
386
387 .renewals {
388     display: inline;
389 }
390
391
392 /* Tables */
393
394 body#opac-user #checkoutst td.links,
395 body#opac-user thead,
396 body#opac-holds div:not(.calendar) table>tbody>tr:nth-child(1),
397 body#opac-readingrecord #readingrec tr:nth-child(1),
398 body#opac-detail #holdingst thead,
399 body#opac-detail #holdingst td.call_no a{
400     display: none !important;
401 }
402
403 body#opac-detail table#holdingst,
404 body#opac-readingrecord table,
405 body#opac-holds div:not(.calendar) table,
406 body#opac-user table#holdst,
407 body#opac-user table#checkoutst{
408     border-right: none;
409     border-top: none;
410     border: none;
411     counter-reset: item;
412 }
413
414 body#opac-detail #holdingst tr,
415 body#opac-readingrecord tr,
416 body#opac-holds div:not(.calendar) tr,
417 body#opac-user #holdst tr,
418 body#opac-user #checkoutst tr{
419     border: none;
420     display: block;
421     position: relative;
422     margin-left: 10px;
423     margin-bottom: 10px;
424 }
425
426 body#opac-detail #holdingst td,
427 body#opac-readingrecord td,
428 body#opac-holds div:not(.calendar) td,
429 body#opac-user #holdst td,
430 body#opac-user #checkoutst td{
431     display: block;
432     border: 1px solid #DDD;
433     position: relative;
434 }
435
436 body#opac-user #checkoutst caption {
437     display: block;
438 }
439
440 body#opac-detail #holdingst tr:before,
441 body#opac-readingrecord tr:before,
442 body#opac-holds div:not(.calendar) tr:not(.copiesrow):before,
443 body#opac-user #holdst tr:before,
444 body#opac-user #checkoutst tr:before {
445     font-weight: bold;
446     content: counter(item) ". ";
447     counter-increment: item;
448     display: block;
449     position: absolute;
450     left: -13px;
451     top: 4px;
452 }
453
454 body#opac-detail #holdingst td:before,
455 body#opac-readingrecord td:before,
456 body#opac-holds div:not(.calendar) td:before,
457 body#opac-user #holdst td:before,
458 body#opac-user #checkoutst td:before {
459     font-weight: bold;
460 }
461
462 body#opac-detail #holdingst td.itype:before {content: "Item type : ";}
463 body#opac-detail #holdingst td.location:before {content: "Location : ";}
464 body#opac-detail #holdingst td.collection:before {content: "Collection : ";}
465 body#opac-detail #holdingst td.call_no:before {content: "Call Number : ";}
466 body#opac-detail #holdingst td.vol_info:before {content: "Vol Info : ";}
467 body#opac-detail #holdingst td.url:before {content: "URL : ";}
468 body#opac-detail #holdingst td.copynumber:before {content: "Copy Number : ";}
469 body#opac-detail #holdingst td.status:before {content: "Status : ";}
470 body#opac-detail #holdingst td.notes:before {content: "Notes : ";}
471 body#opac-detail #holdingst td.date_due:before {content: "Date Due : ";}
472 body#opac-detail #holdingst td.barcode:before {content: "Barcode : ";}
473 body#opac-detail #holdingst td.holds_count:before {content: "Item holds : ";}
474
475 body#opac-user #checkoutst td.date_due:before {content: "Date due : ";}
476 body#opac-user #checkoutst td.call_no:before {content: "Call No. : ";}
477 body#opac-user #checkoutst td.fines:before {content: "Fines : ";}
478
479 body#opac-user #holdst td.reservedate:before {content: "Placed On : ";}
480 body#opac-user #holdst td.expirationdate:before {content: "Expires On : ";}
481 body#opac-user #holdst td.branch:before {content: "Pick Up Location : ";}
482 body#opac-user #holdst td.priority:before {content: "Priority : ";}
483 body#opac-user #holdst td.status:before {content: "Status : ";}
484
485 body#opac-readingrecord #readingrec td:nth-child(3):before {content: "Item Type : ";}
486 body#opac-readingrecord #readingrec td:nth-child(4):before {content: "Call No. : ";}
487 body#opac-readingrecord #readingrec td:nth-child(5):before {content: "Date : ";}
488
489 body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.hold:before {content: "Hold : ";}
490 body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.itype:before {content: "Item Type : ";}
491 body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.priority:before {content: "Priority : ";}
492 body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.reserve_date:before {content: "Hold Starts On Date : ";}
493 body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.expiration_date:before {content: "Hold Not Needed After : ";}
494 body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.place_on_type:before {content: "Place On : ";}
495 body#opac-holds #bibitemloop>tbody>tr:not(.copiesrow) td.branch:before {content: "Pickup Location : ";}
496
497 body#opac-holds #bibitemloop table td.copy:before {content: "Copy : ";}
498 body#opac-holds #bibitemloop table td.itype:before {content: "Item Type : ";}
499 body#opac-holds #bibitemloop table td.barcode:before {content: "Barcode : ";}
500 body#opac-holds #bibitemloop table td.homebranch:before {content: "Home Library : ";}
501 body#opac-holds #bibitemloop table td.holdingbranch:before {content: "Last Location : ";}
502 body#opac-holds #bibitemloop table td.call_no:before {content: "Call Number : ";}
503 body#opac-holds #bibitemloop table td.vol_info:before {content: "Vol Info : ";}
504 body#opac-holds #bibitemloop table td.information:before {content: "Information : ";}
505
506
507 /* Holds */
508
509 body#opac-holds tr.copiesrow {
510     margin-left: 25px;
511 }
512
513 body#opac-holds tr.copiesrow>td:nth-child(1) {
514     display: none;
515 }
516
517 body#opac-holds #bibitemloop tr {
518     margin-bottom: 0;
519 }
520
521
522 /* User Fines table */
523
524 body#opac-account #useraccount th:nth-child(3),
525 body#opac-account #useraccount td:nth-child(3) {
526     display: none !important;
527 }
528
529 body#opac-account #useraccount table {
530     position: relative;
531     margin-bottom: 50px;
532 }
533
534 body#opac-account #useraccount tfoot {
535     display: block;
536     position: absolute;
537     bottom: 0;
538     right: 0;
539     bottom: -23px;
540 }
541
542 body#opac-account #useraccount thead th {
543     padding: 2px 10px;
544 }
545
546 body#opac-account #useraccount tbody td:nth-child(1) {
547     min-width: 70px;
548 }
549
550 body#opac-account #useraccount tbody td:nth-child(4) {
551     text-align: right;
552 }
553
554 body#opac-account #useraccount tfoot th {
555     display: none;
556 }
557
558 body#opac-account #useraccount tfoot td {
559     border-right: 1px solid #DDD;
560 }
561
562 body#opac-account #useraccount tfoot td:before {
563     content: "Total due : "
564 }
565
566
567 /* User menu */
568
569 #leftmenus>#menu ul li.messaging,
570 #leftmenus>#menu ul li.suggestions,
571 #leftmenus>#menu ul li.privateshelves,
572 #leftmenus>#menu {
573     display: none;
574 }
575
576 .mobile_only {
577     display: block;
578 }
579
580 body.mobile_menu form#searchform .input-wrapper{
581     padding-left: 90px;
582 }
583
584 body.mobile_menu_opened #doc3>div,
585 body.mobile_menu_opened #main_footer>div {
586     position: relative;
587     left: 200px;
588 }
589
590 body.mobile_menu_opened #main_footer {
591     display: none;
592 }
593
594 body.mobile_menu_opened #doc3 {
595     overflow: hidden;
596     min-height: 380px;
597 }
598
599 body.mobile_menu_opened #ctn_rb>.ctn_in>.yui-b {
600     position: static;
601 }
602
603 body.mobile_menu_opened #leftmenus>#menu {
604     display: block;
605     position: absolute;
606     width: 200px;
607     height: 100%;
608     top: 0;
609     left: -201px;
610     padding: 0;
611     z-index: 999;
612 }
613
614 #mobile_menu_button {
615     position: absolute;
616     cursor: pointer;
617     background: url(../../images/mobile-menu-button.png) no-repeat scroll 50% 50%;
618     border: 0px;
619     font-size: 0;
620     width: 76px;
621     height: 38px;
622     top: 13px;
623     left: 6px;
624 }