govuk_template 0.18.2 → 0.18.3

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: 29b0a821339912c3264d9000a6d5822d0bad5950
4
- data.tar.gz: 1e5e8809914432ea28a49ff82d2bcff6829c6094
3
+ metadata.gz: 82d399fbbbcd2dd18fdb93d57187124f48c40c2c
4
+ data.tar.gz: 416c9880abfc6af8c802ddee42bd8da6bde0e5db
5
5
  SHA512:
6
- metadata.gz: 44dc4910bee156aab3a913181e87135e085299acb4610fc8fa791c528e101e9ab0f6bf5a103854797a195e7f7dbaa99a2ac19b5f2e6516aa8bebd8bae500a088
7
- data.tar.gz: 550fe9be4e306768485062e3236d33a8b5cc19834a9ffc0d2404b63201be364fdea91555fcdb57ae3966a669bc0d3ab282dbe4d51fbab0537087b20e98b237f8
6
+ metadata.gz: ecec8c63abd9383281e9c1f4cac975e3c545cfd5cc8214dd9f84e21bac39bb2cffb19e339c92e406ac5a0693dd74ea77bc8a3cca5e222b373fea2193bea99230
7
+ data.tar.gz: 5b7c5821e4ec14761fecb63e89b59c3fac922882d4103538d86b3ee6f7dd4e40dd96183e5f3863cbbbc9b1147b46f9375eebd576ea4081fda9d70f667fd6c631
@@ -367,7 +367,7 @@ button:focus,
367
367
  #global-header .header-wrapper .header-global .header-logo .content {
368
368
  margin: 0 15px; }
369
369
  #global-header .header-wrapper .header-global .header-logo {
370
- margin: 5px 0 2px; }
370
+ margin-top: 2px; }
371
371
  #global-header.with-proposition .header-wrapper .header-global {
372
372
  float: left;
373
373
  width: 33.33%; }
@@ -381,34 +381,21 @@ button:focus,
381
381
  margin: 0 15px; }
382
382
  #global-header #logo {
383
383
  float: left;
384
- position: relative;
385
- top: -1px;
386
- height: 30px;
387
384
  overflow: visible;
388
- vertical-align: baseline;
389
385
  color: white;
390
386
  font-weight: bold;
391
387
  font-size: 30px;
392
- line-height: 1em;
388
+ line-height: 1;
393
389
  text-decoration: none;
394
390
  text-rendering: optimizeLegibility;
395
- margin-bottom: -3px;
396
- padding-top: 2px;
397
391
  border-bottom: 1px solid transparent;
398
392
  background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
399
- background-size: 35px 31px;
393
+ background-size: 36px 32px;
400
394
  background-position: 0 0;
401
395
  background-image: url(<%= asset_path 'images/gov.uk_logotype_crown-1x.png' %>); }
402
396
  #global-header #logo img {
403
- position: relative;
404
- top: -2px;
405
- width: 35px;
406
- height: 31px;
407
- padding-right: 6px;
408
- float: left;
409
- display: inline;
410
- line-height: inherit;
411
- border: none;
397
+ margin: 2px 1px 0 0;
398
+ vertical-align: bottom;
412
399
  visibility: hidden; }
413
400
  #global-header #logo:hover, #global-header #logo:focus {
414
401
  text-decoration: none;
@@ -367,7 +367,7 @@ button:focus,
367
367
  #global-header .header-wrapper .header-global .header-logo .content {
368
368
  margin: 0 15px; }
369
369
  #global-header .header-wrapper .header-global .header-logo {
370
- margin: 5px 0 2px; }
370
+ margin-top: 2px; }
371
371
  #global-header.with-proposition .header-wrapper .header-global {
372
372
  float: left;
373
373
  width: 33.33%; }
@@ -381,34 +381,21 @@ button:focus,
381
381
  margin: 0 15px; }
382
382
  #global-header #logo {
383
383
  float: left;
384
- position: relative;
385
- top: -1px;
386
- height: 30px;
387
384
  overflow: visible;
388
- vertical-align: baseline;
389
385
  color: white;
390
386
  font-weight: bold;
391
387
  font-size: 30px;
392
- line-height: 1em;
388
+ line-height: 1;
393
389
  text-decoration: none;
394
390
  text-rendering: optimizeLegibility;
395
- margin-bottom: -3px;
396
- padding-top: 2px;
397
391
  border-bottom: 1px solid transparent;
398
392
  background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
399
- background-size: 35px 31px;
393
+ background-size: 36px 32px;
400
394
  background-position: 0 0;
401
395
  background-image: url(<%= asset_path 'images/gov.uk_logotype_crown-1x.png' %>); }
402
396
  #global-header #logo img {
403
- position: relative;
404
- top: -2px;
405
- width: 35px;
406
- height: 31px;
407
- padding-right: 6px;
408
- float: left;
409
- display: inline;
410
- line-height: inherit;
411
- border: none;
397
+ margin: 2px 1px 0 0;
398
+ vertical-align: bottom;
412
399
  visibility: hidden; }
413
400
  #global-header #logo:hover, #global-header #logo:focus {
414
401
  text-decoration: none;
@@ -353,7 +353,7 @@ button:focus,
353
353
  #global-header .header-wrapper .header-global .header-logo .content {
354
354
  margin: 0 15px; }
355
355
  #global-header .header-wrapper .header-global .header-logo {
356
- margin: 5px 0 2px; }
356
+ margin-top: 2px; }
357
357
  #global-header.with-proposition .header-wrapper .header-global {
358
358
  float: left;
359
359
  width: 33.33%; }
@@ -367,34 +367,21 @@ button:focus,
367
367
  margin: 0 15px; }
368
368
  #global-header #logo {
369
369
  float: left;
370
- position: relative;
371
- top: -1px;
372
- height: 30px;
373
370
  overflow: visible;
374
- vertical-align: baseline;
375
371
  color: white;
376
372
  font-weight: bold;
377
373
  font-size: 30px;
378
- line-height: 1em;
374
+ line-height: 1;
379
375
  text-decoration: none;
380
376
  text-rendering: optimizeLegibility;
381
- margin-bottom: -3px;
382
- padding-top: 2px;
383
377
  border-bottom: 1px solid transparent;
384
378
  background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
385
- background-size: 35px 31px;
379
+ background-size: 36px 32px;
386
380
  background-position: 0 0;
387
381
  background-image: url(<%= asset_path 'images/gov.uk_logotype_crown-1x.png' %>); }
388
382
  #global-header #logo img {
389
- position: relative;
390
- top: -2px;
391
- width: 35px;
392
- height: 31px;
393
- padding-right: 6px;
394
- float: left;
395
- display: inline;
396
- line-height: inherit;
397
- border: none;
383
+ margin: 2px 1px 0 0;
384
+ vertical-align: bottom;
398
385
  visibility: hidden; }
399
386
  #global-header #logo:hover, #global-header #logo:focus {
400
387
  text-decoration: none;
@@ -54,29 +54,27 @@ select {
54
54
  background: white; }
55
55
 
56
56
  #global-header {
57
- color: #000;
58
- font-weight: bold;
59
- font-size: 24px;
60
- margin-bottom: 1em; }
57
+ margin: 3px 0 1em; }
61
58
  #global-header #logo {
62
59
  font-family: sans-serif;
63
60
  font-size: 18pt;
64
61
  line-height: 1.04167;
65
- font-weight: 400;
62
+ font-weight: 700;
66
63
  text-transform: none;
67
64
  font-size: 28pt;
68
- font-weight: bold;
65
+ /* `bold-80` can be used instead when govuk_frontend_toolkit gem is >= 4.18.2,
66
+ see https://github.com/alphagov/govuk_frontend_toolkit/pull/328 */
69
67
  text-rendering: optimizeLegibility; }
70
68
  @media (max-width: 640px) {
71
69
  #global-header #logo {
72
70
  font-size: 32px;
73
71
  line-height: 1.09375; } }
74
72
  #global-header #logo img {
75
- width: 46px;
73
+ width: 45px;
76
74
  height: 40px;
77
- padding-right: 6px;
78
- display: block;
79
- float: left; }
75
+ position: relative;
76
+ top: -3px;
77
+ vertical-align: bottom; }
80
78
  #global-header .content {
81
79
  margin: 0 !important; }
82
80
  #global-header a, #global-header a:visited {
@@ -360,7 +360,7 @@ button:focus,
360
360
  #global-header .header-wrapper .header-global .header-logo .content {
361
361
  margin: 0 15px; }
362
362
  #global-header .header-wrapper .header-global .header-logo {
363
- margin: 5px 0 2px; }
363
+ margin-top: 2px; }
364
364
  @media (min-width: 769px) {
365
365
  #global-header.with-proposition .header-wrapper .header-global {
366
366
  float: left;
@@ -376,33 +376,20 @@ button:focus,
376
376
  margin: 0 15px; }
377
377
  #global-header #logo {
378
378
  float: left;
379
- position: relative;
380
- top: -1px;
381
- height: 30px;
382
379
  overflow: visible;
383
- vertical-align: baseline;
384
380
  color: white;
385
381
  font-weight: bold;
386
382
  font-size: 30px;
387
- line-height: 1em;
383
+ line-height: 1;
388
384
  text-decoration: none;
389
385
  text-rendering: optimizeLegibility;
390
- margin-bottom: -3px;
391
- padding-top: 2px;
392
386
  border-bottom: 1px solid transparent;
393
387
  background: url(<%= asset_path 'images/gov.uk_logotype_crown.png' %>) no-repeat;
394
- background-size: 35px 31px;
388
+ background-size: 36px 32px;
395
389
  background-position: 0 0; }
396
390
  #global-header #logo img {
397
- position: relative;
398
- top: -2px;
399
- width: 35px;
400
- height: 31px;
401
- padding-right: 6px;
402
- float: left;
403
- display: inline;
404
- line-height: inherit;
405
- border: none;
391
+ margin: 2px 1px 0 0;
392
+ vertical-align: bottom;
406
393
  visibility: hidden; }
407
394
  #global-header #logo:hover, #global-header #logo:focus {
408
395
  text-decoration: none;
@@ -54,7 +54,7 @@
54
54
  <div class="header-global">
55
55
  <div class="header-logo">
56
56
  <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">
57
- <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" %>
57
+ <img src="<%= asset_path 'gov.uk_logotype_crown_invert_trans.png' %>" width="36" height="32" alt=""> <%= content_for?(:global_header_text) ? yield(:global_header_text) : "GOV.UK" %>
58
58
  </a>
59
59
  </div>
60
60
  <%= yield :inside_header %>
@@ -1,3 +1,3 @@
1
1
  module GovukTemplate
2
- VERSION = "0.18.2"
2
+ VERSION = "0.18.3"
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.18.2
4
+ version: 0.18.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Tomlins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-12 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails