blob: 31469926fa9b70c074ed4a1164ed168ce1167d79 (
plain)
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
|
// Zurich has a taller map page header than most cobrands.
$mappage-header-height: 7em;
@import "colours";
@import "../sass/layout";
@import "zurich";
// Things to override from parent stylesheet
.content {
color: #3c3c3c;
}
// Different header and logo
#site-header {
background-color: #fff;
border-top: none;
margin-bottom: 2em;
.container {
background: #fff url(logo_portal.x.jpg) top left repeat-x;
padding: 0;
}
}
body.mappage {
#site-header {
// The header on a map page needs a shadow too
@include box-shadow(0 0 6px 1px #000);
z-index: 2; // One more than #zurich-main-nav so it's on top
.container {
margin: 0 1em; // White padding left/right
}
}
// Except on admin pages where there's an admin nav directly underneath it
&.admin #site-header {
@include box-shadow(none);
}
}
#site-logo-text {
display: inline;
position: absolute;
top: 0;
z-index: 3;
padding-top: 83px;
padding-left: 10px;
color: #585858;
font-size: 85%;
}
body.mappage #site-logo-text {
padding-left: 0;
}
#site-logo {
width: 415px;
height: 83px;
background-position: top left;
margin-left: 0;
}
body.mappage #site-logo {
margin-left: 0;
}
.nav-wrapper {
top: 18px;
}
#main-nav {
margin-top: 0;
display: block; // Stop the default 'flex'
body.mappage & {
// As header gets a z-index above for the shadow
// Otherwise this would be invisible underneath
z-index: 2;
position: relative;
}
}
// Static map on front page
body.frontpage {
// Front page content needs a shadow.
// (Purely decorative: No need for border fallback for IE8)
.content {
@include box-shadow(0 0 6px 1px #000);
}
.table-cell {
background-position: 50% 117px;
background-repeat: no-repeat;
background-image: url(mapbg-1024.jpg);
@media all and (min-width: 1025px) {
background-image: url(mapbg-1600.jpg);
}
.content {
margin: 2em auto; // Spacing around front content on top of static map
}
}
#site-header {
@include box-shadow(0 0 6px 1px #000);
height: 117px;
}
#zurich-footer-wrapper {
padding: 1px 0;
@include box-shadow(0 -6px 6px -5px #000);
position: relative;
}
}
// Logged in notice in footer (appearing in header)
.nav-wrapper p:first-child {
font-weight: bold;
margin-top: 0.75em;
}
.nav-wrapper p {
line-height: 1.2;
color: white;
clear: right;
float: right;
margin: 0 1em 0 0;
font-size: 85%;
a {
color: white;
font-size: 85%;
}
a:hover {
color: white;
}
}
#front-main {
background-color: inherit;
color: inherit;
margin: 0 0 2em 0;
#postcodeForm div {
border-color: $dark_blue;
input#pc {
max-width: none;
}
}
}
#zurich-main-nav {
margin: -1em -1em 1em -1em; // -1em spreads back out over content's 1em padding
padding: 0;
background-color: #6A6869;
ul {
overflow:auto;
margin:0 0 0 0;
list-style: none;
padding: 0;
li {
font-size: 80%;
float:left;
list-style: none;
margin:0;
color: #fff;
a, span {
display: block;
padding: 0.75em 1em;
}
a {
color: #fff;
text-decoration: none;
&:hover {
background-color: #333;
}
}
span {
background-color: $zurich_blue;
}
}
}
}
body.mappage {
#zurich-footer {
display: none;
}
#map_sidebar {
padding-top: 3em; // make space for the #zurich-main-nav
}
#zurich-main-nav {
margin: 0;
position: absolute;
top: 7em;
left: 0;
width: 29em; // width of #map_sidebar (including padding)
z-index: 1;
}
}
body.twothirdswidthpage {
.content {
.sticky-sidebar aside {
top: 14em; // overrides default value, due to Zurich nav at top of content
}
}
}
// Zurich base has made this a more simple construct. The top is to pull it up
// over the content padding to be attached to the top of the content area.
// We reduce the padding as no pin image, and change the background.
.banner {
top: -1em;
p {
&#fixed {
padding-top: 2em;
background: $col_fixed_label;
@include linear-gradient(#769643, $col_fixed_label 4px);
}
&#closed {
padding-top: 2em;
background-image: none;
}
}
}
#fms_pan_zoom {
top: 2em;
}
#fms_pan_zoom_zoomin {
top: 0;
}
#fms_pan_zoom_zoomout {
top: 44px;
}
// Admin specific changes
body.mappage.admin {
// Shuffle things around so they're in the right place
#map_box {
top: 11em;
left: 40em;
}
#map_sidebar {
top: 11em;
width: 40em;
padding: 0;
background: #fff url(/cobrands/zurich/admin-faux-columns.gif) top center repeat-y;
}
}
.admin-report-edit {
padding: 1em;
width: 50%;
float: right;
font-size: 0.8em;
box-sizing: border-box;
button, input[type="submit"], .btn {
padding: 0.5em 0.5em 0.3em 0.5em;
text-transform: none;
}
h2 {
font-family: inherit;
font-size: inherit;
font-weight: bold;
}
}
.admin-report-edit--details {
label[for="title"],
label[for="detail"] {
display: none;
}
#title {
margin-top: 1em;
font-weight: bold;
}
#detail {
margin-bottom: 1em;
}
}
.admin-report-edit--interact {
margin-top: -1.25em; // To counteract the label's default top margin
}
.admin {
.content {
margin: 2em 0 1em;
padding: 0 0 0 0;
ul.no-bullets {
margin-left: 0;
> li {
list-style: none;
}
}
li.assignation {
list-style: none;
}
.mock-label {
font-weight: bold;
padding-right: 0.333em;
}
textarea {
min-height: 0;
}
}
button, input[type=submit], .btn {
&.delete {
font-size: 0.75em;
color: #933;
margin: 2em 0;
&:hover {
@include linear-gradient(#fcc, #daa 50%);
};
}
}
#zurich-footer {
margin: 2em auto 3em auto;
}
.message-updated {
color: #060;
font-weight: bold;
position: absolute;
}
}
.admin-nav-wrapper {
padding: 1.5em 0 1em;
}
body.mappage .admin-nav-wrapper {
margin-top: 6em;
}
|