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