Bug 5287: Add floating toolbar to search results in OPAC
[koha-equinox.git] / koha-tmpl / opac-tmpl / bootstrap / css / src / _responsive.scss
1 @import "mixins";
2
3 @media only screen and ( min-width: 0 ) and ( max-width: 304px ) {
4     /* Screens bewteen 0 and 304 pixels wide */
5     input,
6     select,
7     textarea {
8         max-width: 11em;
9         width: auto;
10     }
11 }
12
13 @media only screen and ( min-width: 0 ) and ( max-width: 440px ){
14     /* Screens bewteen 0 and 390 pixels wide */
15     .ui-tabs .ui-tabs-nav li a,
16     .statictabs li a {
17         padding: .1em .5em;
18     }
19
20     .input-fluid {
21         width: 90%;
22     }
23
24     #wrap {
25         padding: 0px;
26     }
27 }
28
29 @media only screen and ( min-width: 342px ) and ( max-width: 479px ) {
30     /* Screens bewteen 342 and 479 pixels wide */
31     .input-fluid {
32         width: 75%;
33     }
34
35     .searchsuggestion {
36         display: block;
37     }
38 }
39 /* Override Bootstrap Responsive CSS fixed navbar */
40 @media ( max-width: 979px ) {
41     .navbar-fixed-top,
42     .navbar-fixed-bottom {
43         margin-left: 0;
44         margin-right: 0;
45         position: fixed;
46     }
47 }
48
49 @media only screen and ( max-width: 608px ) {
50     /* Screens below 608 pixels wide */
51     fieldset {
52         &.rows {
53             label {
54                 display: block;
55                 float: none;
56                 text-align: left;
57             }
58
59             li {
60                 padding-bottom: .5em;
61             }
62
63             ol {
64                 margin-left: 0;
65             }
66
67             .hint {
68                 margin-left: 0;
69             }
70         }
71     }
72
73     body {
74         padding: 0;
75     }
76
77     .tdlabel {
78         display: inline;
79     }
80
81     .navbar-fixed-top,
82     .navbar-static-top {
83         margin: 0;
84     }
85
86     .navbar-inner {
87         padding: 0;
88     }
89
90     .checkall,
91     .clearall,
92     .highlight_controls,
93     #selections-toolbar,
94     .selectcol,
95     .list-actions,
96     #remove-selected {
97         display: none;
98     }
99
100     .table td.bibliocol {
101         padding-left: 1.3em;
102     }
103
104     .actions {
105         display: block;
106
107         a,
108         #login4tags {
109             @include border-radius-all( 4px );
110             background-color: #F2F2EF;
111             border: 1px solid #DDD;
112             display: block;
113             font-size: 120%;
114             font-weight: bold;
115             margin: 2px 0;
116         }
117
118         .label {
119             display: block;
120             font-weight: bold;
121         }
122
123         #login4tags {
124             margin-right: 1em;
125         }
126     }
127
128     #opac-main-search {
129         button,
130         input,
131         select,
132         .librarypulldown .transl1,
133         .input-append {
134             @include border-radius-all( 5px );
135             box-sizing: border-box;
136             display: block;
137             height: 120%;
138             margin: .5em 0;
139             max-width: 100%;
140             width: 97%;
141         }
142
143         .input-append {
144             margin: 0;
145             width: 100%;
146         }
147
148         .librarypulldown .transl1 {
149             width: 94.5%;
150         }
151     }
152
153     .toolbar {
154         .resort {
155             @include border-radius-all( 5px );
156             font-size: 14px;
157             max-width: 100%;
158             padding: 4px 6px;
159         }
160
161         .pagination {
162             li {
163                 a {
164                     font-size: 105%;
165                     padding: .3em .7em;
166                 }
167             }
168         }
169     }
170
171     .mastheadsearch {
172         @include border-radius-all( 0 );
173         margin: 0;
174
175     }
176
177     .main {
178         @include border-radius-all( 0 );
179         margin: .5em 0;
180         padding: 15px;
181     }
182
183     .breadcrumb {
184         margin: 10px 0;
185     }
186
187     #moresearches {
188         text-align: center;
189     }
190
191     #searchsubmit {
192         font-weight: bold;
193     }
194
195     .ui-tabs-panel,
196     .tabs-container,
197     #topissues,
198     #usertags,
199     #usersuggestions {
200         .item-thumbnail {
201             margin: .5em 0 0 .5em;
202         }
203
204         .table-bordered {
205             border: 0;
206         }
207
208         .table {
209             th,
210             thead {
211                 display: none;
212             }
213
214             td {
215                 border-left: 1px solid #DDDDDD;
216                 border-right: 1px solid #DDDDDD;
217                 border-top: 0;
218                 display: block;
219                 padding: .2em;
220             }
221
222             p {
223                 margin-bottom: 2px;
224             }
225         }
226
227         tr {
228             display: block;
229             margin-bottom: .6em;
230
231             td:first-child {
232                 border-radius: 5px 5px 0 0;
233                 border-top: 1px solid #DDDDDD;
234             }
235
236             td:last-child {
237                 border-bottom: 2px solid #CACACA;
238                 border-radius: 0 0 5px 5px;
239             }
240         }
241     }
242
243     .no-image {
244         display: none;
245     }
246 }
247
248 @media only screen and ( max-width: 700px ) {
249     /* Screens below 700 pixels wide */
250     #opac-main-search {
251         label {
252             display: none;
253         }
254     }
255
256     #logo {
257         background: transparent url( "../lib/bootstrap/img/glyphicons-halflings.png" ) no-repeat;
258         background-position: 0 -24px;
259         margin: 14px 14px 0 14px;
260         width: 14px;
261
262         a {
263             padding: 14px 0 0;
264             width: 14px;
265         }
266     }
267
268     #user-menu-trigger {
269         display: inline;
270         margin-right: 12px;
271     }
272
273     #members {
274         clear: both;
275         display: none;
276
277         li {
278             border-bottom: 1px solid #555;
279             padding-right: 20px;
280             text-align: right;
281
282             &:first-child {
283                 border-top: 1px solid #555;
284             }
285
286             &:last-child {
287                 border-bottom: 0;
288             }
289         }
290
291         .nav {
292             float: none;
293
294             > li {
295                 float: none;
296             }
297
298             &.pull-right {
299                 float: none;
300             }
301         }
302
303         .divider-vertical {
304             border: 0;
305             height: 0;
306             margin: 0;
307         }
308     }
309 }
310
311 @media only screen and ( min-width: 480px ) and ( max-width: 608px ) {
312     /* Screens between 480 and 608 pixels wide */
313     .input-fluid {
314         width: 75%;
315     }
316 }
317
318 @media only screen and ( min-width: 608px ) {
319     #views {
320         border-bottom: 1px solid #D6D6D6;
321         margin: 0;
322         padding: 0;
323         white-space: nowrap;
324     }
325
326     .view {
327         border-bottom-width: 0;
328         border-radius: 0;
329         border-right-width: 0;
330         border-top-width: 0;
331     }
332
333     .current-view {
334         border: 0;
335         box-shadow: none;
336     }
337 }
338
339 @media only screen and ( min-width: 608px ) and ( max-width: 767px ) {
340     /* Screens between 608 and 767 pixels wide */
341     .main {
342         padding: .8em 20px;
343     }
344
345     .breadcrumb {
346         margin: 10px 0;
347     }
348
349     .navbar-static-bottom {
350         margin-left: -20px;
351         margin-right: -20px;
352     }
353
354     .row-fluid input.span6 {
355         width: 48.9362%;
356     }
357 }
358
359 @media only screen and ( max-width: 767px ) {
360     /* Screens below 767 pixels wide */
361     a {
362         &.title {
363             font-size: 120%;
364         }
365     }
366
367     #userresults {
368         margin: 0 -20px;
369     }
370
371     .breadcrumb,
372     .menu-collapse {
373         display: none;
374     }
375
376     #search-facets,
377     #menu {
378         margin-bottom: .5em;
379
380         h4 {
381             display: block;
382             margin: 0;
383             padding: 0;
384
385             a {
386                 @include border-radius-all( 7px );
387                 border-bottom: 0;
388                 font-weight: normal;
389                 padding: .7em .2em;
390             }
391         }
392
393         ul {
394             padding: 0;
395         }
396     }
397
398     #menu {
399         li {
400             a {
401                 @include border-radius-all( 0 );
402                 border: 0;
403                 border-bottom: 1px solid #D8D8D8;
404                 display: block;
405                 font-size: 120%;
406                 margin: 0;
407                 text-decoration: none;
408             }
409
410             &.active {
411                 a {
412                     border-right-width: 1px;
413                     border-top: 1px solid #D8D8D8;
414                 }
415             }
416
417             &:last-child {
418                 a {
419                     border-radius: 0 0 7px 7px;
420                 }
421             }
422         }
423     }
424
425     #search-facets {
426         li {
427             padding: .4em;
428         }
429
430         h5 {
431             margin: .2em;
432         }
433     }
434
435     #menu h4 a.menu-open,
436     #search-facets h4 a.menu-open {
437         border-bottom: 1px solid #D8D8D8;
438         border-radius: 7px 7px 0 0;
439     }
440
441     #loginModal {
442         margin: 0;
443         width: auto;
444     }
445 }
446
447 @media only screen and ( max-width: 800px ) {
448     /* Screens below 800 pixels wide */
449     .cartlabel,
450     .listslabel {
451         display: none;
452     }
453
454     .navbar {
455         .divider-vertical {
456             margin: 0 2px;
457         }
458
459         #members {
460             .divider-vertical {
461                 margin: 0 9px;
462             }
463         }
464     }
465
466     .toolbar {
467         select {
468             width: 220px;
469         }
470     }
471 }
472
473 @media only screen and ( min-width: 768px ) {
474     /* Screens above 768 pixels wide */
475     .main {
476         margin-left: 20px;
477         margin-right: 20px;
478     }
479
480     #menu {
481         @include border-radius-all( 0 );
482         border: 0;
483         border-right: 1px solid #D8D8D8;
484
485         h4 {
486             display: none;
487         }
488
489         ul {
490             padding: 1em 0 1em 0;
491         }
492     }
493
494     #didyoumean {
495         margin: .5em 0;
496     }
497
498     .searchsuggestion {
499         white-space: nowrap;
500     }
501
502     .pagination {
503         li {
504             &.page-num {
505                 display: inline;
506             }
507         }
508     }
509 }
510
511 @media only screen and ( min-width: 768px ) and ( max-width: 984px ) {
512     /* Screens between 768 and 984 pixels wide */
513     .librarypulldown .transl1 {
514         width: 38%;
515     }
516 }
517
518 @media only screen and ( min-width: 984px ) {
519     /* Screens above 969 pixels wide */
520     .librarypulldown .transl1 {
521         width: 53%;
522     }
523
524     .pagination {
525         li {
526             &.page-first,
527             &.page-last {
528                 display: inline;
529             }
530
531             &.page-first {
532                 a {
533                     border-left: 1px solid #DDD;
534                 }
535             }
536
537             &.page-prev,
538             &.page-next {
539                 a {
540                     border-left: 0;
541                     border-radius: 0;
542                 }
543             }
544         }
545     }
546 }
547
548 @media only screen and ( max-width: 1040px ) {
549     #a_listResults,
550     #close_pagination {
551         padding: 5px;
552     }
553
554     .pg_menu {
555         li {
556             a {
557                 display: block;
558                 float: none;
559                 text-align: left;
560             }
561
562             &.back_results {
563                 a {
564                     border: 0;
565                     border-bottom: 1px solid #DDD;
566                     border-top: 1px solid #DDD;
567                 }
568             }
569         }
570     }
571
572     #ulactioncontainer {
573         min-width: 0;
574     }
575 }