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