moj_template 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENCE.txt +22 -0
- data/README.md +96 -0
- data/app/assets/images/apple-touch-icon-114x114.png +0 -0
- data/app/assets/images/apple-touch-icon-144x144.png +0 -0
- data/app/assets/images/apple-touch-icon-57x57.png +0 -0
- data/app/assets/images/apple-touch-icon-72x72.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/gov.uk_logotype_crown.png +0 -0
- data/app/assets/images/gov.uk_logotype_crown_invert.png +0 -0
- data/app/assets/images/gov.uk_logotype_crown_invert_trans.png +0 -0
- data/app/assets/images/open-government-licence_2x.png +0 -0
- data/app/assets/images/opengraph-image.png +0 -0
- data/app/assets/javascripts/govuk-template.js +126 -0
- data/app/assets/javascripts/ie.js +513 -0
- data/app/assets/javascripts/modules/moj.tabs.js +83 -0
- data/app/assets/javascripts/moj.js +54 -0
- data/app/assets/javascripts/vendor/goog/webfont-debug.js +2127 -0
- data/app/assets/javascripts/vendor/jquery/jquery-1.11.0.min.js +5 -0
- data/app/assets/stylesheets/external-link-24x24.png +0 -0
- data/app/assets/stylesheets/external-link-black-12x12.png +0 -0
- data/app/assets/stylesheets/external-link-black-24x24.png +0 -0
- data/app/assets/stylesheets/external-link.png +0 -0
- data/app/assets/stylesheets/fonts-ie8.css.erb +31 -0
- data/app/assets/stylesheets/fonts.css.erb +31 -0
- data/app/assets/stylesheets/fonts/NTA-Bold-20130221.eot +0 -0
- data/app/assets/stylesheets/fonts/NTA-Bold-20130221.woff +0 -0
- data/app/assets/stylesheets/fonts/NTA-Light-20130221.eot +0 -0
- data/app/assets/stylesheets/fonts/NTA-Light-20130221.woff +0 -0
- data/app/assets/stylesheets/fonts/NTATabularNumbers-Bold.eot +0 -0
- data/app/assets/stylesheets/fonts/NTATabularNumbers-Bold.woff +0 -0
- data/app/assets/stylesheets/fonts/NTATabularNumbers-Light.eot +0 -0
- data/app/assets/stylesheets/fonts/NTATabularNumbers-Light.woff +0 -0
- data/app/assets/stylesheets/govuk-template-ie6.css.erb +652 -0
- data/app/assets/stylesheets/govuk-template-ie7.css.erb +648 -0
- data/app/assets/stylesheets/govuk-template-ie8.css.erb +631 -0
- data/app/assets/stylesheets/govuk-template-print.css.erb +78 -0
- data/app/assets/stylesheets/govuk-template.css.erb +691 -0
- data/app/assets/stylesheets/images/close.png +0 -0
- data/app/assets/stylesheets/images/govuk-crest-2x.png +0 -0
- data/app/assets/stylesheets/images/govuk-crest-ie.png +0 -0
- data/app/assets/stylesheets/images/govuk-crest.png +0 -0
- data/app/assets/stylesheets/images/separator-2x.png +0 -0
- data/app/assets/stylesheets/images/separator.png +0 -0
- data/app/assets/stylesheets/moj-template.css.erb +628 -0
- data/app/helpers/moj_helper.rb +9 -0
- data/app/views/layouts/moj_template.html.erb +223 -0
- data/lib/moj_template.rb +5 -0
- data/lib/moj_template/engine.rb +17 -0
- data/lib/moj_template/version.rb +3 -0
- data/lib/tasks/moj_template_tasks.rake +4 -0
- metadata +192 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: GDS-Logo;
|
3
|
+
src: local("HelveticaNeue"), local("Helvetica Neue"), local("Arial"), local("Helvetica"); }
|
4
|
+
|
5
|
+
@-ms-viewport {
|
6
|
+
width: device-width; }
|
7
|
+
|
8
|
+
@-o-viewport {
|
9
|
+
width: device-width; }
|
10
|
+
|
11
|
+
html {
|
12
|
+
font-size: 62.5%; }
|
13
|
+
|
14
|
+
/* Global print stylesheet */
|
15
|
+
/* reset everything */
|
16
|
+
* {
|
17
|
+
background: transparent;
|
18
|
+
color: black;
|
19
|
+
text-shadow: none;
|
20
|
+
filter: none;
|
21
|
+
-ms-filter: none; }
|
22
|
+
|
23
|
+
body {
|
24
|
+
font-family: "nta", Arial, sans-serif;
|
25
|
+
font-size: 11pt;
|
26
|
+
line-height: 1.42857;
|
27
|
+
font-weight: 400;
|
28
|
+
text-transform: none;
|
29
|
+
margin: 0;
|
30
|
+
padding: 0;
|
31
|
+
width: 100%; }
|
32
|
+
@media (max-width: 640px) {
|
33
|
+
body {
|
34
|
+
font-size: 12px;
|
35
|
+
line-height: 1.25; } }
|
36
|
+
|
37
|
+
a, a:visited {
|
38
|
+
word-wrap: break-word; }
|
39
|
+
|
40
|
+
a[href^="/"]:after {
|
41
|
+
content: " (https://www.gov.uk" attr(href) ")";
|
42
|
+
font-size: 90%; }
|
43
|
+
|
44
|
+
a[href^="http://"]:after,
|
45
|
+
a[href^="https://"]:after {
|
46
|
+
content: " (" attr(href) ")";
|
47
|
+
font-size: 90%; }
|
48
|
+
|
49
|
+
a[href^="javascript:"]:after,
|
50
|
+
a[href^="#"]:after {
|
51
|
+
content: ""; }
|
52
|
+
|
53
|
+
img {
|
54
|
+
max-width: 100% !important; }
|
55
|
+
|
56
|
+
select {
|
57
|
+
background: white; }
|
58
|
+
|
59
|
+
#global-header {
|
60
|
+
color: #000;
|
61
|
+
font-weight: bold;
|
62
|
+
font-size: 24px;
|
63
|
+
margin-bottom: 1em; }
|
64
|
+
#global-header .content {
|
65
|
+
margin: 0 !important; }
|
66
|
+
#global-header a, #global-header a:visited {
|
67
|
+
text-decoration: none; }
|
68
|
+
#global-header a:after {
|
69
|
+
content: ""; }
|
70
|
+
#global-header img {
|
71
|
+
display: none; }
|
72
|
+
|
73
|
+
/* hide the unnecessary page elements */
|
74
|
+
body footer,
|
75
|
+
.visuallyhidden,
|
76
|
+
#global-cookie-message,
|
77
|
+
#skiplink-container {
|
78
|
+
display: none !important; }
|
@@ -0,0 +1,691 @@
|
|
1
|
+
/* govuk_frontend_toolkit includes */
|
2
|
+
|
3
|
+
@-ms-viewport {
|
4
|
+
width: device-width; }
|
5
|
+
|
6
|
+
@-o-viewport {
|
7
|
+
width: device-width; }
|
8
|
+
|
9
|
+
/* CSS 3 Mixins
|
10
|
+
|
11
|
+
Add them as you need them. This should let us manage vendor prefixes in one place.
|
12
|
+
*/
|
13
|
+
@font-face {
|
14
|
+
font-family: GDS-Logo;
|
15
|
+
src: local("HelveticaNeue"), local("Helvetica Neue"), local("Arial"), local("Helvetica"); }
|
16
|
+
|
17
|
+
@-ms-viewport {
|
18
|
+
width: device-width; }
|
19
|
+
|
20
|
+
@-o-viewport {
|
21
|
+
width: device-width; }
|
22
|
+
|
23
|
+
/* Cross-browser shims
|
24
|
+
|
25
|
+
Ways of normalising properties across browsers.
|
26
|
+
*/
|
27
|
+
@-ms-viewport {
|
28
|
+
width: device-width; }
|
29
|
+
|
30
|
+
@-o-viewport {
|
31
|
+
width: device-width; }
|
32
|
+
|
33
|
+
/* Usage:
|
34
|
+
@include inline-block
|
35
|
+
|
36
|
+
or
|
37
|
+
|
38
|
+
@include inline-block("250px")
|
39
|
+
|
40
|
+
which gives a min-height to the inline-block elements.
|
41
|
+
*/
|
42
|
+
/* Contain floats usage:
|
43
|
+
|
44
|
+
.this-has-floated-children {
|
45
|
+
@extend %contain-floats;
|
46
|
+
}
|
47
|
+
|
48
|
+
*/
|
49
|
+
#global-header .header-wrapper:after, #global-header .header-wrapper .header-global:after, #global-header .header-wrapper .header-global .header-logo:after, #global-header .header-proposition #proposition-links:after {
|
50
|
+
content: "";
|
51
|
+
display: block;
|
52
|
+
clear: both; }
|
53
|
+
|
54
|
+
/* CSS 3 Mixins
|
55
|
+
|
56
|
+
Add them as you need them. This should let us manage vendor prefixes in one place.
|
57
|
+
*/
|
58
|
+
@-ms-viewport {
|
59
|
+
width: device-width; }
|
60
|
+
|
61
|
+
@-o-viewport {
|
62
|
+
width: device-width; }
|
63
|
+
|
64
|
+
/*
|
65
|
+
|
66
|
+
Mixin and defaults for making buttons on GOV.UK services.
|
67
|
+
|
68
|
+
For guidance, see: https://www.gov.uk/service-manual/design-and-content/resources/buttons.html
|
69
|
+
|
70
|
+
Example usage:
|
71
|
+
|
72
|
+
.button{
|
73
|
+
@include button;
|
74
|
+
}
|
75
|
+
.button-secondary{
|
76
|
+
@include button($grey-3);
|
77
|
+
}
|
78
|
+
.button-warning{
|
79
|
+
@include button($red);
|
80
|
+
}
|
81
|
+
|
82
|
+
*/
|
83
|
+
/* local styleguide includes */
|
84
|
+
/* New Greys */
|
85
|
+
html, body, button, input, table, td, th {
|
86
|
+
font-family: "nta", Arial, sans-serif; }
|
87
|
+
|
88
|
+
html, body, div, h1, h2, h3, h4, h5, h6, article, aside, footer, header, hgroup, nav, section {
|
89
|
+
margin: 0;
|
90
|
+
padding: 0;
|
91
|
+
vertical-align: baseline; }
|
92
|
+
|
93
|
+
.group:before,
|
94
|
+
.group:after {
|
95
|
+
content: "\0020";
|
96
|
+
display: block;
|
97
|
+
height: 0;
|
98
|
+
overflow: hidden; }
|
99
|
+
|
100
|
+
.group:after {
|
101
|
+
clear: both; }
|
102
|
+
|
103
|
+
.group {
|
104
|
+
zoom: 1; }
|
105
|
+
|
106
|
+
.content-fixed {
|
107
|
+
top: 0;
|
108
|
+
position: fixed; }
|
109
|
+
|
110
|
+
.shim {
|
111
|
+
display: block; }
|
112
|
+
|
113
|
+
/*
|
114
|
+
* 1. Prevents iOS text size adjust after orientation change, without disabling
|
115
|
+
* user zoom.
|
116
|
+
*/
|
117
|
+
html {
|
118
|
+
-webkit-text-size-adjust: 100%;
|
119
|
+
/* 1 */
|
120
|
+
-ms-text-size-adjust: 100%;
|
121
|
+
/* 1 */
|
122
|
+
background: white; }
|
123
|
+
|
124
|
+
body {
|
125
|
+
color: #0b0c0c;
|
126
|
+
line-height: 1.5;
|
127
|
+
font-weight: 400;
|
128
|
+
-webkit-font-smoothing: antialiased; }
|
129
|
+
|
130
|
+
ol, ul, nav ol, nav ul {
|
131
|
+
list-style: inherit; }
|
132
|
+
|
133
|
+
fieldset {
|
134
|
+
border: none;
|
135
|
+
padding: 0; }
|
136
|
+
|
137
|
+
a,
|
138
|
+
a:visited {
|
139
|
+
color: #2e3191; }
|
140
|
+
|
141
|
+
a:hover {
|
142
|
+
color: #2e8aca; }
|
143
|
+
|
144
|
+
a:active {
|
145
|
+
color: #2e8aca; }
|
146
|
+
|
147
|
+
a[rel="external"]:after {
|
148
|
+
background-image: url(<%= asset_path 'external-link.png' %>);
|
149
|
+
background-repeat: no-repeat; }
|
150
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
151
|
+
a[rel="external"]:after {
|
152
|
+
background-image: url(<%= asset_path 'external-link-24x24.png' %>);
|
153
|
+
background-size: 12px 400px; } }
|
154
|
+
a[rel="external"]:after {
|
155
|
+
content: "\A0\A0\A0\A0";
|
156
|
+
background-position: right 6px; }
|
157
|
+
a[rel="external"]:hover:after {
|
158
|
+
background-position: right -382px; }
|
159
|
+
@media (max-width: 640px) {
|
160
|
+
a[rel="external"]:after {
|
161
|
+
content: "\A0\A0\A0\A0\A0";
|
162
|
+
background-position: right 3px; }
|
163
|
+
a[rel="external"]:hover:after {
|
164
|
+
background-position: right -385px; } }
|
165
|
+
|
166
|
+
.external-link:after {
|
167
|
+
content: "\A0\A0\A0\A0\A0\A0\A0\A0";
|
168
|
+
background-position: right 0px; }
|
169
|
+
.external-link:hover:after {
|
170
|
+
background-position: right 0px; }
|
171
|
+
.external-link:after {
|
172
|
+
background-image: url(<%= asset_path 'external-link-black-12x12.png' %>);
|
173
|
+
background-repeat: no-repeat; }
|
174
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
175
|
+
.external-link:after {
|
176
|
+
background-image: url(<%= asset_path 'external-link-black-24x24.png' %>);
|
177
|
+
background-size: 12px 400px; } }
|
178
|
+
|
179
|
+
/*
|
180
|
+
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
181
|
+
* http://clagnut.com/blog/348/#c790
|
182
|
+
* note - font-size reduced to 62.5% to allow simple rem/px font-sizing and fallback
|
183
|
+
* http://snook.ca/archives/html_and_css/font-size-with-rem
|
184
|
+
* 2. Keeps page centred in all browsers regardless of content height
|
185
|
+
* 3. Removes Android and iOS tap highlight color to prevent entire container being highlighted
|
186
|
+
* www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
|
187
|
+
*/
|
188
|
+
html {
|
189
|
+
font-size: 62.5%;
|
190
|
+
/* 1 */
|
191
|
+
overflow-y: scroll;
|
192
|
+
/* 2 */
|
193
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
194
|
+
/* 3 */ }
|
195
|
+
|
196
|
+
/*
|
197
|
+
* 1. Font-size increased to compensate for change to html element font-size in
|
198
|
+
* order to support beta typography which was set in ems
|
199
|
+
* (62.5% * 160% = 100%)
|
200
|
+
* 2. Addresses margins handled incorrectly in IE6/7
|
201
|
+
*/
|
202
|
+
body {
|
203
|
+
font-size: 160%;
|
204
|
+
/* 1 */
|
205
|
+
margin: 0;
|
206
|
+
/* 2 */ }
|
207
|
+
|
208
|
+
b,
|
209
|
+
strong {
|
210
|
+
font-weight: 600; }
|
211
|
+
|
212
|
+
img {
|
213
|
+
border: 0; }
|
214
|
+
|
215
|
+
button {
|
216
|
+
*overflow: visible; }
|
217
|
+
|
218
|
+
abbr[title] {
|
219
|
+
cursor: help; }
|
220
|
+
|
221
|
+
/*
|
222
|
+
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
|
223
|
+
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
|
224
|
+
* (include `-moz` to future-proof).
|
225
|
+
*/
|
226
|
+
input[type="search"] {
|
227
|
+
-webkit-appearance: textfield;
|
228
|
+
/* 1 */
|
229
|
+
-moz-box-sizing: content-box;
|
230
|
+
-webkit-box-sizing: content-box;
|
231
|
+
/* 2 */
|
232
|
+
box-sizing: content-box; }
|
233
|
+
|
234
|
+
input[type="search"]::-webkit-search-cancel-button {
|
235
|
+
-webkit-appearance: searchfield-cancel-button;
|
236
|
+
margin-right: 2px; }
|
237
|
+
|
238
|
+
input[type="search"]::-webkit-search-decoration {
|
239
|
+
-webkit-appearance: none; }
|
240
|
+
|
241
|
+
/* For image replacement */
|
242
|
+
.ir {
|
243
|
+
display: block;
|
244
|
+
text-indent: -999em;
|
245
|
+
overflow: hidden;
|
246
|
+
background-repeat: no-repeat;
|
247
|
+
text-align: left;
|
248
|
+
direction: ltr; }
|
249
|
+
.ir br {
|
250
|
+
display: none; }
|
251
|
+
|
252
|
+
/* Hide for both screenreaders and browsers */
|
253
|
+
.hidden {
|
254
|
+
display: none;
|
255
|
+
visibility: hidden; }
|
256
|
+
|
257
|
+
/* Hide only visually, but have it available for screenreaders */
|
258
|
+
.visuallyhidden {
|
259
|
+
position: absolute;
|
260
|
+
left: -9999em;
|
261
|
+
/*
|
262
|
+
* Extends the .visuallyhidden class to allow the element to be
|
263
|
+
* focusable when navigated to via the keyboard
|
264
|
+
*/ }
|
265
|
+
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
|
266
|
+
clip: auto;
|
267
|
+
height: auto;
|
268
|
+
margin: 0;
|
269
|
+
overflow: visible;
|
270
|
+
position: static;
|
271
|
+
width: auto; }
|
272
|
+
|
273
|
+
/* Hide visually and from screenreaders, but maintain layout */
|
274
|
+
.invisible {
|
275
|
+
visibility: hidden; }
|
276
|
+
|
277
|
+
/* Give a strong clear visual idea as to what is currently in focus */
|
278
|
+
a {
|
279
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.3); }
|
280
|
+
|
281
|
+
a:focus {
|
282
|
+
background-color: #ffbf47;
|
283
|
+
outline: 3px solid #ffbf47; }
|
284
|
+
|
285
|
+
/* Make skiplinks visible when they are tabbed to */
|
286
|
+
.skiplink {
|
287
|
+
position: absolute;
|
288
|
+
left: -9999em; }
|
289
|
+
|
290
|
+
.skiplink:focus {
|
291
|
+
position: static; }
|
292
|
+
|
293
|
+
#skiplink-container {
|
294
|
+
text-align: center;
|
295
|
+
background: #0b0c0c; }
|
296
|
+
#skiplink-container div {
|
297
|
+
text-align: left;
|
298
|
+
margin: 0 auto;
|
299
|
+
max-width: 1020px; }
|
300
|
+
#skiplink-container .skiplink {
|
301
|
+
display: -moz-inline-stack;
|
302
|
+
display: inline-block;
|
303
|
+
margin: 0.75em 0 0 30px; }
|
304
|
+
|
305
|
+
input:focus,
|
306
|
+
textarea:focus,
|
307
|
+
select:focus,
|
308
|
+
#global-header input:focus {
|
309
|
+
outline: 3px solid #ffbf47; }
|
310
|
+
|
311
|
+
#global-header h1 a:focus {
|
312
|
+
background-color: transparent;
|
313
|
+
outline: none; }
|
314
|
+
#global-header a:focus {
|
315
|
+
color: #0b0c0c; }
|
316
|
+
|
317
|
+
/* Cross-browser shims
|
318
|
+
|
319
|
+
Ways of normalising properties across browsers.
|
320
|
+
*/
|
321
|
+
@-ms-viewport {
|
322
|
+
width: device-width; }
|
323
|
+
|
324
|
+
@-o-viewport {
|
325
|
+
width: device-width; }
|
326
|
+
|
327
|
+
/* Usage:
|
328
|
+
@include inline-block
|
329
|
+
|
330
|
+
or
|
331
|
+
|
332
|
+
@include inline-block("250px")
|
333
|
+
|
334
|
+
which gives a min-height to the inline-block elements.
|
335
|
+
*/
|
336
|
+
/* Contain floats usage:
|
337
|
+
|
338
|
+
.this-has-floated-children {
|
339
|
+
@extend %contain-floats;
|
340
|
+
}
|
341
|
+
|
342
|
+
*/
|
343
|
+
#global-header .header-wrapper:after, #global-header .header-wrapper .header-global:after, #global-header .header-wrapper .header-global .header-logo:after, #global-header .header-proposition #proposition-links:after {
|
344
|
+
content: "";
|
345
|
+
display: block;
|
346
|
+
clear: both; }
|
347
|
+
|
348
|
+
#global-header {
|
349
|
+
background-color: #0b0c0c;
|
350
|
+
width: 100%; }
|
351
|
+
#global-header .header-wrapper {
|
352
|
+
max-width: 990px;
|
353
|
+
margin: 0 auto;
|
354
|
+
padding: 0.5em 15px; }
|
355
|
+
@media (max-width: 640px) {
|
356
|
+
#global-header .header-wrapper {
|
357
|
+
padding: 0.5em 0; } }
|
358
|
+
#global-header .header-wrapper .header-global .header-logo {
|
359
|
+
width: 49%;
|
360
|
+
float: left; }
|
361
|
+
@media (min-width: 769px) {
|
362
|
+
#global-header .header-wrapper .header-global .header-logo {
|
363
|
+
width: 33.33%; } }
|
364
|
+
@media screen and (max-width: 379px) {
|
365
|
+
#global-header .header-wrapper .header-global .header-logo {
|
366
|
+
width: auto;
|
367
|
+
float: none; } }
|
368
|
+
#global-header .header-wrapper .header-global .header-logo .content {
|
369
|
+
margin: 0 15px; }
|
370
|
+
#global-header .header-wrapper .header-global .header-logo {
|
371
|
+
margin: 5px 0 2px; }
|
372
|
+
@media (min-width: 769px) {
|
373
|
+
#global-header.with-proposition .header-wrapper .header-global {
|
374
|
+
float: left;
|
375
|
+
width: 33.33%; }
|
376
|
+
#global-header.with-proposition .header-wrapper .header-global .header-logo,
|
377
|
+
#global-header.with-proposition .header-wrapper .header-global .site-search {
|
378
|
+
width: 100%; } }
|
379
|
+
@media (min-width: 769px) {
|
380
|
+
#global-header.with-proposition .header-wrapper .header-proposition {
|
381
|
+
width: 66.66%;
|
382
|
+
float: left; } }
|
383
|
+
#global-header.with-proposition .header-wrapper .header-proposition .content {
|
384
|
+
margin: 0 15px; }
|
385
|
+
#global-header #logo {
|
386
|
+
float: left;
|
387
|
+
position: relative;
|
388
|
+
top: 1px;
|
389
|
+
height: 30px;
|
390
|
+
overflow: visible;
|
391
|
+
vertical-align: baseline;
|
392
|
+
color: white;
|
393
|
+
font-weight: bold;
|
394
|
+
font-size: 30px;
|
395
|
+
line-height: 1em;
|
396
|
+
text-decoration: none;
|
397
|
+
text-rendering: optimizeLegibility;
|
398
|
+
margin-bottom: -1px;
|
399
|
+
padding-bottom: 1px; }
|
400
|
+
#global-header #logo img {
|
401
|
+
position: relative;
|
402
|
+
top: -2px;
|
403
|
+
width: 35px;
|
404
|
+
height: 31px;
|
405
|
+
padding-right: 6px;
|
406
|
+
float: left;
|
407
|
+
display: inline;
|
408
|
+
line-height: inherit;
|
409
|
+
border: none; }
|
410
|
+
#global-header #logo:hover, #global-header #logo:focus {
|
411
|
+
text-decoration: none;
|
412
|
+
border-bottom: 1px solid;
|
413
|
+
padding-bottom: 0; }
|
414
|
+
#global-header #logo:active {
|
415
|
+
color: #2b8cc4; }
|
416
|
+
#global-header .header-proposition {
|
417
|
+
padding-top: 10px; }
|
418
|
+
@media (min-width: 769px) {
|
419
|
+
#global-header .header-proposition {
|
420
|
+
padding-top: 0; } }
|
421
|
+
#global-header .header-proposition #proposition-name {
|
422
|
+
font-family: "nta", Arial, sans-serif;
|
423
|
+
font-size: 24px;
|
424
|
+
line-height: 1.25;
|
425
|
+
font-weight: 400;
|
426
|
+
text-transform: none;
|
427
|
+
font-weight: bold;
|
428
|
+
color: white;
|
429
|
+
text-decoration: none; }
|
430
|
+
@media (max-width: 640px) {
|
431
|
+
#global-header .header-proposition #proposition-name {
|
432
|
+
font-size: 20px;
|
433
|
+
line-height: 1.2; } }
|
434
|
+
#global-header .header-proposition a.menu {
|
435
|
+
font-family: "nta", Arial, sans-serif;
|
436
|
+
font-size: 16px;
|
437
|
+
line-height: 1.25;
|
438
|
+
font-weight: 300;
|
439
|
+
text-transform: none;
|
440
|
+
color: white;
|
441
|
+
display: block;
|
442
|
+
float: right;
|
443
|
+
text-decoration: none;
|
444
|
+
padding-top: 6px; }
|
445
|
+
@media (max-width: 640px) {
|
446
|
+
#global-header .header-proposition a.menu {
|
447
|
+
font-size: 14px;
|
448
|
+
line-height: 1.14286; } }
|
449
|
+
@media (min-width: 769px) {
|
450
|
+
#global-header .header-proposition a.menu {
|
451
|
+
display: none; } }
|
452
|
+
#global-header .header-proposition a.menu:hover {
|
453
|
+
text-decoration: underline; }
|
454
|
+
#global-header .header-proposition a.menu:after {
|
455
|
+
display: inline-block;
|
456
|
+
font-size: 8px;
|
457
|
+
height: 8px;
|
458
|
+
padding-left: 5px;
|
459
|
+
vertical-align: middle;
|
460
|
+
content: " \25BC"; }
|
461
|
+
#global-header .header-proposition a.menu.js-hidden:after {
|
462
|
+
content: " \25B2"; }
|
463
|
+
#global-header .header-proposition #proposition-menu {
|
464
|
+
margin-top: 5px; }
|
465
|
+
#global-header .header-proposition #proposition-links {
|
466
|
+
clear: both;
|
467
|
+
margin: 2px 0 0 0;
|
468
|
+
padding: 0; }
|
469
|
+
.js-enabled #global-header .header-proposition #proposition-links {
|
470
|
+
display: none; }
|
471
|
+
@media (min-width: 769px) {
|
472
|
+
.js-enabled #global-header .header-proposition #proposition-links {
|
473
|
+
display: block; } }
|
474
|
+
.js-enabled #global-header .header-proposition #proposition-links.js-visible {
|
475
|
+
display: block; }
|
476
|
+
#global-header .header-proposition #proposition-links li {
|
477
|
+
float: left;
|
478
|
+
width: 50%;
|
479
|
+
padding: 3px 0;
|
480
|
+
border-bottom: 1px solid #2e3133; }
|
481
|
+
@media (min-width: 769px) {
|
482
|
+
#global-header .header-proposition #proposition-links li {
|
483
|
+
display: block;
|
484
|
+
width: auto;
|
485
|
+
padding: 0 15px 0 0;
|
486
|
+
border-bottom: 0; }
|
487
|
+
#global-header .header-proposition #proposition-links li.clear-child {
|
488
|
+
clear: left; } }
|
489
|
+
#global-header .header-proposition #proposition-links li a {
|
490
|
+
color: white;
|
491
|
+
text-decoration: none;
|
492
|
+
font-family: "nta", Arial, sans-serif;
|
493
|
+
font-size: 14px;
|
494
|
+
line-height: 1.42857;
|
495
|
+
font-weight: 400;
|
496
|
+
text-transform: none;
|
497
|
+
font-weight: 700; }
|
498
|
+
@media (max-width: 640px) {
|
499
|
+
#global-header .header-proposition #proposition-links li a {
|
500
|
+
font-size: 12px;
|
501
|
+
line-height: 1.25; } }
|
502
|
+
@media (min-width: 769px) {
|
503
|
+
#global-header .header-proposition #proposition-links li a {
|
504
|
+
font-family: "nta", Arial, sans-serif;
|
505
|
+
font-size: 16px;
|
506
|
+
line-height: 1.25;
|
507
|
+
font-weight: 300;
|
508
|
+
text-transform: none;
|
509
|
+
font-weight: 700;
|
510
|
+
line-height: 23px; } }
|
511
|
+
@media (min-width: 769px) and (max-width: 640px) {
|
512
|
+
#global-header .header-proposition #proposition-links li a {
|
513
|
+
font-size: 14px;
|
514
|
+
line-height: 1.14286; } }
|
515
|
+
#global-header .header-proposition #proposition-links li a:hover {
|
516
|
+
text-decoration: underline; }
|
517
|
+
#global-header .header-proposition #proposition-links li a.active {
|
518
|
+
color: #28a197; }
|
519
|
+
|
520
|
+
/* Global cookie message */
|
521
|
+
.js-enabled #global-cookie-message {
|
522
|
+
display: none;
|
523
|
+
/* shown with JS, always on for non-JS */ }
|
524
|
+
|
525
|
+
#global-cookie-message {
|
526
|
+
padding: 0.5em 2em;
|
527
|
+
background-color: #d5e8f3; }
|
528
|
+
#global-cookie-message p {
|
529
|
+
font-family: "nta", Arial, sans-serif;
|
530
|
+
font-size: 19px;
|
531
|
+
line-height: 1.31579;
|
532
|
+
font-weight: 400;
|
533
|
+
text-transform: none;
|
534
|
+
margin: 0 auto;
|
535
|
+
max-width: 960px; }
|
536
|
+
@media (max-width: 640px) {
|
537
|
+
#global-cookie-message p {
|
538
|
+
font-size: 16px;
|
539
|
+
line-height: 1.25; } }
|
540
|
+
@media (max-width: 640px) {
|
541
|
+
#global-cookie-message {
|
542
|
+
padding: 0.5em 1em; } }
|
543
|
+
|
544
|
+
/* Global footer */
|
545
|
+
#footer {
|
546
|
+
background-color: #dee0e2;
|
547
|
+
border-top: 1px solid #a1acb2; }
|
548
|
+
#footer .footer-wrapper {
|
549
|
+
max-width: 60em;
|
550
|
+
margin: 0 auto;
|
551
|
+
padding: 60px 1em 0 1em; }
|
552
|
+
@media (max-width: 640px) {
|
553
|
+
#footer .footer-wrapper {
|
554
|
+
padding-top: 20px; } }
|
555
|
+
#footer a {
|
556
|
+
color: #454a4c; }
|
557
|
+
#footer a:hover {
|
558
|
+
color: #171819; }
|
559
|
+
#footer h2 {
|
560
|
+
font-family: "nta", Arial, sans-serif;
|
561
|
+
font-size: 24px;
|
562
|
+
line-height: 1.25;
|
563
|
+
font-weight: 400;
|
564
|
+
text-transform: none;
|
565
|
+
font-weight: bold;
|
566
|
+
color: #171819;
|
567
|
+
margin: 0; }
|
568
|
+
@media (max-width: 640px) {
|
569
|
+
#footer h2 {
|
570
|
+
font-size: 20px;
|
571
|
+
line-height: 1.2; } }
|
572
|
+
#footer h2 a {
|
573
|
+
color: inherit; }
|
574
|
+
#footer .footer-meta {
|
575
|
+
clear: both;
|
576
|
+
font-size: 0;
|
577
|
+
color: #454a4c;
|
578
|
+
padding-bottom: 60px; }
|
579
|
+
@media (max-width: 640px) {
|
580
|
+
#footer .footer-meta {
|
581
|
+
margin: 0; } }
|
582
|
+
#footer .footer-meta .footer-meta-inner {
|
583
|
+
display: inline-block;
|
584
|
+
vertical-align: bottom;
|
585
|
+
width: 75%; }
|
586
|
+
@media (max-width: 640px) {
|
587
|
+
#footer .footer-meta .footer-meta-inner {
|
588
|
+
display: block;
|
589
|
+
width: 100%; } }
|
590
|
+
#footer .footer-meta .footer-meta-inner ul {
|
591
|
+
font-family: "nta", Arial, sans-serif;
|
592
|
+
font-size: 16px;
|
593
|
+
line-height: 1.5;
|
594
|
+
font-weight: 300;
|
595
|
+
text-transform: none;
|
596
|
+
display: inline-block;
|
597
|
+
list-style: none;
|
598
|
+
margin: 0 0 1em;
|
599
|
+
padding: 0; }
|
600
|
+
@media (max-width: 640px) {
|
601
|
+
#footer .footer-meta .footer-meta-inner ul {
|
602
|
+
font-size: 14px;
|
603
|
+
line-height: 1.5; } }
|
604
|
+
#footer .footer-meta .footer-meta-inner ul li {
|
605
|
+
display: inline-block;
|
606
|
+
margin: 0 15px 0 0; }
|
607
|
+
@media (max-width: 640px) {
|
608
|
+
#footer .footer-meta .footer-meta-inner ul {
|
609
|
+
width: auto;
|
610
|
+
margin: 0 0 1.5em 0; } }
|
611
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence {
|
612
|
+
clear: left;
|
613
|
+
position: relative;
|
614
|
+
padding-left: 53px; }
|
615
|
+
@media (max-width: 640px) {
|
616
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence {
|
617
|
+
padding-left: 0; } }
|
618
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence h2 {
|
619
|
+
position: absolute;
|
620
|
+
left: 0;
|
621
|
+
top: 0;
|
622
|
+
width: 41px;
|
623
|
+
height: 100%; }
|
624
|
+
@media (max-width: 640px) {
|
625
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence h2 {
|
626
|
+
position: static;
|
627
|
+
width: auto;
|
628
|
+
margin-bottom: 1em; } }
|
629
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence h2 a, #footer .footer-meta .footer-meta-inner .open-government-licence h2 img {
|
630
|
+
display: block;
|
631
|
+
width: 43px;
|
632
|
+
height: 17px; }
|
633
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence p {
|
634
|
+
font-family: "nta", Arial, sans-serif;
|
635
|
+
font-size: 16px;
|
636
|
+
line-height: 1.25;
|
637
|
+
font-weight: 300;
|
638
|
+
text-transform: none;
|
639
|
+
margin: 0;
|
640
|
+
padding-top: 0.1em; }
|
641
|
+
@media (max-width: 640px) {
|
642
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence p {
|
643
|
+
font-size: 14px;
|
644
|
+
line-height: 1.14286; } }
|
645
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence p a {
|
646
|
+
font-family: "nta", Arial, sans-serif;
|
647
|
+
font-size: 14px;
|
648
|
+
line-height: 1.42857;
|
649
|
+
font-weight: 400;
|
650
|
+
text-transform: none; }
|
651
|
+
@media (max-width: 640px) {
|
652
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence p a {
|
653
|
+
font-size: 12px;
|
654
|
+
line-height: 1.25; } }
|
655
|
+
@media (max-width: 640px) {
|
656
|
+
#footer .footer-meta .footer-meta-inner .open-government-licence p a {
|
657
|
+
font-size: 1em; } }
|
658
|
+
#footer .footer-meta .copyright {
|
659
|
+
font-family: "nta", Arial, sans-serif;
|
660
|
+
font-size: 16px;
|
661
|
+
line-height: 1.25;
|
662
|
+
font-weight: 300;
|
663
|
+
text-transform: none;
|
664
|
+
display: inline-block;
|
665
|
+
float: none;
|
666
|
+
text-align: inherit;
|
667
|
+
width: 25%;
|
668
|
+
padding-top: 15px; }
|
669
|
+
@media (max-width: 640px) {
|
670
|
+
#footer .footer-meta .copyright {
|
671
|
+
font-size: 14px;
|
672
|
+
line-height: 1.14286; } }
|
673
|
+
#footer .footer-meta .copyright a {
|
674
|
+
display: block;
|
675
|
+
padding: 115px 0 0 0;
|
676
|
+
background: transparent url(<%= asset_path 'images/govuk-crest.png' %>) no-repeat 100% 0;
|
677
|
+
text-align: right;
|
678
|
+
text-decoration: none; }
|
679
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
680
|
+
#footer .footer-meta .copyright a {
|
681
|
+
background-image: url(<%= asset_path 'images/govuk-crest-2x.png' %>);
|
682
|
+
background-size: 125px 102px; } }
|
683
|
+
@media (max-width: 640px) {
|
684
|
+
#footer .footer-meta .copyright {
|
685
|
+
width: 100%;
|
686
|
+
display: block;
|
687
|
+
padding: 0;
|
688
|
+
margin: 30px 0 0 0; }
|
689
|
+
#footer .footer-meta .copyright a {
|
690
|
+
text-align: center;
|
691
|
+
background-position: 50% 0%; } }
|