Bug 20554: (QA follow up) Remove padding in mobile view
[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 .resort {
154         @include border-radius-all( 5px );
155         font-size: 14px;
156         margin: .5em 0;
157         max-width: 100%;
158         padding: 4px 6px;
159     }
160
161     .mastheadsearch {
162         @include border-radius-all( 0 );
163         margin: 0;
164
165     }
166
167     .main {
168         @include border-radius-all( 0 );
169         margin: .5em 0;
170         padding: 15px;
171     }
172
173     .breadcrumb {
174         margin: 10px 0;
175     }
176
177     #moresearches {
178         text-align: center;
179     }
180
181     #searchsubmit {
182         font-weight: bold;
183     }
184
185     .ui-tabs-panel,
186     .tabs-container,
187     #topissues,
188     #usertags,
189     #usersuggestions {
190         .item-thumbnail {
191             margin: .5em 0 0 .5em;
192         }
193
194         .table-bordered {
195             border: 0;
196         }
197
198         .table {
199             th,
200             thead {
201                 display: none;
202             }
203
204             td {
205                 border-left: 1px solid #DDDDDD;
206                 border-right: 1px solid #DDDDDD;
207                 border-top: 0;
208                 display: block;
209                 padding: .2em;
210             }
211
212             p {
213                 margin-bottom: 2px;
214             }
215         }
216
217         tr {
218             display: block;
219             margin-bottom: .6em;
220
221             td:first-child {
222                 border-radius: 5px 5px 0 0;
223                 border-top: 1px solid #DDDDDD;
224             }
225
226             td:last-child {
227                 border-bottom: 2px solid #CACACA;
228                 border-radius: 0 0 5px 5px;
229             }
230         }
231     }
232
233     .no-image {
234         display: none;
235     }
236 }
237
238 @media only screen and ( max-width: 700px ) {
239     /* Screens below 700 pixels wide */
240     #opac-main-search {
241         label {
242             display: none;
243         }
244     }
245
246     #logo {
247         background: transparent url( "../lib/bootstrap/img/glyphicons-halflings.png" ) no-repeat;
248         background-position: 0 -24px;
249         margin: 14px 14px 0 14px;
250         width: 14px;
251
252         a {
253             padding: 14px 0 0;
254             width: 14px;
255         }
256     }
257
258     #user-menu-trigger {
259         display: inline;
260         margin-right: 12px;
261     }
262
263     #members {
264         clear: both;
265         display: none;
266
267         li {
268             border-bottom: 1px solid #555;
269             padding-right: 20px;
270             text-align: right;
271
272             &:first-child {
273                 border-top: 1px solid #555;
274             }
275
276             &:last-child {
277                 border-bottom: 0;
278             }
279         }
280
281         .nav {
282             float: none;
283
284             > li {
285                 float: none;
286             }
287
288             &.pull-right {
289                 float: none;
290             }
291         }
292
293         .divider-vertical {
294             border: 0;
295             height: 0;
296             margin: 0;
297         }
298     }
299 }
300
301 @media only screen and ( min-width: 480px ) and ( max-width: 608px ) {
302     /* Screens between 480 and 608 pixels wide */
303     .input-fluid {
304         width: 75%;
305     }
306 }
307
308 @media only screen and ( min-width: 608px ) {
309     #views {
310         border-bottom: 1px solid #D6D6D6;
311         margin: 0;
312         padding: 0;
313         white-space: nowrap;
314     }
315
316     .view {
317         border-bottom-width: 0;
318         border-radius: 0;
319         border-right-width: 0;
320         border-top-width: 0;
321     }
322
323     .current-view {
324         border: 0;
325         box-shadow: none;
326     }
327 }
328
329 @media only screen and ( min-width: 608px ) and ( max-width: 767px ) {
330     /* Screens between 608 and 767 pixels wide */
331     .main {
332         padding: .8em 20px;
333     }
334
335     .breadcrumb {
336         margin: 10px 0;
337     }
338
339     .navbar-static-bottom {
340         margin-left: -20px;
341         margin-right: -20px;
342     }
343
344     .row-fluid input.span6 {
345         width: 48.9362%;
346     }
347 }
348
349 @media only screen and ( max-width: 767px ) {
350     /* Screens below 767 pixels wide */
351     a {
352         &.title {
353             font-size: 120%;
354         }
355     }
356
357     #userresults {
358         margin: 0 -20px;
359     }
360
361     .breadcrumb,
362     #top-pages,
363     .menu-collapse {
364         display: none;
365     }
366
367     #search-facets,
368     #menu {
369         margin-bottom: .5em;
370
371         h4 {
372             display: block;
373             margin: 0;
374             padding: 0;
375
376             a {
377                 @include border-radius-all( 7px );
378                 border-bottom: 0;
379                 font-weight: normal;
380                 padding: .7em .2em;
381             }
382         }
383
384         ul {
385             padding: 0;
386         }
387     }
388
389     #menu {
390         li {
391             a {
392                 @include border-radius-all( 0 );
393                 border: 0;
394                 border-bottom: 1px solid #D8D8D8;
395                 display: block;
396                 font-size: 120%;
397                 margin: 0;
398                 text-decoration: none;
399             }
400
401             &.active {
402                 a {
403                     border-right-width: 1px;
404                     border-top: 1px solid #D8D8D8;
405                 }
406             }
407
408             &:last-child {
409                 a {
410                     border-radius: 0 0 7px 7px;
411                 }
412             }
413         }
414     }
415
416     #search-facets {
417         li {
418             padding: .4em;
419         }
420
421         h5 {
422             margin: .2em;
423         }
424     }
425
426     #menu h4 a.menu-open,
427     #search-facets h4 a.menu-open {
428         border-bottom: 1px solid #D8D8D8;
429         border-radius: 7px 7px 0 0;
430     }
431
432     #loginModal {
433         margin: 0;
434         width: auto;
435     }
436 }
437
438 @media only screen and ( max-width: 800px ) {
439     /* Screens below 800 pixels wide */
440     .cartlabel,
441     .listslabel {
442         display: none;
443     }
444
445     .navbar {
446         .divider-vertical {
447             margin: 0 2px;
448         }
449
450         #members {
451             .divider-vertical {
452                 margin: 0 9px;
453             }
454         }
455     }
456 }
457
458 @media only screen and ( min-width: 768px ) {
459     /* Screens above 768 pixels wide */
460     .main {
461         margin-left: 20px;
462         margin-right: 20px;
463     }
464
465     #menu {
466         @include border-radius-all( 0 );
467         border: 0;
468         border-right: 1px solid #D8D8D8;
469
470         h4 {
471             display: none;
472         }
473
474         ul {
475             padding: 1em 0 1em 0;
476         }
477     }
478
479     #didyoumean {
480         margin: 0;
481     }
482
483     .searchsuggestion {
484         white-space: nowrap;
485     }
486 }
487
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     }
493 }
494
495 @media only screen and ( min-width: 984px ) {
496     /* Screens above 969 pixels wide */
497     .librarypulldown .transl1 {
498         width: 53%;
499     }
500
501 }
502
503 @media only screen and ( max-width: 1040px ) {
504     #a_listResults,
505     #close_pagination {
506         padding: 5px;
507     }
508
509     .pg_menu {
510         li {
511             a {
512                 display: block;
513                 float: none;
514                 text-align: left;
515             }
516
517             &.back_results {
518                 a {
519                     border: 0;
520                     border-bottom: 1px solid #DDD;
521                     border-top: 1px solid #DDD;
522                 }
523             }
524         }
525     }
526
527     #ulactioncontainer {
528         min-width: 0;
529     }
530 }