govuk_template 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbcd619886eb8daf3bcdd6d86a68f2468b0ad90a
4
- data.tar.gz: f4fa4fcecee1717a691ee16a91b5ee99b52bffa2
3
+ metadata.gz: 4ef0aa1629c1ed6a9f06a7e597527a6764f8daa7
4
+ data.tar.gz: 5d0ca05bd38b72f64d8701600ef1b4f36f8c91d9
5
5
  SHA512:
6
- metadata.gz: dd160afdff38dff1f0175ee4a3d024bcd870c88ddcfcfd03d65bc95663aa33d7a208df1ea4b55aa4b02f797249714c3b43aacc892eff0bda2295472b3b6e66c6
7
- data.tar.gz: 4280db30755abfa4946c36d25df8a412fa9bb73b96f8674c68bfd00626e266b97461ef4bfb9827b64070f2cb3232c9bf4f3a582f3e0ad2f64dc056f17883ec82
6
+ metadata.gz: 215123c012c3936878487fe2de68ef520f7696545827a356e9351d2f71f846ae1a785a636590ce64b84ba96a8dc58c223a6d027a2de4f8dfdce7618f6aaad066
7
+ data.tar.gz: 992066394240166acf8411b9484eb507e8f4bae41f2327d3d65769dd039dc2af75dc98cf236e57a5c6c6b195a99d6fe3bfcc8c6d9394891783ff2e7fbe0c8a96
@@ -77,20 +77,6 @@
77
77
  (function() {
78
78
  "use strict"
79
79
 
80
- // fix for printing bug in Windows Safari
81
- var windowsSafari = (window.navigator.userAgent.match(/(\(Windows[\s\w\.]+\))[\/\(\s\w\.\,\)]+(Version\/[\d\.]+)\s(Safari\/[\d\.]+)/) !== null),
82
- style;
83
-
84
- if (windowsSafari) {
85
- // set the New Transport font to Arial for printing
86
- style = document.createElement('style');
87
- style.setAttribute('type', 'text/css');
88
- style.setAttribute('media', 'print');
89
- style.innerHTML = '@font-face { font-family: nta !important; src: local("Arial") !important; }';
90
- document.getElementsByTagName('head')[0].appendChild(style);
91
- }
92
-
93
-
94
80
  // add cookie message
95
81
  if (window.GOVUK && GOVUK.addCookieMessage) {
96
82
  GOVUK.addCookieMessage();
@@ -377,17 +377,22 @@ button:focus,
377
377
  text-decoration: none;
378
378
  text-rendering: optimizeLegibility;
379
379
  margin-bottom: -1px;
380
- padding-bottom: 1px; }
380
+ padding-top: 1px;
381
+ background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
382
+ background-size: 35px 31px;
383
+ background-position: 0 0;
384
+ background-image: url(<%= asset_path 'images/gov.uk_logotype_crown-1x.png' %>); }
381
385
  #global-header #logo img {
382
386
  position: relative;
383
- top: -2px;
387
+ top: -1px;
384
388
  width: 35px;
385
389
  height: 31px;
386
390
  padding-right: 6px;
387
391
  float: left;
388
392
  display: inline;
389
393
  line-height: inherit;
390
- border: none; }
394
+ border: none;
395
+ visibility: hidden; }
391
396
  #global-header #logo:hover, #global-header #logo:focus {
392
397
  text-decoration: none;
393
398
  border-bottom: 1px solid;
@@ -377,17 +377,22 @@ button:focus,
377
377
  text-decoration: none;
378
378
  text-rendering: optimizeLegibility;
379
379
  margin-bottom: -1px;
380
- padding-bottom: 1px; }
380
+ padding-top: 1px;
381
+ background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
382
+ background-size: 35px 31px;
383
+ background-position: 0 0;
384
+ background-image: url(<%= asset_path 'images/gov.uk_logotype_crown-1x.png' %>); }
381
385
  #global-header #logo img {
382
386
  position: relative;
383
- top: -2px;
387
+ top: -1px;
384
388
  width: 35px;
385
389
  height: 31px;
386
390
  padding-right: 6px;
387
391
  float: left;
388
392
  display: inline;
389
393
  line-height: inherit;
390
- border: none; }
394
+ border: none;
395
+ visibility: hidden; }
391
396
  #global-header #logo:hover, #global-header #logo:focus {
392
397
  text-decoration: none;
393
398
  border-bottom: 1px solid;
@@ -363,17 +363,22 @@ button:focus,
363
363
  text-decoration: none;
364
364
  text-rendering: optimizeLegibility;
365
365
  margin-bottom: -1px;
366
- padding-bottom: 1px; }
366
+ padding-top: 1px;
367
+ background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
368
+ background-size: 35px 31px;
369
+ background-position: 0 0;
370
+ background-image: url(<%= asset_path 'images/gov.uk_logotype_crown-1x.png' %>); }
367
371
  #global-header #logo img {
368
372
  position: relative;
369
- top: -2px;
373
+ top: -1px;
370
374
  width: 35px;
371
375
  height: 31px;
372
376
  padding-right: 6px;
373
377
  float: left;
374
378
  display: inline;
375
379
  line-height: inherit;
376
- border: none; }
380
+ border: none;
381
+ visibility: hidden; }
377
382
  #global-header #logo:hover, #global-header #logo:focus {
378
383
  text-decoration: none;
379
384
  border-bottom: 1px solid;
@@ -68,7 +68,8 @@ select {
68
68
  #global-header a:after {
69
69
  content: ""; }
70
70
  #global-header img {
71
- display: none; }
71
+ border: 0;
72
+ vertical-align: middle; }
72
73
 
73
74
  /* hide the unnecessary page elements */
74
75
  body footer,
@@ -377,17 +377,21 @@ button:focus,
377
377
  text-decoration: none;
378
378
  text-rendering: optimizeLegibility;
379
379
  margin-bottom: -1px;
380
- padding-bottom: 1px; }
380
+ padding-top: 1px;
381
+ background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
382
+ background-size: 35px 31px;
383
+ background-position: 0 0; }
381
384
  #global-header #logo img {
382
385
  position: relative;
383
- top: -2px;
386
+ top: -1px;
384
387
  width: 35px;
385
388
  height: 31px;
386
389
  padding-right: 6px;
387
390
  float: left;
388
391
  display: inline;
389
392
  line-height: inherit;
390
- border: none; }
393
+ border: none;
394
+ visibility: hidden; }
391
395
  #global-header #logo:hover, #global-header #logo:focus {
392
396
  text-decoration: none;
393
397
  border-bottom: 1px solid;
@@ -82,7 +82,7 @@
82
82
  <div class="header-global">
83
83
  <div class="header-logo">
84
84
  <a href="<%= content_for?(:homepage_url) ? yield(:homepage_url) : "https://www.gov.uk/" %>" title="<%= content_for?(:logo_link_title) ? yield(:logo_link_title) : "Go to the GOV.UK homepage" %>" id="logo" class="content">
85
- <img src="<%= asset_path 'gov.uk_logotype_crown.png' %>" width="35" height="31" alt=""> <%= content_for?(:global_header_text) ? yield(:global_header_text) : "GOV.UK" %>
85
+ <img src="<%= asset_path 'gov.uk_logotype_crown_invert_trans.png' %>" width="35" height="31" alt=""> <%= content_for?(:global_header_text) ? yield(:global_header_text) : "GOV.UK" %>
86
86
  </a>
87
87
  </div>
88
88
  <%= yield :inside_header %>
@@ -1,3 +1,3 @@
1
1
  module GovukTemplate
2
- VERSION = "0.14.1"
2
+ VERSION = "0.14.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Tomlins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-20 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -178,7 +178,6 @@ files:
178
178
  - app/assets/images/apple-touch-icon-60x60.png
179
179
  - app/assets/images/apple-touch-icon-76x76.png
180
180
  - app/assets/images/favicon.ico
181
- - app/assets/images/gov.uk_logotype_crown.png
182
181
  - app/assets/images/gov.uk_logotype_crown_invert.png
183
182
  - app/assets/images/gov.uk_logotype_crown_invert_trans.png
184
183
  - app/assets/images/opengraph-image.png
@@ -201,6 +200,8 @@ files:
201
200
  - app/assets/stylesheets/govuk-template-print.css.erb
202
201
  - app/assets/stylesheets/govuk-template.css.erb
203
202
  - app/assets/stylesheets/images/close.png
203
+ - app/assets/stylesheets/images/gov.uk_logotype_crown-1x.png
204
+ - app/assets/stylesheets/images/gov.uk_logotype_crown.png
204
205
  - app/assets/stylesheets/images/govuk-crest-2x.png
205
206
  - app/assets/stylesheets/images/govuk-crest-ie.png
206
207
  - app/assets/stylesheets/images/govuk-crest.png