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
391
392
393
394
395
396
397
398
399
400
401
402
403
|
@import "_colours";
@import "../sass/layout";
@import "../sass/report_list_pins";
body, body a {
font-family:"Trebuchet MS",Arial, Helvetica, sans-serif;
}
#front-main {
background-color: $primary;
background-image: none;
@include border-radius(1em 1em 0 0);
margin: 2em 1em 0;
padding-top: 1em;
h1 {
margin: 0 auto 0 auto;
}
h2 {
color: $primary_text;
}
a#geolocate_link {
color: $primary_text;
}
}
// Currently hide the nav-wrapper, because it's in going into Oxfordshire's own nav
// likewise with user-meta
.nav-wrapper, #user-meta {
display: none;
}
// hide the site-header, currently has council logo at top of page
#site-header {
display: none;
}
// White background, so no shadow or margin needed.
.content {
margin: 0;
@include box-shadow(none);
}
.iel8 {
.content {
margin: 0;
border: none;
}
}
// Fix location of aside sidebar
body.twothirdswidthpage {
.content {
aside {
@include box-shadow(none);
}
.sticky-sidebar {
aside {
position: fixed;
top: 10em;
li { // from occ website
padding-left: 19px;
font: 0.813em "Trebuchet MS";
background: url("/cobrands/oxfordshire/images/dot6x6.jpg") no-repeat 0 5px;
}
}
}
}
}
// To prevent font size larger interfering with the fixed Oxfordshire layout
.container { width: auto; }
.full-width { width: 464px; }
.shadow-wrap { width: 464px; }
#map_box {
width: 956px;
height: 600px;
}
.content { width: 432px; }
body.fullwidthpage .content { width: auto; }
body.twothirdswidthpage .content {
width: 640px;
aside {
left: 672px;
width: 208px;
padding: 16px;
}
.sticky-sidebar {
left: 672px;
aside {
top:10em;
}
}
}
body.mappage {
$mappage-header-height: 60px;
#oxford-wrapper {
width: auto;
padding: 0;
background: transparent;
}
#oxford-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 2; // 1 more than `body.mappage .content`
width: auto;
min-height: $mappage-header-height;
padding: 0;
background-color: #069b01; // picked from header.jpg
background-position: 100% 40%;
overflow: auto;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
& > * {
display: none;
}
a.logo {
display: block;
float: left;
height: $mappage-header-height;
width: 200px;
margin: 0;
background: transparent url("/cobrands/oxfordshire/images/logo-light-green.gif") no-repeat 50% 50%;
text-indent: -999px;
* {
display: none;
}
}
#navigation {
display: block;
position: static;
float: right;
}
.menubar {
display: block;
width: auto;
border-top: none;
padding: 0;
// override super-specific "#navigation .menubar .menu-inner .menu>li>a"
// selector from OCC header styles in oxfordshire.scss
.menu-inner .menu {
li {
margin-bottom: 0;
}
a, span {
line-height: 20px;
padding-top: ($mappage-header-height - 20px) / 2;
padding-bottom: ($mappage-header-height - 20px) / 2;
}
}
}
.oxford-user {
display: block;
font-size: 13px;
margin: 0;
color: mix(#ddd, #069b01, 80%);
p {
margin: 0;
padding-top: ($mappage-header-height - 20px) / 2;
padding-bottom: ($mappage-header-height - 20px) / 2;
line-height: 20px;
}
a {
padding: 0 10px;
text-decoration: none;
}
}
}
.wrapper .table-cell {
padding-left: 0;
padding-right: 0;
}
.container {
width: auto;
}
.content {
padding: 1em;
padding-top: $mappage-header-height + 10px;
position: relative;
z-index: 1;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
background-color: $oxfordshire_very_light_green;
// fixmystreet.js gives this element a min-height equal to the window height.
// Set border-box sizing, so that our padding doesn't get added onto height.
box-sizing: border-box;
.extra-text {
padding: 1em;
margin: 0 -1em;
border-bottom: 1px solid $oxfordshire_mid_grey_green;
p:last-child {
margin-bottom: 0;
}
}
.full-width {
width: auto;
margin: 0 -1em;
}
input[type="file"] {
background-color: transparent;
}
}
// Space between green header and sidebar content
#report-a-problem-main,
.problem-header {
padding-top: 1em;
}
// The "Fixed" / "Unknown" tabs on Oxford report pages are "folded"
// round right edge of the sidebar, rather than over the top of it.
.banner {
margin: 0 -1em; // line tab up with right edge of 1em padded sidebar
// Float the tab, rather than absolute positioning, to benefit
// from text wrapping and stop content being hidden behind it.
p {
position: relative; // still required for :before positioning
top: auto;
right: auto;
float: right;
margin: 1em -0.75em 0.5em 1em;
// Swap "fold" triangle to bottom right corner of box, rather than top left.
&:before {
left: auto;
right: 0;
top: auto;
bottom: -0.75em;
border-left: none;
border-bottom: none !important; // override default id selectors
border-top: 0.75em solid #888;
border-right: 0.75em solid transparent;
}
&#fixed:before {
border-top-color: #1D4D05; // dark green
border-top-color: $col_fixed_label_dark;
}
}
}
#oxford-footer {
display: none;
}
}
.item-list--reports {
li:after {
background-color: $oxfordshire_mid_grey_green;
}
h3 {
color: $oxfordshire_link_colour;
}
}
h4.static-with-rule {
margin-top: 1em; // down from default 2em, avoid extra space between heading and .council_info_box
margin-bottom: 0; // no space between this and the .item-list items
background: transparent; // rather than light grey
padding: 0.75em 1em * (1/0.875); // compensate for 0.875 font-size
}
.item-list--updates li {
background: transparent;
margin-top: 0; // no space between list items
// Replicate .item-list--reports styling, a bit
border-top: 1px solid $oxfordshire_mid_grey_green;
padding: 1em 1em 1em 0;
margin-left: 1em;
.item-list__update-text > :last-child {
margin-bottom: 0;
}
.meta-2 {
font-style: normal;
}
}
.form-box {
background-color: darken($oxfordshire_very_light_green, 5%);
}
.shadow-wrap {
width: 432px;
ul#key-tools {
-webkit-box-shadow: 0em 0px 1em 1em $oxfordshire_very_light_green;
-moz-box-shadow: 0em 0px 1em 1em $oxfordshire_very_light_green;
box-shadow: 0em 0px 1em 1em $oxfordshire_very_light_green;
border-top-width: 2px;
}
}
// Stop bottom of update form disappearing behind the #key-tools shadow
#update_form {
padding-bottom: 4em;
}
#oxford-wrapper #front-main #postcodeForm div {
border: 1px solid #fff; // because orange "Go" button (see below) abuts this border, looks a tiny bit better if it's not dark green
#pc {
padding: 0 2%;
width: 89%;
height: 38px;
}
}
// styled Oxfordshire buttons -- including the "Go" button on the postcode form -- to be orange:
#front-main #postcodeForm div input#sub,
.green-btn,
button.green-btn,
input.green-btn{
@include button-reset(
$oxfordshire_button_top, $oxfordshire_button_bottom, $oxfordshire_button_border, #fff,
$oxfordshire_button_top, $oxfordshire_button_bottom, $oxfordshire_button_border, #fff
);
text-transform:capitalize;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
font-weight: normal;
cursor: pointer;
}
.click-the-map {
border-bottom-color: $oxfordshire_mid_grey_green;
p {
color: $oxfordshire_lt_green;
background-image: url(/cobrands/oxfordshire/images/click-map-chevron-small.gif);
}
}
#skip-this-step {
display: block;
color: inherit;
margin: 0 -15px;
padding: 16px;
font-size: 18px;
line-height: 20px;
border-bottom: 1px solid #E7E1C0;
background: #FDF4C5;
em {
font-style: normal;
text-decoration: underline;
color: $primary;
}
&:hover {
text-decoration: none;
}
html.js & {
// If javascript is enabled, hide the skip link off-screen,
// but keep it visible for screen readers.
position: absolute;
top: -999px;
&:focus {
// And show it again if it receives focus (eg: via tab key)
position: static;
}
}
}
.extra-text__image {
float: left;
margin-right: 1em;
}
@import "oxon";
|