govuk_publishing_components 64.2.0 → 65.1.0
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 +4 -4
- data/app/assets/stylesheets/component_guide/application.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/_base.scss +7 -0
- data/app/assets/stylesheets/govuk_publishing_components/{_all_components.scss → all-components.scss} +10 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_add-another.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-to-top-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list-with-body.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_figure.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_glance-metric.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_global-banner.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_password-input.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_published-dates.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_secondary-navigation.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_service-navigation.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_summary-banner.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_summary-card.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/{govuk_frontend_support.scss → components/helpers/_colours.scss} +0 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_index.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/{_css3.scss → _prefixed-transform.scss} +0 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_scale.scss +5 -0
- data/app/assets/stylesheets/govuk_publishing_components/settings/_app-font-url.scss +7 -0
- data/app/assets/stylesheets/govuk_publishing_components/settings/_app-image-url.scss +7 -0
- data/app/assets/stylesheets/govuk_publishing_components/settings/_colours.scss +5 -0
- data/app/assets/stylesheets/govuk_publishing_components/settings/_index.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/settings/_typography.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/specific-components.scss +11 -0
- data/app/models/govuk_publishing_components/audit_applications.rb +1 -1
- data/lib/govuk_publishing_components/presenters/big_number_helper.rb +1 -1
- data/lib/govuk_publishing_components/presenters/machine_readable/page.rb +23 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +15 -9
- data/app/assets/stylesheets/govuk_publishing_components/_individual_component_support.scss +0 -8
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +0 -17
- /data/app/assets/stylesheets/govuk_publishing_components/{components/helpers → lib}/_link.scss +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a7948661e4bf8e19ab9c6a5510d300c61079c96f2cac1d573d7ef3ec1a3ddda
|
|
4
|
+
data.tar.gz: 10d2df108c49d0a839bb897a734d8775deac5a71361e677c3ca937a46c0421f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d374a98c7fd19c17b516a9a8c2a0b3e86dda144a0944e83121196af87b9f4b606f2088b799c873e4cdf2be1d82d552843c790b8094bf5b619c38ad08847e81c
|
|
7
|
+
data.tar.gz: 0e56f97f572bc11756d4d49894a09a28f52e77b58a714f40b276bb82eaaa04dd843c9a854f24c7e8e6578f781c9b35812cf499c5b9cf2b66f5e879e376bb1ffc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file contains the styles for the Component Guide.
|
|
2
2
|
@use "sass:color";
|
|
3
|
-
@import "govuk_publishing_components/
|
|
3
|
+
@import "govuk_publishing_components/all-components";
|
|
4
4
|
|
|
5
5
|
// Include required helpers
|
|
6
6
|
@import "../../stylesheets/govuk_publishing_components/components/helpers/markdown-typography";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// nothing in this file should add any CSS weight
|
|
2
|
+
// so that it can be imported into any CSS file
|
|
3
|
+
|
|
4
|
+
@import "settings/index";
|
|
5
|
+
@import "govuk/base";
|
|
6
|
+
@import "govuk_publishing_components/components/helpers/colours";
|
|
7
|
+
@import "govuk_publishing_components/components/mixins/index";
|
data/app/assets/stylesheets/govuk_publishing_components/{_all_components.scss → all-components.scss}
RENAMED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
// the components.
|
|
1
|
+
@import "base";
|
|
3
2
|
|
|
4
|
-
@import "
|
|
5
|
-
@import "
|
|
3
|
+
@import "govuk/core/index";
|
|
4
|
+
@import "govuk/objects/index";
|
|
5
|
+
@import "govuk/utilities/index";
|
|
6
|
+
@import "govuk/overrides/index";
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
@import "
|
|
8
|
+
@import "govuk_publishing_components/components/helpers/brand-colours";
|
|
9
|
+
@import "govuk_publishing_components/components/helpers/contents-list-helper";
|
|
10
|
+
@import "govuk_publishing_components/lib/link";
|
|
11
|
+
@import "govuk_publishing_components/lib/print_support";
|
|
9
12
|
|
|
10
|
-
// components
|
|
11
13
|
@import "components/accordion";
|
|
12
14
|
@import "components/action-link";
|
|
13
15
|
@import "components/add-another";
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
@import "components/related-navigation";
|
|
74
76
|
@import "components/reorderable-list";
|
|
75
77
|
@import "components/search";
|
|
78
|
+
@import "components/search-with-autocomplete";
|
|
76
79
|
@import "components/secondary-navigation";
|
|
77
80
|
@import "components/select";
|
|
78
81
|
@import "components/select-with-search";
|
data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import "govuk_publishing_components/individual_component_support";
|
|
2
|
-
|
|
3
1
|
// These styles are adapted from the original Accessible Autocomplete component stylesheet, mostly
|
|
4
2
|
// to remove superfluous styles that are already provided by the GOV.UK Design System, and to adapt
|
|
5
3
|
// the styling to match the new GOV.UK search box designs (e.g. to remove the zebra striping on
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// overload the choices.js variables
|
|
2
2
|
|
|
3
|
-
@import "govuk_publishing_components/individual_component_support";
|
|
4
|
-
|
|
5
3
|
$font-size: 19px;
|
|
6
4
|
|
|
7
5
|
$choices-bg-color: govuk-colour("white") !default;
|
|
@@ -16,7 +14,6 @@ $choices-border-radius-item: 0 !default;
|
|
|
16
14
|
$choices-z-index: 2 !default;
|
|
17
15
|
$choices-button-dimension: 12px !default;
|
|
18
16
|
|
|
19
|
-
@import "mixins/css3";
|
|
20
17
|
@import "govuk/components/label/label";
|
|
21
18
|
@import "choices.js/src/styles/choices";
|
|
22
19
|
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@import "../helpers/markdown-typography";
|
|
2
1
|
// Govspeak typography
|
|
3
2
|
// https://components.publishing.service.gov.uk/component-guide/govspeak/heading_levels
|
|
4
3
|
// https://components.publishing.service.gov.uk/component-guide/govspeak/lists
|
|
@@ -10,6 +9,7 @@
|
|
|
10
9
|
// - alphagov/govspeak: ✔︎
|
|
11
10
|
|
|
12
11
|
// stylelint-disable max-nesting-depth
|
|
12
|
+
@import "../helpers/markdown-typography";
|
|
13
13
|
|
|
14
14
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
|
15
15
|
.gem-c-govspeak {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
// This file should be included in an application prior to specific components
|
|
2
|
-
// It provides govuk-frontend but adds no weight to the compiled CSS
|
|
3
|
-
@import "components/helpers/govuk-frontend-settings";
|
|
4
|
-
@import "govuk/base";
|
|
5
|
-
|
|
6
|
-
@import "components/mixins/margins";
|
|
7
|
-
|
|
8
|
-
$govuk-suppressed-warnings: (
|
|
9
|
-
organisation-colours
|
|
10
|
-
);
|
|
11
|
-
|
|
12
1
|
$gem-secondary-button-colour: #00823b;
|
|
13
2
|
$gem-secondary-button-hover-colour: darken($gem-secondary-button-colour, 5%);
|
|
14
3
|
$gem-secondary-button-background-colour: govuk-colour("white");
|
|
@@ -17,10 +6,7 @@ $gem-secondary-button-hover-background-colour: govuk-colour("light-grey");
|
|
|
17
6
|
$gem-quiet-button-colour: govuk-colour("dark-grey");
|
|
18
7
|
$gem-quiet-button-hover-colour: darken($gem-quiet-button-colour, 5%);
|
|
19
8
|
|
|
20
|
-
$gem-hover-dark-background: #dddcdb;
|
|
21
|
-
|
|
22
9
|
// Brand refresh
|
|
23
|
-
|
|
24
10
|
$govuk-blue-tint-95: govuk-tint($govuk-brand-colour, 95%);
|
|
25
11
|
$govuk-blue-tint-80: govuk-tint(govuk-colour("blue"), 80%);
|
|
26
12
|
$govuk-blue-tint-50: govuk-tint(govuk-colour("blue"), 50%);
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
@mixin scale($size) {
|
|
2
|
-
-webkit-transform: scale($size); // Chrome, Opera 15+, Safari 3.1+
|
|
3
|
-
-ms-transform: scale($size); // IE 9
|
|
4
|
-
transform: scale($size); // Firefox 16+, IE 10+, Opera
|
|
5
|
-
}
|
|
6
|
-
|
|
7
1
|
@mixin prefixed-transform($translateY: 0, $rotate: 0, $scale: 1) {
|
|
8
2
|
-webkit-transform: translateY($translateY) rotate($rotate) scale($scale);
|
|
9
3
|
-ms-transform: translateY($translateY) rotate($rotate) scale($scale);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Custom font URL function
|
|
2
|
+
// https://github.com/alphagov/govuk-frontend/blob/9f05cea739d14d4cbf18e79b17228045ca84b3ba/packages/govuk-frontend/src/govuk/settings/_assets.scss#L57-L82
|
|
3
|
+
|
|
4
|
+
@function app-font-url($filename) {
|
|
5
|
+
@return url("#{$filename}");
|
|
6
|
+
}
|
|
7
|
+
$govuk-font-url-function: "app-font-url";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Custom image URL function
|
|
2
|
+
// https://github.com/alphagov/govuk-frontend/blob/9f05cea739d14d4cbf18e79b17228045ca84b3ba/packages/govuk-frontend/src/govuk/settings/_assets.scss#L30-L55
|
|
3
|
+
|
|
4
|
+
@function app-image-url($filename) {
|
|
5
|
+
@return url("#{$filename}");
|
|
6
|
+
}
|
|
7
|
+
$govuk-image-url-function: "app-image-url";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$govuk-new-typography-scale: true;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@import "base";
|
|
2
|
+
|
|
3
|
+
@import "govuk/core/index";
|
|
4
|
+
@import "govuk/objects/index";
|
|
5
|
+
@import "govuk/utilities/index";
|
|
6
|
+
@import "govuk/overrides/index";
|
|
7
|
+
|
|
8
|
+
@import "govuk_publishing_components/components/helpers/brand-colours";
|
|
9
|
+
@import "govuk_publishing_components/components/helpers/contents-list-helper";
|
|
10
|
+
@import "govuk_publishing_components/lib/link";
|
|
11
|
+
@import "govuk_publishing_components/lib/print_support";
|
|
@@ -18,7 +18,7 @@ module GovukPublishingComponents
|
|
|
18
18
|
|
|
19
19
|
find_components = /(?<=govuk_publishing_components\/components\/)[a-zA-Z_-]+(?=['"])/
|
|
20
20
|
|
|
21
|
-
@find_all_stylesheets = /@import ["']{1}govuk_publishing_components\/
|
|
21
|
+
@find_all_stylesheets = /@import ["']{1}govuk_publishing_components\/all-components/ # if using the all stylesheets option
|
|
22
22
|
find_stylesheets = /(?<=@import ["']{1}govuk_publishing_components\/components\/)(?!print\/)+[a-zA-Z_-]+(?=['"])/
|
|
23
23
|
|
|
24
24
|
@find_all_javascripts = /\/\/ *= require govuk_publishing_components\/all_components/
|
|
@@ -22,7 +22,7 @@ module GovukPublishingComponents
|
|
|
22
22
|
# Currently the only small symbol used with big numbers are pluses so they are specifically targetted in the below code
|
|
23
23
|
def number_has_plus_suffix?
|
|
24
24
|
if @number.is_a? String
|
|
25
|
-
@number.
|
|
25
|
+
@number.end_with?("+")
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -28,15 +28,15 @@ module GovukPublishingComponents
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def has_image?
|
|
31
|
-
|
|
31
|
+
header_area_image.present?
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def image_url
|
|
35
|
-
|
|
35
|
+
header_area_image_url_from_sources || header_area_image&.dig("high_resolution_url") || header_area_image&.dig("url")
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def image_alt_text
|
|
39
|
-
|
|
39
|
+
header_area_image&.dig("alt_text")
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def image_placeholders
|
|
@@ -70,6 +70,26 @@ module GovukPublishingComponents
|
|
|
70
70
|
def withdrawn?
|
|
71
71
|
content_item["withdrawn_notice"].present?
|
|
72
72
|
end
|
|
73
|
+
|
|
74
|
+
private
|
|
75
|
+
|
|
76
|
+
def header_area_image_url_from_sources
|
|
77
|
+
return if header_area_image.blank?
|
|
78
|
+
|
|
79
|
+
header_area_image.dig("sources", "s960") || header_area_image.dig("sources", "s300")
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def header_area_image
|
|
83
|
+
get_image_in_priority_order || content_item.dig("details", "image")
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def get_image_in_priority_order
|
|
87
|
+
images = content_item.dig("details", "images")
|
|
88
|
+
|
|
89
|
+
return unless images.present? && images.is_a?(Array)
|
|
90
|
+
|
|
91
|
+
images.find { |i| i["type"] == "lead" } || images.find { |i| i["type"].present? }
|
|
92
|
+
end
|
|
73
93
|
end
|
|
74
94
|
end
|
|
75
95
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_publishing_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 65.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -540,9 +540,8 @@ files:
|
|
|
540
540
|
- app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-measurer.js
|
|
541
541
|
- app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js
|
|
542
542
|
- app/assets/stylesheets/component_guide/application.scss
|
|
543
|
-
- app/assets/stylesheets/govuk_publishing_components/
|
|
544
|
-
- app/assets/stylesheets/govuk_publishing_components/
|
|
545
|
-
- app/assets/stylesheets/govuk_publishing_components/component_support.scss
|
|
543
|
+
- app/assets/stylesheets/govuk_publishing_components/_base.scss
|
|
544
|
+
- app/assets/stylesheets/govuk_publishing_components/all-components.scss
|
|
546
545
|
- app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss
|
|
547
546
|
- app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss
|
|
548
547
|
- app/assets/stylesheets/govuk_publishing_components/components/_add-another.scss
|
|
@@ -653,15 +652,22 @@ files:
|
|
|
653
652
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
|
|
654
653
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
|
|
655
654
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss
|
|
655
|
+
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_colours.scss
|
|
656
656
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_contents-list-helper.scss
|
|
657
|
-
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss
|
|
658
|
-
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_link.scss
|
|
659
657
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
|
|
660
|
-
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss
|
|
661
658
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss
|
|
659
|
+
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_index.scss
|
|
662
660
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss
|
|
663
|
-
- app/assets/stylesheets/govuk_publishing_components/
|
|
661
|
+
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss
|
|
662
|
+
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_scale.scss
|
|
663
|
+
- app/assets/stylesheets/govuk_publishing_components/lib/_link.scss
|
|
664
664
|
- app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss
|
|
665
|
+
- app/assets/stylesheets/govuk_publishing_components/settings/_app-font-url.scss
|
|
666
|
+
- app/assets/stylesheets/govuk_publishing_components/settings/_app-image-url.scss
|
|
667
|
+
- app/assets/stylesheets/govuk_publishing_components/settings/_colours.scss
|
|
668
|
+
- app/assets/stylesheets/govuk_publishing_components/settings/_index.scss
|
|
669
|
+
- app/assets/stylesheets/govuk_publishing_components/settings/_typography.scss
|
|
670
|
+
- app/assets/stylesheets/govuk_publishing_components/specific-components.scss
|
|
665
671
|
- app/controllers/govuk_publishing_components/application_controller.rb
|
|
666
672
|
- app/controllers/govuk_publishing_components/applications_page_controller.rb
|
|
667
673
|
- app/controllers/govuk_publishing_components/audit_controller.rb
|
|
@@ -2118,7 +2124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
2118
2124
|
- !ruby/object:Gem::Version
|
|
2119
2125
|
version: '0'
|
|
2120
2126
|
requirements: []
|
|
2121
|
-
rubygems_version: 4.0.
|
|
2127
|
+
rubygems_version: 4.0.8
|
|
2122
2128
|
specification_version: 4
|
|
2123
2129
|
summary: A gem to document components in GOV.UK frontend applications
|
|
2124
2130
|
test_files: []
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// This flag stops the font from being included in this components's
|
|
2
|
-
// stylesheet - the font is being served by Static across all of GOV.UK, so is
|
|
3
|
-
// not needed here.
|
|
4
|
-
$govuk-include-default-font-face: false;
|
|
5
|
-
|
|
6
|
-
// Each component needs access to the variables, functions, and mixins from
|
|
7
|
-
// GOVUK Frontend.
|
|
8
|
-
@import "govuk_frontend_support";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// This file should be included in an application prior to specific components
|
|
2
|
-
// It provides supporting gem component helpers and mixins
|
|
3
|
-
// and everything else from govuk-frontend not included in govuk_frontend_support
|
|
4
|
-
@import "govuk/core/index";
|
|
5
|
-
@import "govuk/objects/index";
|
|
6
|
-
@import "govuk/utilities/index";
|
|
7
|
-
@import "govuk/overrides/index";
|
|
8
|
-
|
|
9
|
-
@import "govuk_publishing_components/components/helpers/brand-colours";
|
|
10
|
-
@import "govuk_publishing_components/components/helpers/link";
|
|
11
|
-
@import "govuk_publishing_components/components/mixins/margins";
|
|
12
|
-
@import "govuk_publishing_components/components/mixins/css3";
|
|
13
|
-
|
|
14
|
-
@import "govuk_publishing_components/lib/print_support";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Custom image URL function
|
|
2
|
-
// https://github.com/alphagov/govuk-frontend/blob/9f05cea739d14d4cbf18e79b17228045ca84b3ba/packages/govuk-frontend/src/govuk/settings/_assets.scss#L30-L55
|
|
3
|
-
|
|
4
|
-
@function app-image-url($filename) {
|
|
5
|
-
@return url("#{$filename}");
|
|
6
|
-
}
|
|
7
|
-
// Custom font URL function
|
|
8
|
-
// https://github.com/alphagov/govuk-frontend/blob/9f05cea739d14d4cbf18e79b17228045ca84b3ba/packages/govuk-frontend/src/govuk/settings/_assets.scss#L57-L82
|
|
9
|
-
|
|
10
|
-
@function app-font-url($filename) {
|
|
11
|
-
@return url("#{$filename}");
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
$govuk-image-url-function: "app-image-url";
|
|
15
|
-
$govuk-font-url-function: "app-font-url";
|
|
16
|
-
$govuk-new-typography-scale: true;
|
|
17
|
-
$govuk-new-organisation-colours: true;
|
/data/app/assets/stylesheets/govuk_publishing_components/{components/helpers → lib}/_link.scss
RENAMED
|
File without changes
|