aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/bromley/base.scss
blob: 5661632a34b660dff378d124c0e72ff21d59ef16 (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
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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
@import "../sass/h5bp";
@import "./_colours";
@import "./_fonts";
@import "../sass/mixins";

@import "../sass/base";

// Override the site logo
#site-logo{
  display: block;
  width: 80px;
  height: 44px;
  top: 0.4em;
  left: 0.5em;
  background: url('/cobrands/bromley/bromley-logo.s.png') 0 0 no-repeat;
  text-indent: -999999px;
  position: absolute;
  z-index:2;
}

// Change the colour and size of the site header to suit
#site-header {
  background: $base_bg;
}
// We don't want a fixed height header on any page except the map page because
// it includes lots of other stuff there, including a dynamic drop-down menu
// that changes height
body.fullwidthpage,
body.twothirdswidthpage {
  #site-header {
    height: auto;
  }
}

// On the map page, we need slightly more space for our logo
body.mappage {
  #site-header {
    height: 3.5em;
  }
}

// Reset form placeholders so that they match Bromley's
// input placeholders, these need to be on separate lines as if the browser
// can't understand a selector it will invalidate the whole line.
::-webkit-input-placeholder {
  color: #999;
  font: {
    style:normal;
    size:0.9375em;
  }
}
:-moz-placeholder {
  color: #999;
  font: {
    style:normal;
    size:0.9375em;
  }
}
:-ms-placeholder {
  color: #999;
  font: {
    style:normal;
    size:0.9375em;
  }
}
//this only gets used when the browser doesn't support @placeholder
.placeholder {
  color: #999;
  font: {
    style:normal;
    size:0.9375em;
  }
}

// Reset body line height on front page
body.frontpage.fullwidthpage {
  line-height: normal;
}

.bromley-header {
  // These are from Bromley's styles, applied here because it's the closest
  // analog to their site header.
  padding: 0 10px;
  padding-top: 1em;
}

// Add a border to this to approximate Bromley's border between the breadcrumb
// and A-Z menu
.main-menu-container {
  border-top: 1px solid #e2e2e2;
}

// Override the links to match Bromley's
a {
  text-decoration:none;
  color: $bromley_green;
  opacity: 1;
}
a:hover {
  opacity: 0.8;
  text-decoration:underline;
}
a:visited,
a:active {
  color: $bromley_dark_green;
}

// The map page header looks a bit high for some reason
.big-green-banner {
  top: 0;
}

// Override some of FMS's button styling so that Bromley's styles don't break
// form submit buttons
.form-txt-submit-box input[type=submit] {
  height:2.4em;
  padding-top:0.15em;
  margin-top:0;
}

// Darken the "key tools" links because we've darkened our background and as a
// result they have very little contrast
.shadow-wrap ul#key-tools li a,
.shadow-wrap ul#key-tools li input[type=submit] {
  background-color: darken(#f5f5f5, 10%);
}

.item-list--reports__item a {
    line-height: 2;
}

//////////////////////////////////////////////////////////////////////////////
// Bromley's Mobile-First styles
//////////////////////////////////////////////////////////////////////////////

body {
  font-size: 15px;
  font-weight: 300;
}

h1,h2,h3,h4,h5 {
  font-family:$heading-font;
}

// Bromley's styles for the .top-links nav
.top-links {
  margin-top: 44px; // Needed to push it below FMS' mobile menu bar
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom:13px;
  li {
    display: inline-block;
    padding: 0 10px;
    font-size: 0.9em;
    list-style-type: none;
    a {
      font-family: "Helvetica", sans-serif;
      color: #235e1c;
      opacity: 1;
      transition: opacity .25s ease-in-out;
      -moz-transition: opacity .25s ease-in-out;
      -webkit-transition: opacity .25s ease-in-out;
    }
  }
  .fa {
    color: #235e1c;
    opacity: 0.5;
  }
}

// Bromley's icons
.fa {
  padding-right: 5px;
  display: inline-block;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.fa-sitemap:before {
  content: "\f0e8";
}
.fa-user:before {
  content: "\f007";
}
.fa-home:before {
  content: "\f015";
}

// Bromley's site search
.main-search {
  margin: 1em 0;
  text-align: center;
  .main-search-input {
    border-radius: 5px 0 0 5px;
    border-right: 0px;
    padding: 7px 2%;
    font-size: 0.9em;
    font-weight: 300;
    width: 74%;
    text-align: left;

    // Undo some FMS' specific styling that breaks Bromley's look and feel
    display: inline-block;
    box-sizing: content-box;

  }
  .button__primary {
    height: 42px;
    line-height: 0;
    padding: 1.3em 1em;
    border: 1px solid #647890;
    width: 20%;
    opacity: 1;
    transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
    background: #647890 url("search-icon.png") no-repeat center center !important;
    text-indent: -10000px;
    border-radius: 0 5px 5px 0;
    margin-left: -3px;
  }
}

// Bromley's field definitions, with extra tag-level selectors to override
// FMS' input[type=text]
input.field, input.text,
.field, .text, .xfields {
  border-style: solid;
  border-width: 1px;
  border-color: #e7e7e7;
  padding: 0 6px;
  line-height: 2em;
  height: 2em;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  color: #000;
  width: 100%;
  max-width: 100%;
  font-family: Arial,'Helvetica Neue',Helvetica,sans-serif;
}

// Bromley's button definitions
.button__primary, .button, input[type=submit], .doc-main-content .byEditor .basketitem a.button {
  background: #647890;
  color: white;
  border: none;
}
.button, input[type=submit] {
  border-style: solid;
  border-width: 1px;
  display: inline-block;
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  font-size: 1em;
  line-height: 2em;
  height: 2em;
  padding: 0 1em;
  margin: 0.5em 0;
  opacity: 1;
  transition: opacity .25s ease-in-out;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

// Bromley's silly A-Z menu
.a-z-container {
  margin-bottom: 15px;
  padding: 0 10px;
}
.main-a-z {
  padding: 10px 5px;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  clear: both;
  min-height: 10px;
  overflow: hidden;
  background: #647890;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;

  ul {
    padding-left: 0px;
    text-align: center;
    margin: 0;

    li {
      display: inline-block;
      padding: 0 15px;
      color: #e0e9f3;
      text-align: center;
      margin: 4px 0;

      a {
        color: #FFF;
        opacity: 1;
        text-transform: uppercase;
        transition: opacity .25s ease-in-out;
        -moz-transition: opacity .25s ease-in-out;
        -webkit-transition: opacity .25s ease-in-out;
      }
    }
  }

  .nav-hover-item {
    margin: 0;
    overflow: auto;
    float: left;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
}
.main-a-z ul > li > a {
  text-transform: capitalize;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .main-a-z ul li {
    padding: 0 14px;
  }
}
.drop-down-nav {
  list-style-type: none;
}
.drop-down-nav > li {
  margin-left: 0!important;
  border-bottom: none!important;
}

// Fix the A-Z menu in IE7
.ie7 {
  .main-a-z ul li {
    display:block;
    float:left;
  }
}

// Bromley's breadcrumb
.breadcrumb {
  width: 100%;
  margin-bottom: 15px;

  // Approximate Bromley's top border despite this being in a different
  // location than on their site
  border-top: 1px solid #fff;
  padding-top: 15px;

  ul {
    list-style: none;
    padding: 10px;
    margin-top: 0;
    background: #cccccc;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 0.8em;

    // Override FMS' default list styles
    margin-left: 0;
    margin-bottom: 1em;

    li {
      list-style: none;
      display: inline;
      &:before {
        content: '|';
        padding: 0 5px;
      }
      &:first-child:before {
        display: none;
      }
    }
    .current {
      font-weight: 700;
      color: #235E1C;
    }
  }
}

// Hide things in the header on the map page, because the header is small
body.mappage {
  .main-search,
  .breadcrumb,
  .a-z-container,
  .linear-links {
    display: none;
  }
}

// Bromley's footer
.site-footer {
  width: 100%;
  clear: both;
  margin: 0;
  min-height: 210px;
  overflow: hidden;
  // Add more margin to push this down from FMS's footer
  margin-top: 2em;
  .footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    .column {
      width: 100% !important;
      margin-right: 0;
      margin-left: 0 !important;
      float: none;
      clear: both;
      &:last-child {
        margin-right:0;
      }

    }
  }
  .additional-links {
    h5 {
      background-color: #cecab7;
      padding: 0.5em 1em;
      margin: 0;
      font-size: 1em;
      font-weight: 400;
      color: #505050;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      border-radius: 5px;
    }
    ul {
      padding-left: 0px;
      // Undo FMS' left margin for uls
      margin-left: 0;
      // Override top/bottom margins to match Bromley's default ul styling
      margin-top: 1em;
      margin-bottom: 1em;
      li {
        padding-left: 1em;
        width: 80%;
        display: inline-block;
        // Remove the bottom margin FMS puts on
        margin-bottom: 0;
        a {
          font-size: 0.9em;
        }
      }
    }
  }
  .copyright {
    font-size: 0.8em;
    background: #dad7c9;
    color: #505050;
    padding: 0.3em 1em;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .social {
    ul {
      li {
        width: auto;
        padding: 0 0 0 1em;
        img {
          max-width: 36px;
        }
      }
    }
  }
}