-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
responsive-767px-max-bootstrap2.less
138 lines (127 loc) · 2.43 KB
/
responsive-767px-max-bootstrap2.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
//
// Responsive: Landscape phone to desktop/tablet
// --------------------------------------------------
// For sreens that are on the money with the page width, lets add some space
@media (max-width: @oscarpagewidth) {
.header {
.page_inner {
padding-left:20px;
padding-right:20px;
}
}
}
@media (max-width: 767px) {
// Remove padding here, we are setting in on page inner
body {
padding: 0;
}
// Utilities
.align-right,
.align-center {
text-align: left;
}
// Make the brand a little more significant
.header h1 {
text-align: center;
}
// Padding for the static navbars
.navbar-static-top .navbar-inner,
.checkoutNav ul {
padding:5px;
}
.navbar-static-top {
margin-left:0;
margin-right:0;
}
// Make the navbar collase button the same height as the other navbar buttons
.btn-navbar > span {
display:inline-block;
}
.navbar.primary {
.btn-navbar {
// Lets move the browse button to the left, with basket total on right
&.btn-nav-collapse {
float:left;
}
}
.nav {
margin-top:10px;
}
input[type="search"] {
width:100px;
}
}
// The carousel JS isn't initialised for mobile, great, but we should make the products visible
.es-carousel-wrapper,
.es-carousel {
border:none;
padding:0;
}
.es-carousel {
ul {
display:block;
margin-left: 0;
margin-right: 0;
li {
float:none;
height:auto;
display:block;
}
}
}
// Product lists need to remove some shackles
.product_pod,
.product_pod .availability,
.availability,
.rg-image {
text-align: left;
}
.image_container img,
.product_pod .star {
margin-left:0;
margin-right:0;
}
.product_pod {
position: relative;
height: auto;
.product_price {
position: static;
width: auto;
min-height: 0;
}
}
// Basket items
.basket-items {
img {
margin: 0 0 @baseLineHeight / 2;
}
}
// Checkout navigation
.nav-checkout {
// For mobile lets only show the active and the previous link in the checkout
.previous span,
.visited,
.disabled {
display:none;
}
// Center the active state
.active {
position:absolute;
top:0;
left:0;
}
// Previous needs to be above active to be clickable
.previous {
position:relative;
z-index: 1;
}
}
}
// Override for Bootstrap 2.3.1/2.3.2
// Fix disappearing menu in mobile Android Chrome
// https://github.com/twbs/bootstrap/issues/11145
@media (max-width: 480px) {
.nav-collapse {
-webkit-transform: none;
}
}