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