aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/zurich/base.scss
blob: e607f80a35d4fa79bf131d1e309707c5c8eebe87 (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
@import "../sass/h5bp";
@import "./_colours";
@import "../sass/mixins";
@import "compass";

@import "../sass/base";

/* Front page main box is in content now, so get rid of its margin from parent */
#front-main {
    margin: 0;
}

/* Autocomplete dropdown on front page, don't want bullets */
.ui-menu-item {
    list-style-type: none;
}

/* Simplify the problem header on a report page */
.problem-header h1 {
    font-size: 120%;
    font-weight: bold;
    margin: 0;
}
.problem-header .sub {
    color: #666;
    font-size: 85%;
}

// Simplify the banner to just be a floated box. Colours etc. still
// inherited from the base stylesheet.
.banner {
    p {
        position: static;
        float: right;
        font-weight: bold;
        padding: 1em;
        margin: 0;
        text-transform: uppercase;
        text-align: center;
        &:before {
            display: none;
        }
        &#closed {
            color: #1a1a1a;
            background: #e25436; // red
        }
        &#progress {
            color: #1a1a1a;
            background: #f3d74b; //purple
        }
    }
}

#site-header {
    background: $mobile_header_blue;
    border-top: 4px solid $mobile_menu_tab_bg_col;
    height: 48px;
}
#site-logo {
    background: url(logo_portal.jpg) 0px -24px no-repeat;
    width: 200px;
    height: 48px;
    left:0;
    top:4px;
}
#front-howto #front_stats,
#front-main #postcodeForm {
    background-color: $mobile_header_blue;
}

//  fix here:
//  a percentage width on input#pc breaks iPhone landscape/portrait switching
//  and the other changes make this fix pretty

#front-main #postcodeForm div {
  background: inherit;
  border-color:transparent;
  input#pc {
    max-width: 15em;
    background-color: #fff;
  }
  input#sub {
    width: 3em;
  }
}

// No grey background or other bits
// The amount of resetting here shows this needs refactoring, so that it is FMS making the changes
// Also look into why full-width pulls things out, but then it is its children
// that have to recompensate with padding.
h4.static-with-rule {
    color: black;
    font-size: 1em;
    font-weight: bold;
    text-transform: none;
    background: none;
    padding-left: 0;
    padding-right: 0;
    border-top: 0.25em solid #e5e5e5;
}
.item-list {
    border-bottom: none;
}
.item-list__item {
    padding-left: 0;
    padding-right: 0;
    background: none;
}

.item-list--reports__item {
    .img {
        padding-right: 1em;
    }
}

.form-txt-submit-box input[type=submit] {
    width:auto; // 28% is too narrow
    padding-left: 0.8em;
    padding-right: 0.8em;
}

#fms_pan_zoom_panup,
#fms_pan_zoom_pandown,
#fms_pan_zoom_panleft,
#fms_pan_zoom_panright {
    display: none;
}

.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;
            }
        }
    }
}

.admin-note__text {
    background-color: #eee;
    padding: 0.5em 1em;
    border-radius: 4px;
    position: relative;
    margin-bottom: 0.5em;

    // add a little speech bubble triangle to the bottom left corner
    &:after {
        content: "";
        display: block;
        position: absolute;
        bottom: -10px;
        left: 10px;
        border-top: 10px solid #eee;
        border-left: 10px solid transparent;
    }

    .admininternal & {
        background-color: #eef;

        &:after {
            border-top-color: #eef;
        }
    }
}

.admin-note__creator {
    padding-left: 30px;
}

.admin-official-answer, .admin-external-message {
    background-color: #1F52A3; // official Zurich blue colour
    color: #fff;
    padding: 0.8em 1em;
    border-radius: 4px;

    p {
        margin-bottom: 0.5em;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.admin {
  label.inline {
    padding: 0;
  }

  input[type="checkbox"] + label.inline {
    margin-right: 0.2em;
  }
}

.admin-label--inline {
  display: inline; // rather than block
  margin-right: 0.333em; // bit of space between this and the following input
}

.ui-spinner input {
    // stop jQuery UI spinner inputs from inheriting FMS input styles
    padding: 1px;
    border: none;
    border-radius: 0;
}

.square-map__outer {
    width: 100%;
    height: 0;
    padding-bottom: 100%; // 100% of parent WIDTH!! Makes a square element.
    position: relative;
}

.square-map__inner {
    position: absolute; // Parent must keep its 0 height, so we need to create a new container for tiles.
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    #drag .square-map__tile {
        position: static; // override position:absolute
    }
}

#map_box {
    top: 0em; // the default, 3em, overlaps the content below
}

@media screen {
    dd.screen-no-space-after {
      margin-bottom: 0;
    }

    .admin-report-edit--interact dl.with-message {
        margin-top: 1.5em;
    }
}

@media print {
    #site-header .container {
        position: relative;
    }
    #site-logo {
        top: 0;
    }

    .mappage.admin {
      .container {
          padding: 0;
          position: relative;
      }

      .content {
          overflow: auto;
          font-size: 0.8em;
          background: transparent url(/cobrands/zurich/admin-print-columns.gif) top center repeat-y;
          min-height: 0 !important; // override hard-coded inline min-height style

          form {
              @include clearfix; // because .admin-report-edit children are floated
          }
      }

      #map_box {
          display: none; // Zurich has its own clone of the map, inside admin-report-edit--interact
      }
    }

    .admin-report-edit {
        margin-top: 1em;
        width: 47%;

        input[type=text],
        textarea {
            border: none;
            padding: 0;
        }

        dd {
            padding-left: 1em;
        }

        h2 {
            font-family: inherit;
            font-size: inherit;
            font-weight: bold;
        }
    }

    .admin-report-edit--details {
        float: left;
        border-right: 1px solid #ddd;
        padding-right: 3%;
    }

    .admin-report-edit--interact {
        float: right;
    }

    .map_clone {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }

    dd.print-no-space-after {
        margin-bottom: 0;
    }

    #print_report_map {
      page-break-before: always;
    }
}