govuk_publishing_components 24.1.0 → 24.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93a8bde02a39806e02cc9007a6b503aa3e65af3f1e7768b29f1d82c2c0ae66c4
4
- data.tar.gz: b1e3bf6f8b98f5a4dcf2847fdca19aeed81b140491d43c230a5ea7074961d91b
3
+ metadata.gz: 664f19b71a4b1ec65f49a7a14fa21d4a2a64465b2f593a3c75e2de132474417a
4
+ data.tar.gz: 8e734701d0d66817548de5855938a6cdad1f9b2ce2fa96437075e9058331785a
5
5
  SHA512:
6
- metadata.gz: 64cffb98c5dc002910a32ee736f21500ca921d5c3e5d165f66f87688d4e2a589da8e4aa69deba06b953924cf152aaac39e2f19752e80f7d7184285c9ce43bf8e
7
- data.tar.gz: d1defc316e8d5e7171d903fa874ef1d8c93d416f1ce28e4c860aaed644b088e9621e24b2fb5a955768234a0d8d642193283509819348693b39c121e584aeeb5f
6
+ metadata.gz: 9073c4b0254a544f3a0f6da89889550786a3f0e7cc5611b6c89768be9c8d66ff27b8364d54525e677013c439e73acb7dd618289f2d72787d56b6f833d89df910
7
+ data.tar.gz: 2ed858269eee93ae2212110fd2aa4b4cee21106e5028a36508d3242982a8e60be387b1f31e8b7694f1b66b401707049865f4fda1338639d3b9ce5e702db99b05
@@ -1,5 +1,3 @@
1
- @import "govuk_publishing_components/component_support";
2
-
3
1
  $gem-c-accordion-border-width: 3px;
4
2
  $gem-c-accordion-bottom-border-width: 1px;
5
3
 
@@ -16,8 +14,7 @@ $gem-c-accordion-bottom-border-width: 1px;
16
14
  padding-top: govuk-spacing(2) 0;
17
15
  }
18
16
 
19
- .gem-c-accordion__section-heading,
20
- .gem-c-accordion__section-summary {
17
+ .gem-c-accordion__section-heading {
21
18
  margin: govuk-spacing(1) 0;
22
19
  }
23
20
 
@@ -242,7 +239,7 @@ $gem-c-accordion-bottom-border-width: 1px;
242
239
 
243
240
  // Change the summary subheading size.
244
241
  .gem-c-accordion__section-summary {
245
- @include govuk-responsive-margin(2, "top");
242
+ @include govuk-responsive-margin(1, "top");
246
243
  @include govuk-responsive-margin(2, "bottom");
247
244
  @include govuk-typography-common;
248
245
  @include govuk-typography-responsive($size: 19);
@@ -303,7 +300,6 @@ $gem-c-accordion-bottom-border-width: 1px;
303
300
 
304
301
  .gem-c-accordion__section-summary {
305
302
  @include govuk-typography-responsive($size: 16, $important: true);
306
- margin: govuk-spacing(1) 0;
307
303
  }
308
304
 
309
305
  .gem-c-accordion__toggle-link {
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .gem-c-layout-header--search-left {
34
- .gem-c-header__menu-button {
34
+ .gem-c-header__menu-button.govuk-header__menu-button {
35
35
  margin-top: - govuk-spacing(7);
36
36
  left: 0;
37
37
  }
@@ -70,7 +70,7 @@
70
70
  margin-top: 0;
71
71
  }
72
72
 
73
- .gem-c-header__content {
73
+ .gem-c-header__content.govuk-header__content {
74
74
  @include govuk-grid-column(two-thirds);
75
75
  padding-left: govuk-spacing(6);
76
76
  padding-right: govuk-spacing(1);
@@ -78,10 +78,16 @@
78
78
  }
79
79
  }
80
80
 
81
+ .gem-c-layout-header__search.govuk-grid-column-one-third-from-desktop,
82
+ .gem-c-layout-header__logo.govuk-grid-column-one-third-from-desktop,
83
+ .gem-c-layout-header__search.govuk-grid-column-one-third,
84
+ .gem-c-layout-header__logo.govuk-grid-column-two-thirds {
85
+ padding-right: 0;
86
+ padding-left: 0;
87
+ }
88
+
81
89
  .gem-c-layout-header__logo,
82
90
  .gem-c-layout-header__search {
83
- padding: 0;
84
-
85
91
  @include govuk-media-query($until: "tablet") {
86
92
  margin-bottom: govuk-spacing(3);
87
93
  }
@@ -96,8 +102,9 @@
96
102
  }
97
103
  }
98
104
 
99
- .gem-c-header__content {
105
+ .gem-c-header__content.govuk-header__content {
100
106
  width: auto;
107
+ padding-left: 0;
101
108
 
102
109
  @include govuk-media-query($from: desktop) {
103
110
  float: right;
@@ -159,3 +166,12 @@
159
166
  display: block;
160
167
  }
161
168
  }
169
+
170
+ .govuk-header__menu-button.gem-c-header__menu-button {
171
+ top: govuk-spacing(4);
172
+ right: 0;
173
+ }
174
+
175
+ .gem-c-header__nav {
176
+ clear: both;
177
+ }
@@ -141,6 +141,10 @@ $top-border: solid 1px govuk-colour("mid-grey", $legacy: "grey-3");
141
141
  .gem-c-step-nav--large & {
142
142
  margin-left: em(5, 16);
143
143
  }
144
+
145
+ svg {
146
+ pointer-events: none;
147
+ }
144
148
  }
145
149
 
146
150
  .gem-c-step-nav__button-text {
@@ -2,6 +2,7 @@
2
2
  //
3
3
  // TODO: Replace with the print styles that will come from GOV.UK Frontend.
4
4
 
5
+ @import "govuk_publishing_components/component_support";
5
6
  @import "../accordion";
6
7
 
7
8
  // Open all of the accordion sections.
@@ -1,14 +1,4 @@
1
1
  // This file should be included in an application prior to specific components
2
2
  // It provides govuk-frontend but adds no weight to the compiled CSS
3
3
  @import "components/helpers/govuk-frontend-settings";
4
- @import "govuk/settings/all";
5
- @import "govuk/tools/all";
6
- @import "govuk/helpers/all";
7
- $govuk-colours-organisations: map-merge(
8
- $govuk-colours-organisations,
9
- (
10
- "foreign-commonwealth-development-office": (
11
- colour: #012169
12
- )
13
- )
14
- );
4
+ @import "govuk/base";
@@ -14,7 +14,7 @@ module GovukPublishingComponents
14
14
  stylesheets = Dir["#{path}/app/assets/stylesheets/**/*.scss"]
15
15
  javascripts = Dir["#{path}/app/assets/javascripts/**/*.js"]
16
16
 
17
- find_components = /(?<=govuk_publishing_components\/components\/)[\/a-zA-Z_-]+(?=['"])/
17
+ find_components = /(?<=govuk_publishing_components\/components\/)[a-zA-Z_-]+(?=['"])/
18
18
 
19
19
  @find_all_stylesheets = /@import ["']{1}govuk_publishing_components\/all_components/
20
20
  find_stylesheets = /(?<=@import ["']{1}govuk_publishing_components\/components\/)(?!print\/)+[a-zA-Z_-]+(?=['"])/
@@ -41,11 +41,11 @@
41
41
  "aria-hidden": true,
42
42
  data: data_attributes do %>
43
43
  <% if attachment.document? %>
44
- <%= render "govuk_publishing_components/components/attachment/thumbnail_document.svg" %>
44
+ <%= render "govuk_publishing_components/components/attachment/thumbnail_document" %>
45
45
  <% elsif attachment.spreadsheet? %>
46
- <%= render "govuk_publishing_components/components/attachment/thumbnail_spreadsheet.svg" %>
46
+ <%= render "govuk_publishing_components/components/attachment/thumbnail_spreadsheet" %>
47
47
  <% else %>
48
- <%= render "govuk_publishing_components/components/attachment/thumbnail_generic.svg" %>
48
+ <%= render "govuk_publishing_components/components/attachment/thumbnail_generic" %>
49
49
  <% end %>
50
50
  <% end %>
51
51
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "24.1.0".freeze
2
+ VERSION = "24.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.1.0
4
+ version: 24.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-10 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -674,9 +674,9 @@ files:
674
674
  - app/views/govuk_publishing_components/components/_title.html.erb
675
675
  - app/views/govuk_publishing_components/components/_translation_nav.html.erb
676
676
  - app/views/govuk_publishing_components/components/_warning_text.html.erb
677
- - app/views/govuk_publishing_components/components/attachment/_thumbnail_document.svg
678
- - app/views/govuk_publishing_components/components/attachment/_thumbnail_generic.svg
679
- - app/views/govuk_publishing_components/components/attachment/_thumbnail_spreadsheet.svg
677
+ - app/views/govuk_publishing_components/components/attachment/_thumbnail_document.html.erb
678
+ - app/views/govuk_publishing_components/components/attachment/_thumbnail_generic.html.erb
679
+ - app/views/govuk_publishing_components/components/attachment/_thumbnail_spreadsheet.html.erb
680
680
  - app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
681
681
  - app/views/govuk_publishing_components/components/docs/accordion.yml
682
682
  - app/views/govuk_publishing_components/components/docs/action_link.yml