moj_template 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/moj-template.css.erb +70 -64
- data/app/views/layouts/moj_template.html.erb +11 -6
- data/lib/moj_template/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5bcbe4bca302db93fd3d96d7db5d18a983cf28d
|
4
|
+
data.tar.gz: 51607de6dbc4291ff08624b3e12317f6f192c9b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4adf78d036e49a51970b86229ab3ff9b6f392885f5db4c567118a87f7f9f3544db9823a2f600c5f42307f1fe844255620a64042f7e5b56c76b07af87255664f4
|
7
|
+
data.tar.gz: bab41f047ee4098d4e5ef0994334ff19029c2738ffa08e6ea6d23ae33ff3d256b07ab39b8c108c92bd16030a5310d7f0aec0cadf43a0794a2ccaa3c14da8b27f
|
@@ -299,70 +299,59 @@ body.beta .indicator {
|
|
299
299
|
body.beta .indicator a:hover {
|
300
300
|
color: #0b0c0c; }
|
301
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
|
-
letter-spacing: 1px;
|
356
|
-
text-decoration: none;
|
357
|
-
margin: 3px 10px 0 5px;
|
358
|
-
padding: 2px 5px 0; }
|
359
|
-
@media (max-width: 640px) {
|
360
|
-
body.beta .service-header a.service-phase {
|
361
|
-
font-size: 14px;
|
362
|
-
line-height: 1.14286; } }
|
363
|
-
body.alpha .service-header a.service-phase, body.beta .service-header a.service-phase {
|
364
|
-
margin-left: 1em;
|
365
|
-
text-decoration: none; }
|
302
|
+
@media (min-width: 769px) {
|
303
|
+
#global-header .header-proposition {
|
304
|
+
padding-top: 8px; } }
|
305
|
+
#global-header .header-proposition #proposition-name {
|
306
|
+
line-height: 1em;
|
307
|
+
display: inline-block; }
|
308
|
+
#global-header .header-proposition #proposition-name:hover {
|
309
|
+
border-bottom: 1px solid white; }
|
310
|
+
body.alpha #global-header .header-proposition .proposition-phase {
|
311
|
+
display: -moz-inline-stack;
|
312
|
+
display: inline-block;
|
313
|
+
background-color: #d53880;
|
314
|
+
color: #fff;
|
315
|
+
font-family: "nta", Arial, sans-serif;
|
316
|
+
font-size: 16px;
|
317
|
+
line-height: 1.25;
|
318
|
+
font-weight: 300;
|
319
|
+
text-transform: none;
|
320
|
+
font-weight: 700;
|
321
|
+
text-transform: uppercase;
|
322
|
+
letter-spacing: 1px;
|
323
|
+
text-decoration: none;
|
324
|
+
margin: 3px 10px 0 5px;
|
325
|
+
padding: 2px 5px 0; }
|
326
|
+
@media (max-width: 640px) {
|
327
|
+
body.alpha #global-header .header-proposition .proposition-phase {
|
328
|
+
font-size: 14px;
|
329
|
+
line-height: 1.14286; } }
|
330
|
+
body.beta #global-header .header-proposition .proposition-phase {
|
331
|
+
display: -moz-inline-stack;
|
332
|
+
display: inline-block;
|
333
|
+
background-color: #f47738;
|
334
|
+
color: #fff;
|
335
|
+
font-family: "nta", Arial, sans-serif;
|
336
|
+
font-size: 16px;
|
337
|
+
line-height: 1.25;
|
338
|
+
font-weight: 300;
|
339
|
+
text-transform: none;
|
340
|
+
font-weight: 700;
|
341
|
+
text-transform: uppercase;
|
342
|
+
letter-spacing: 1px;
|
343
|
+
text-decoration: none;
|
344
|
+
margin: 3px 10px 0 5px;
|
345
|
+
padding: 2px 5px 0; }
|
346
|
+
@media (max-width: 640px) {
|
347
|
+
body.beta #global-header .header-proposition .proposition-phase {
|
348
|
+
font-size: 14px;
|
349
|
+
line-height: 1.14286; } }
|
350
|
+
body.alpha #global-header .header-proposition .proposition-phase, body.beta #global-header .header-proposition .proposition-phase {
|
351
|
+
margin-left: 1em;
|
352
|
+
text-decoration: none;
|
353
|
+
position: relative;
|
354
|
+
top: -3px; }
|
366
355
|
|
367
356
|
#global-breadcrumb {
|
368
357
|
background-color: white;
|
@@ -636,3 +625,20 @@ body.beta .indicator {
|
|
636
625
|
#footer .footer-inside-government ul li {
|
637
626
|
margin-right: 0;
|
638
627
|
width: 100%; }
|
628
|
+
|
629
|
+
/* Phase indicator alignment fixes */
|
630
|
+
.indicator {
|
631
|
+
padding: 0.5em 2em !important;
|
632
|
+
/* Set alpha bar to white text */ }
|
633
|
+
@media (max-width: 640px) {
|
634
|
+
.indicator {
|
635
|
+
padding: 0.5em 1em !important; } }
|
636
|
+
.indicator p {
|
637
|
+
padding: 0 !important;
|
638
|
+
/* Set uppercase font for indicator phase */ }
|
639
|
+
.indicator p strong {
|
640
|
+
text-transform: uppercase; }
|
641
|
+
body.alpha .indicator p,
|
642
|
+
body.alpha .indicator a:visited,
|
643
|
+
body.alpha .indicator a:link {
|
644
|
+
color: white; }
|
@@ -84,7 +84,7 @@
|
|
84
84
|
</div>
|
85
85
|
|
86
86
|
|
87
|
-
<header role="banner" id="global-header" class="<%= yield :header_class %>">
|
87
|
+
<header role="banner" id="global-header" class="with-proposition <%= yield :header_class %>">
|
88
88
|
<div class="header-wrapper">
|
89
89
|
<div class="header-global">
|
90
90
|
<div class="header-logo">
|
@@ -92,13 +92,18 @@
|
|
92
92
|
<img src="<%= asset_path "gov.uk_logotype_crown.png" %>" alt=""> GOV.UK
|
93
93
|
</a>
|
94
94
|
</div>
|
95
|
-
<div class="service-header">
|
96
|
-
<a href="/" class="service-name"><%= "#{config_item(:proposition_title)}" %></a>
|
97
|
-
<% if config_item(:phase) != :live %><a href="https://www.gov.uk/service-manual/phases/<%= "#{config_item(:phase).to_s.downcase}" %>.html" class="service-phase <%= "#{config_item(:phase).to_s.downcase}" %>"><%= "#{config_item(:phase.to_s.downcase)}" %></a><% end %>
|
98
|
-
</div>
|
99
95
|
<%= yield :inside_header %>
|
100
96
|
</div>
|
101
|
-
|
97
|
+
<% if content_for?(:proposition_header) %>
|
98
|
+
<%= yield(:proposition_header) %>
|
99
|
+
<% else %>
|
100
|
+
<div class="header-proposition">
|
101
|
+
<div class="content">
|
102
|
+
<a href="/" id="proposition-name"><%= "#{config_item(:proposition_title)}" %></a>
|
103
|
+
<a href="https://www.gov.uk/service-manual/phases/#{config_item(:phase).to_s.downcas}.html" class="proposition-phase"><%= "#{config_item(:phase).to_s.capitalize}" %></a>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
<% end %>
|
102
107
|
</div>
|
103
108
|
</header>
|
104
109
|
<!--end header-->
|
data/lib/moj_template/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moj_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dom Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|