Bug 18084: Language selector hidden in user menu on mobile interfaces
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / css / src / _responsive.scss
blob6a718ce3d8d99c871d2f9055e4979341a3d8e884
1 @import "mixins";
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     }
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     }
20     .input-fluid {
21         width: 90%;
22     }
24     #wrap {
25         padding: 0;
26     }
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     }
35     .searchsuggestion {
36         display: block;
37     }
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     }
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             }
59             li {
60                 padding-bottom: .5em;
61             }
63             ol {
64                 margin-left: 0;
65             }
67             .hint {
68                 margin-left: 0;
69             }
70         }
71     }
73     body {
74         padding: 0;
75     }
77     .tdlabel {
78         display: inline;
79     }
81     .navbar-fixed-top,
82     .navbar-static-top {
83         margin: 0;
84     }
86     .navbar-inner {
87         padding: 0;
88     }
90     .checkall,
91     .clearall,
92     .highlight_controls,
93     #selections-toolbar,
94     .selectcol,
95     .list-actions,
96     #remove-selected {
97         display: none;
98     }
100     .table td.bibliocol {
101         padding-left: 1.3em;
102     }
104     .actions {
105         display: block;
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         }
118         .label {
119             display: block;
120             font-weight: bold;
121         }
123         #login4tags {
124             margin-right: 1em;
125         }
126     }
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         }
143         .input-append {
144             margin: 0;
145             width: 100%;
146         }
148         .librarypulldown .transl1 {
149             width: 94.5%;
150         }
151     }
153     .toolbar {
154         .resort {
155             @include border-radius-all( 5px );
156             font-size: 14px;
157             max-width: 100%;
158             padding: 4px 6px;
159         }
161         .pagination {
162             li {
163                 a {
164                     font-size: 105%;
165                     padding: .3em .7em;
166                 }
167             }
168         }
169     }
171     .mastheadsearch {
172         @include border-radius-all( 0 );
173         margin: 0;
175     }
177     .main {
178         @include border-radius-all( 0 );
179         margin: .5em 0;
180         padding: 15px;
181     }
183     .breadcrumb {
184         margin: 10px 0;
185     }
187     #moresearches {
188         text-align: center;
189     }
191     #searchsubmit {
192         font-weight: bold;
193     }
195     .ui-tabs-panel,
196     .tabs-container,
197     #topissues,
198     #usertags,
199     #usersuggestions {
200         .item-thumbnail {
201             margin: .5em 0 0 .5em;
202         }
204         .table-bordered {
205             border: 0;
206         }
208         .table {
209             th,
210             thead {
211                 display: none;
212             }
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             }
222             p {
223                 margin-bottom: 2px;
224             }
225         }
227         tr {
228             display: block;
229             margin-bottom: .6em;
231             td:first-child {
232                 border-radius: 5px 5px 0 0;
233                 border-top: 1px solid #DDDDDD;
234             }
236             td:last-child {
237                 border-bottom: 2px solid #CACACA;
238                 border-radius: 0 0 5px 5px;
239             }
240         }
241     }
243     .no-image {
244         display: none;
245     }
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     }
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;
262         a {
263             padding: 14px 0 0;
264             width: 14px;
265         }
266     }
268     #user-menu-trigger {
269         display: inline;
270         margin-right: 12px;
271     }
273     #members {
275     }
278 @media only screen and ( min-width: 480px ) and ( max-width: 608px ) {
279     /* Screens between 480 and 608 pixels wide */
280     .input-fluid {
281         width: 75%;
282     }
285 @media only screen and ( min-width: 608px ) {
286     #views {
287         border-bottom: 1px solid #D6D6D6;
288         margin: 0;
289         padding: 0;
290         white-space: nowrap;
291     }
293     .view {
294         border-bottom-width: 0;
295         border-radius: 0;
296         border-right-width: 0;
297         border-top-width: 0;
298     }
300     .current-view {
301         border: 0;
302         box-shadow: none;
303     }
306 @media only screen and ( min-width: 608px ) and ( max-width: 767px ) {
307     /* Screens between 608 and 767 pixels wide */
308     .main {
309         padding: .8em 20px;
310     }
312     .breadcrumb {
313         margin: 10px 0;
314     }
316     .navbar-static-bottom {
317         margin-left: -20px;
318         margin-right: -20px;
319     }
321     .row-fluid input.span6 {
322         width: 48.9362%;
323     }
326 @media only screen and ( max-width: 767px ) {
327     /* Screens below 767 pixels wide */
328     a {
329         &.title {
330             font-size: 120%;
331         }
332     }
334     #userresults {
335         margin: 0 -20px;
336     }
338     .breadcrumb,
339     .menu-collapse {
340         display: none;
341     }
343     #search-facets,
344     #menu {
345         margin-bottom: .5em;
347         h4 {
348             display: block;
349             margin: 0;
350             padding: 0;
352             a {
353                 border-bottom: 0;
354                 font-weight: normal;
355                 padding: .7em .2em;
356             }
357         }
359         ul {
360             padding: 0;
361         }
362     }
364     #menu {
365         li {
366             a {
367                 @include border-radius-all( 0 );
368                 border: 0;
369                 border-bottom: 1px solid #D8D8D8;
370                 display: block;
371                 font-size: 120%;
372                 margin: 0;
373                 text-decoration: none;
374             }
376             &.active {
377                 a {
378                     border-right-width: 1px;
379                     border-top: 1px solid #D8D8D8;
380                 }
381             }
383             &:last-child {
384                 a {
385                     border-radius: 0 0 7px 7px;
386                 }
387             }
388         }
389     }
391     #search-facets {
392         li {
393             padding: .4em;
394         }
396         h5 {
397             margin: .2em;
398         }
399     }
401     #menu h4 a.menu-open,
402     #search-facets h4 a.menu-open {
403         border-bottom: 1px solid #D8D8D8;
404     }
406     #loginModal {
407         margin: 0;
408         width: auto;
409     }
412 @media only screen and ( max-width: 800px ) {
413     /* Screens below 800 pixels wide */
414     .cartlabel,
415     .listslabel,
416     .langlabel,
417     .userlabel {
418         display: none;
419     }
421     .navbar {
422         .divider-vertical {
423             margin: 0 2px;
424         }
425     }
427     .toolbar {
428         select {
429             width: 220px;
430         }
431     }
434 @media only screen and ( min-width: 768px ) {
435     /* Screens above 768 pixels wide */
436     .main {
437         margin-left: 20px;
438         margin-right: 20px;
439     }
441     #menu {
442         @include border-radius-all( 0 );
443         border: 0;
444         border-right: 1px solid #D8D8D8;
446         h4 {
447             display: none;
448         }
450         ul {
451             padding: 1em 0 1em 0;
452         }
453     }
455     #didyoumean {
456         margin: .5em 0;
457     }
459     .searchsuggestion {
460         white-space: nowrap;
461     }
463     .pagination {
464         li {
465             &.page-num {
466                 display: inline;
467             }
468         }
469     }
471     a {
472         &.menu-collapse-toggle {
473             &:link,
474             &:visited,
475             &:hover,
476             &:active {
477                 color: #727272;
478                 cursor: default;
480                 &::before {
481                     display: none;
482                 }
483             }
484         }
485     }
488 @media only screen and ( min-width: 768px ) and ( max-width: 984px ) {
489     /* Screens between 768 and 984 pixels wide */
490     .librarypulldown .transl1 {
491         width: 38%;
492     }
495 @media only screen and ( min-width: 984px ) {
496     /* Screens above 969 pixels wide */
497     .librarypulldown .transl1 {
498         width: 53%;
499     }
501     .pagination {
502         li {
503             &.page-first,
504             &.page-last {
505                 display: inline;
506             }
508             &.page-first {
509                 a {
510                     border-left: 1px solid #DDD;
511                 }
512             }
514             &.page-prev,
515             &.page-next {
516                 a {
517                     border-left: 0;
518                     border-radius: 0;
519                 }
520             }
521         }
522     }
525 @media only screen and ( max-width: 1040px ) {
526     #a_listResults,
527     #close_pagination {
528         padding: 5px;
529     }
531     .pg_menu {
532         li {
533             a {
534                 display: block;
535                 float: none;
536                 text-align: left;
537             }
539             &.back_results {
540                 a {
541                     border: 0;
542                     border-bottom: 1px solid #DDD;
543                     border-top: 1px solid #DDD;
544                 }
545             }
546         }
547     }
549     #ulactioncontainer {
550         min-width: 0;
551     }
554 @media only screen and ( max-width: 1100px ) {
555     .cartlabel,
556     .listslabel,
557     .langlabel,
558     .userlabel {
559         display: none;
560     }