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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
|
@import "colours";
@import "../fixmystreet/layout";
@import "zurich";
// Things to override from parent stylesheet
body {
color: #3c3c3c;
background-color: #fff;
}
// White background, so no shadow or margin needed.
.content {
color: #3c3c3c;
@include box-shadow(none);
}
.ie6, .ie7, .ie8 {
.content {
border: none;
}
}
// Except on map pages (which includes the front page)
body.mappage .content, body.frontpage .content {
@include box-shadow(0 0 6px 1px #000);
}
.ie6, .ie7, .ie8 {
body.mappage .content, body.frontpage .content {
border: 1px solid #666;
}
}
/* The header on a map page needs a shadow too */
body.mappage .nav-wrapper-2 {
@include box-shadow(0 0 6px 1px #000);
}
/* Except on admin pages where there's an admin nav directly underneath it */
body.mappage.admin .nav-wrapper-2 {
@include box-shadow(none);
}
// Different header and logo
#site-header .container {
height: 99px;
background: url(logo_portal.x.jpg) top left repeat-x;
}
body.frontpage #site-logo, #site-logo {
width: 415px;
height: 99px;
background: url(logo_portal.jpg) top left no-repeat;
top: 0;
left: auto; // base set this to 0
}
// Static map on front page
body.frontpage {
.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 {
height: 117px;
background-color: #fff;
@include box-shadow(0 0 6px 1px #000);
}
}
#site-logo-text {
position: absolute;
top: 0;
z-index: 3;
padding-top: 83px;
padding-left: 10px;
color: #585858;
font-size: 85%;
}
body.mappage #site-logo-text {
position: fixed;
}
.nav-wrapper {
.nav-wrapper-2 {
border-top: none;
}
.nav-wrapper-3 {
height: 99px;
padding-top: 18px;
}
}
body.mappage {
.nav-wrapper {
.nav-wrapper-2 {
border-top: none;
background: #fff;
height: 117px; // 99px+18px for padding
padding: 0 10px;
box-sizing: border-box;
}
}
/* Ugh :( But first wrapper is the caption, second is the fixed (so first we
can do padding on) so a third seems necessary for the background then. */
.nav-wrapper-3 {
height: 99px;
padding-top: 18px;
background: #fff url(logo_portal.x.jpg) top left repeat-x;
}
#site-logo {
margin-left: 10px;
}
}
// Logged in notice in footer (appearing in header)
.nav-wrapper-2 p:first-child {
font-weight: bold;
margin-top: 0.75em;
}
.nav-wrapper-2 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;
}
}
}
/* TODO Change the main-nav to be what is wanted */
#main-nav {
ul#main-menu {
li {
a:hover {
background: $primary/1.1;
}
span {
color: $primary_text;
}
}
}
}
#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 {
#main-nav ul#main-menu li a,
#main-nav ul#main-menu li span {
padding: 0.75em;
}
#zurich-footer {
display: none;
}
}
body.twothirdswidthpage {
.content {
aside {
@include box-shadow(none);
}
.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 background(linear-gradient(#769643, $col_fixed_label 4px));
}
&#closed {
padding-top: 2em;
background-image: none;
}
}
}
.ie6 .banner p {
&#fixed {
background-image: none;
}
}
#fms_pan_zoom {
top: 9em !important;
}
#fms_pan_zoom_zoomin {
top: 0 !important;
}
#fms_pan_zoom_zoomout {
top: 44px !important;
}
// Admin specific changes
body.fullwidthpage.admin .content {
width: 100%;
}
body.mappage.admin .content {
margin-top: 6em;
margin-left: 0.5em;
}
.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;
}
}
#zurich-footer {
margin: 2em auto 3em auto;
}
table {
width: 100%;
font-size: 0.9em;
border: 1px solid $table_border_color;
border-collapse: collapse;
margin-bottom: 1em;
th, td {
padding: 0.666em 0.5em;
border: 1px solid $table_border_color;
}
th {
color: white;
background-color: $table_heading_bg_col;
border-bottom: 2px solid $table_heading_underline_col;
border-left: 1px solid $table_heading_border_col;
border-right: 1px solid $table_heading_border_col;
a:link, a:visited {
color: white;
}
}
td.record-id {
text-align: center;
font-weight: bold;
}
tr.filter-row td {
display: none; /* TODO: reveal when filtering is implemented */
padding: 4px 4px 4px 40px;
background-color: $button_bg_col;
background-image: url('search-icon-white.png');
background-position: 14px center;
background-repeat: no-repeat;
border-bottom: 2px solid $table_border_color;
}
tr.filter-row td input[type=text] {
background-color: #e1e1e1;
width: 16em;
@include border-radius(4px);
border: none;
padding: 3px 0.5em;
}
}
}
.admin-nav-wrapper {
background-color: white;
padding: 1.5em 0 1em;
}
body.mappage .admin-nav-wrapper {
box-sizing: border-box;
padding-left: 10px;
padding-right: 10px;
position: fixed;
width: 100%;
@include box-shadow(0 0 6px 1px #000);
}
.admin-nav {
background: #f4f4f4;
@include background(linear-gradient(#fbfbfb, #efefef));
border-bottom: 2px solid $table_border_color;
ul {
overflow:auto;
margin:0 0 -2px 0;
list-style: none;
padding: 0;
border-top: 1px solid $table_border_color;
border-left: 1px solid $table_border_color;
border-right: 1px solid $table_border_color;
li {
border-right: 1px solid $table_border_color;
float:left;
list-style: none;
margin:0;
padding: 0.5em 1em;
font-weight: bold;
color: #000;
a {
color: #000;
}
}
li.search-box {
float: right;
}
li.current {
background-color: #fff;
border-bottom: 2px solid #fff;
}
li.search-box {
border:none;
padding: 0.2em 0.5em 0.2em 30px;
background-image: url('search-icon.png');
background-position: 2px center;
background-repeat: no-repeat;
input {
height: 100%;
width: 12em;
border: none;
padding: 6px 0.5em;
}
}
}
}
|