aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/bromley/layout.scss
blob: cd6c174dbcc1b1e5a248440d8fbdb4727800eaf8 (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
@import "_colours";
@import "../sass/layout";
@import "../sass/report_list_pins";

// Alter the logo and the header on every page *but* the map page. On the map
// page it stays small like in base.css
body.fullwidthpage,
body.twothirdswidthpage {
  #site-header {
    // Increase the height of the site-header to suit the taller logo image
    height: auto;
  }
  // Override the logo
  #site-logo {
    width: 159px;
    height: 114px;
    background: url(/cobrands/bromley/bromley-logo.png) 0 0 no-repeat;
  }
}

// On the map page, we want the header to be much smaller, otherwise it pushes
// the sidebar down too much
body.mappage {
  #site-header {
    height: 5em;
  }
}

// We have to specify this again for IE, since FMS overrides it
.iel8 {
  body.fullwidthpage,
  body.twothirdswidthpage {
    #site-header {
    // Increase the height of the site-header to suit the taller logo image
      height: auto;
    }
    #site-logo {
      width: 159px;
      height: 114px;
    }
  }
}
.ie6 body.frontpage #site-logo {
  background:url(/cobrands/bromley/bromley-logo.png) 0 0 no-repeat;
}

// Override the container width to match Bromley' site, which is wider
.container {
  width: 100%;
  max-width: 1200px;
}

// Override the FMS main menu to give it a background colour
.nav-menu--main {
  background-color: $bromley_blue;
}
.nav-menu--main span {
  color: $nav_fg;
  background-color: $nav_fg_hover;
}

// Fix bad margin on local alerts form
body.alertindex form.full-width {
  margin-left: 0;
}

// Override the little banner you get when you're logged in on the map page
// because FMS makes it a different colour and moves it over to the left.
body.mappage #user-meta p {
  background-color: $bromley_blue;
  border-bottom: 1px solid #444;
}

// And also override the banner on other pages so that it lines up properly
#user-meta, body.mappage #user-meta {
  max-width: 1200px;
}
#user-meta p,
body.frontpage #user-meta p {
  top: 0;
  right: auto;
  background-color: $bromley_blue;
  color: #fff;
  box-shadow: none;
}

// Because we've moved the user-meta, we also have to move the #front-main div
// down a bit so that it shows the #user-meta
#front-main {
  margin-top:3em
}

// The page h1 needs to be white on desktop, because it's in a blue box
h1.main {
  color: #fff;
}

// We have slightly different content in our lists of issues to what
// reports_list.scss expects, so we need to add back some padding it removes.
// This stops the pin icon being underneath the text.
.issue-list-a li .text {
  padding-left: 4em;
}

// Because we've changed the page background, the footer looks a bit rubbish
footer,
body.twothirdswidthpage .container .content footer .tablewrapper,
body.fullwidthpage .container .content footer .tablewrapper {
  background-color: $bromley_blue;
}

// This is our custom wrapper for Bromley's header elements
.bromley-header {
  // Bromley's logo has a bottom margin to space it out from the A-Z nav, we
  // can't do that because they're in separate divs, so add a margin here
  // instead.
  margin-bottom: 20px;
}

// Center the mobile app buttons
#footer-mobileapps p,
#footer-help p {
  text-align: center;
}

//////////////////////////////////////////////////////////////////////////////
// Bromley desktop styles
//////////////////////////////////////////////////////////////////////////////

// Bromley's logo is bigger on big screens so that it appears to have some
// left padding
#site-logo,
body.frontpage #site-logo {
  float: left;
  width: 239px;
  clear: left;
  margin-bottom: 20px;
  // Bromley uses an image element inside a link, so it can be centered using
  // text-align. We use a background image, so this approximates that.
  background-position: 50% 0%;
}

// Bromley's .top-links section floats to the right on bigger screens
.top-links {
    float: right;
    width: auto;
}

// Bromley's search form floats to the right too
.main-search {
  width: 35%;
  margin: 10px 0 0 0;
  float: right;
  min-width: 287px;
  clear: right;
}

// Bromley's A-Z nav gets the background coloured in on bigger screens to
// appear full-screen
.a-z-container {
  background: #647890;
  padding: 0;
}

// The link to open the A-Z nav gets hidden on big screens
.drop-down-nav > li > a {
  display: none;
}

// And the rest of the A-Z nav gets show with a horrible !important
.main-a-z ul li ul {
  display: block!important;
}

// Bromley's footer
.site-footer {
  // Undo our footer background styling above
  background-color: #d5d2c3;
  padding-top: 1em;

  .column {
    margin-right: 1.66667%;
    display: block;
    float: left;
    .additional-links {
      float: left;
      width: 24%;
      margin-left: 2%;
      margin-right: 2%;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      &:first-child,
      &:last-child {
        margin-left: 0%;
        margin-right: 0%;
      }
      li {
        padding: 0 1em;
      }
    }
    .footer-list2 {
      width: 48%;
      ul {
        overflow: auto;
      }
    }
    .footer-list2 ul li,
    .footer-list1 ul li {
      width: 41%;
      margin-right: 2%;
      padding-left: 1em;
    }
    .social ul li {
      padding: 0 0 0 1em;
    }
  }
}

// Fix the footer in Old IE because it doesn't like last-child selectors
.iel8 {
  .site-footer {
    .column {
      // Old IE won't float the social media links unless we force the width to be
      // smaller and take a more traditional display/float tack.
      .social ul li {
        display: block;
        width: 36px;
        float: left;
      }
      .additional-links {
        margin-left: 0%;
        margin-right: 0%;
      }
      .footer-list2 {
        margin-left: 2%;
        margin-right: 2%;
      }
      .footer-list2 ul li,
      .footer-list1 ul li {
        // Old IE needs to know to float these for some reason
        float: left;
      }
    }
  }
}