katalyst-govuk-formbuilder 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/builds/katalyst/govuk/formbuilder.css +534 -453
- data/app/assets/builds/katalyst/govuk/formbuilder.js +1865 -1379
- data/app/assets/builds/katalyst/govuk/formbuilder.min.js +85 -1
- data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +5 -5
- data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_richtextarea.scss +1 -1
- data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +18 -18
- data/lib/katalyst/govuk/formbuilder/frontend.rb +2 -1
- data/lib/katalyst/govuk/formbuilder.rb +0 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/_base.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/_all.scss +8 -4
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/accordion/_index.scss +19 -45
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/back-link/_index.scss +18 -34
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/breadcrumbs/_index.scss +22 -35
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/button/_button.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/button/_index.scss +56 -91
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/character-count/_index.scss +3 -1
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/checkboxes/_index.scss +69 -91
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/cookie-banner/_index.scss +3 -2
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/date-input/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/details/_details.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/details/_index.scss +134 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/error-message/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/error-summary/_index.scss +5 -3
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +92 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/fieldset/_index.scss +18 -11
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/file-upload/_index.scss +3 -6
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/footer/_index.scss +16 -57
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/header/_header.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/header/_index.scss +55 -75
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/hint/_hint.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/hint/_index.scss +3 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/input/_index.scss +12 -35
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/input/_input.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/inset-text/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/label/_index.scss +12 -7
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/label/_label.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/notification-banner/_index.scss +8 -5
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/pagination/_index.scss +12 -18
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/panel/_index.scss +6 -8
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/panel/_panel.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/phase-banner/_index.scss +11 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/radios/_index.scss +38 -54
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/select/_index.scss +4 -11
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/select/_select.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/skip-link/_index.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/summary-list/_index.scss +20 -19
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/table/_index.scss +10 -16
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/table/_table.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tabs/_index.scss +13 -9
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tabs/_tabs.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/tag/_index.scss +94 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tag/_tag.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/task-list/_index.scss +77 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/textarea/_index.scss +3 -7
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/warning-text/_index.scss +7 -8
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_global-styles.scss +2 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_govuk-frontend-version.scss +3 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_links.scss +8 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_lists.scss +2 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_section-break.scss +2 -7
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_typography.scss +5 -4
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_clearfix.scss +3 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_colour.scss +12 -19
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_device-pixels.scss +4 -3
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_focused.scss +22 -6
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/helpers/_font-faces.scss +41 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_grid.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_links.scss +36 -74
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_media-queries.scss +3 -12
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_shape-arrow.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_spacing.scss +12 -10
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_typography.scss +12 -33
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_visually-hidden.scss +33 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_button-group.scss +7 -12
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_form-group.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_grid.scss +4 -2
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_main-wrapper.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_template.scss +22 -1
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_width-container.scss +2 -9
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_display.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_spacing.scss +3 -19
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_text-align.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_typography.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_width.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_all.scss +2 -3
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_assets.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_colours-applied.scss +9 -7
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_colours-organisations.scss +4 -2
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_colours-palette.scss +37 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_global-styles.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_links.scss +3 -20
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_measurements.scss +17 -5
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_media-queries.scss +4 -2
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_spacing.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_typography-font.scss +52 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_typography-responsive.scss +2 -39
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_warnings.scss +25 -5
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_all.scss +2 -2
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_exports.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_font-url.scss +3 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_image-url.scss +3 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_px-to-em.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_px-to-rem.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_clearfix.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_visually-hidden.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/vendor/_sass-mq.scss +3 -1
- metadata +130 -133
- data/lib/katalyst/govuk/formbuilder/version.rb +0 -9
- data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +0 -14
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_accordion.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_back-link.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_button.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_character-count.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_date-input.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_details.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_index.scss +0 -88
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_error-message.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +0 -81
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +0 -2
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +0 -41
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +0 -120
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +0 -100
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +0 -34
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +0 -32
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +0 -112
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +0 -50
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +0 -87
@@ -1,41 +0,0 @@
|
|
1
|
-
////
|
2
|
-
/// @group helpers
|
3
|
-
////
|
4
|
-
|
5
|
-
@import "../tools/exports";
|
6
|
-
|
7
|
-
/// Font Face - GDS Transport
|
8
|
-
///
|
9
|
-
/// Outputs the font-face declaration for GDS Transport at the root of the CSS document
|
10
|
-
/// the first time it is called.
|
11
|
-
///
|
12
|
-
/// @access private
|
13
|
-
|
14
|
-
@mixin _govuk-font-face-gds-transport {
|
15
|
-
@include _govuk-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
|
16
|
-
@include govuk-exports("govuk/helpers/font-faces") {
|
17
|
-
@at-root {
|
18
|
-
/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */ /* stylelint-disable-line scss/comment-no-loud */
|
19
|
-
@font-face {
|
20
|
-
font-family: "GDS Transport";
|
21
|
-
font-style: normal;
|
22
|
-
font-weight: normal;
|
23
|
-
src:
|
24
|
-
govuk-font-url("light-94a07e06a1-v2.woff2") format("woff2"),
|
25
|
-
govuk-font-url("light-f591b13f7d-v2.woff") format("woff");
|
26
|
-
font-display: fallback;
|
27
|
-
}
|
28
|
-
|
29
|
-
@font-face {
|
30
|
-
font-family: "GDS Transport";
|
31
|
-
font-style: normal;
|
32
|
-
font-weight: bold;
|
33
|
-
src:
|
34
|
-
govuk-font-url("bold-b542beb274-v2.woff2") format("woff2"),
|
35
|
-
govuk-font-url("bold-affa96571d-v2.woff") format("woff");
|
36
|
-
font-display: fallback;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
@@ -1,120 +0,0 @@
|
|
1
|
-
@import "compatibility";
|
2
|
-
|
3
|
-
// stylelint-disable value-list-max-empty-lines -- allow empty lines in lists
|
4
|
-
// in this file to allow grouping
|
5
|
-
|
6
|
-
////
|
7
|
-
/// @group settings/colours
|
8
|
-
////
|
9
|
-
|
10
|
-
/// Use 'legacy' colour palette
|
11
|
-
///
|
12
|
-
/// Whether or not to use the colour palette from GOV.UK Elements / Frontend
|
13
|
-
/// Toolkit, for teams that are migrating to GOV.UK Frontend and may be using
|
14
|
-
/// components from both places in a single application.
|
15
|
-
///
|
16
|
-
/// @type Boolean
|
17
|
-
/// @access public
|
18
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
19
|
-
/// suite of tools and settings
|
20
|
-
|
21
|
-
$govuk-use-legacy-palette: if(
|
22
|
-
(
|
23
|
-
$govuk-compatibility-govukfrontendtoolkit or
|
24
|
-
$govuk-compatibility-govuktemplate or
|
25
|
-
$govuk-compatibility-govukelements
|
26
|
-
),
|
27
|
-
true,
|
28
|
-
false
|
29
|
-
) !default;
|
30
|
-
|
31
|
-
// Only show the deprecation warning if user is setting $govuk-use-legacy-palette
|
32
|
-
// manually instead of automatically via compatibility variables
|
33
|
-
@if $govuk-use-legacy-palette == true and
|
34
|
-
$govuk-compatibility-govukfrontendtoolkit == false and
|
35
|
-
$govuk-compatibility-govuktemplate == false and
|
36
|
-
$govuk-compatibility-govukelements == false {
|
37
|
-
@include _warning(legacy-palette, "$govuk-use-legacy-palette is deprecated. " +
|
38
|
-
"Only the modern colour palette will be supported from v5.0.");
|
39
|
-
}
|
40
|
-
|
41
|
-
/// Modern colour palette
|
42
|
-
///
|
43
|
-
/// This exists only because you cannot easily set a !default variable
|
44
|
-
/// conditionally (thanks to the way scope works in Sass) so we set
|
45
|
-
/// `$govuk-colour-palette` using the `if` function.
|
46
|
-
///
|
47
|
-
/// @access private
|
48
|
-
|
49
|
-
$_govuk-colour-palette-modern: (
|
50
|
-
"red": #d4351c,
|
51
|
-
"yellow": #ffdd00,
|
52
|
-
"green": #00703c,
|
53
|
-
"blue": #1d70b8,
|
54
|
-
"dark-blue": #003078,
|
55
|
-
"light-blue": #5694ca,
|
56
|
-
"purple": #4c2c92,
|
57
|
-
|
58
|
-
"black": #0b0c0c,
|
59
|
-
"dark-grey": #505a5f,
|
60
|
-
"mid-grey": #b1b4b6,
|
61
|
-
"light-grey": #f3f2f1,
|
62
|
-
"white": #ffffff,
|
63
|
-
|
64
|
-
"light-purple": #6f72af,
|
65
|
-
"bright-purple": #912b88,
|
66
|
-
"pink": #d53880,
|
67
|
-
"light-pink": #f499be,
|
68
|
-
"orange": #f47738,
|
69
|
-
"brown": #b58840,
|
70
|
-
"light-green": #85994b,
|
71
|
-
"turquoise": #28a197
|
72
|
-
);
|
73
|
-
|
74
|
-
/// Legacy colour palette
|
75
|
-
///
|
76
|
-
/// This exists only because you cannot easily set a !default variable
|
77
|
-
/// conditionally (thanks to the way scope works in Sass) so we set
|
78
|
-
/// `$govuk-colour-palette` using the `if` function.
|
79
|
-
///
|
80
|
-
/// @access private
|
81
|
-
|
82
|
-
$_govuk-colour-palette-legacy: (
|
83
|
-
"purple": #2e358b,
|
84
|
-
"light-purple": #6f72af,
|
85
|
-
"bright-purple": #912b88,
|
86
|
-
"pink": #d53880,
|
87
|
-
"light-pink": #f499be,
|
88
|
-
"red": #b10e1e,
|
89
|
-
"bright-red": #df3034,
|
90
|
-
"orange": #f47738,
|
91
|
-
"brown": #b58840,
|
92
|
-
"yellow": #ffbf47,
|
93
|
-
"light-green": #85994b,
|
94
|
-
"green": #006435,
|
95
|
-
"turquoise": #28a197,
|
96
|
-
"light-blue": #2b8cc4,
|
97
|
-
"blue": #005ea5,
|
98
|
-
|
99
|
-
"black": #0b0c0c,
|
100
|
-
"grey-1": #6f777b,
|
101
|
-
"grey-2": #bfc1c3,
|
102
|
-
"grey-3": #dee0e2,
|
103
|
-
"grey-4": #f8f8f8,
|
104
|
-
"white": #ffffff
|
105
|
-
);
|
106
|
-
|
107
|
-
/// Colour palette
|
108
|
-
///
|
109
|
-
/// @type Map
|
110
|
-
///
|
111
|
-
/// @prop $colour - Representation for the given $colour, where $colour is the
|
112
|
-
/// friendly name for the colour (e.g. "red": #ff0000);
|
113
|
-
///
|
114
|
-
/// @access public
|
115
|
-
|
116
|
-
$govuk-colours: if(
|
117
|
-
$govuk-use-legacy-palette,
|
118
|
-
$_govuk-colour-palette-legacy,
|
119
|
-
$_govuk-colour-palette-modern
|
120
|
-
) !default;
|
@@ -1,100 +0,0 @@
|
|
1
|
-
////
|
2
|
-
/// 'Compatibility Mode'
|
3
|
-
///
|
4
|
-
/// Enabling these flags improves compatibility if you are using GOV.UK Frontend
|
5
|
-
/// in an application that also uses govuk_elements, govuk_frontend_toolkit or
|
6
|
-
/// govuk_template (the 'legacy repos').
|
7
|
-
///
|
8
|
-
/// Enabling any of these settings will, by default:
|
9
|
-
///
|
10
|
-
/// - switch GOV.UK Frontend to using the same colour palette as the legacy
|
11
|
-
/// repos, by setting `$govuk-use-legacy-palette` to true.
|
12
|
-
///
|
13
|
-
/// - prevent GOV.UK Frontend from using rem for font sizing, by setting
|
14
|
-
/// `$govuk-typography-use-rem` to false.
|
15
|
-
///
|
16
|
-
/// @group settings/compatibility
|
17
|
-
////
|
18
|
-
|
19
|
-
/// Compatibility Mode: alphagov/govuk_frontend_toolkit
|
20
|
-
///
|
21
|
-
/// Set this to true if you are also including alphagov/govuk_frontend_toolkit
|
22
|
-
/// in your application.
|
23
|
-
///
|
24
|
-
/// @type Boolean
|
25
|
-
/// @access public
|
26
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
27
|
-
/// suite of tools and settings
|
28
|
-
|
29
|
-
$govuk-compatibility-govukfrontendtoolkit: false !default;
|
30
|
-
|
31
|
-
@if $govuk-compatibility-govukfrontendtoolkit == true {
|
32
|
-
@include _warning("compatibility-mode", "$govuk-compatibility-govukfrontendtoolkit " +
|
33
|
-
"is deprecated. From version 5.0, GOV.UK Frontend will remove compatibility " +
|
34
|
-
"with the legacy library govuk_frontend_toolkit.");
|
35
|
-
}
|
36
|
-
|
37
|
-
/// Compatibility Mode: alphagov/govuk_template
|
38
|
-
///
|
39
|
-
/// Enabling this will:
|
40
|
-
///
|
41
|
-
/// - prevent GOV.UK Frontend from including the New Transport typeface, as
|
42
|
-
/// it'll use the version of New Transport included with GOV.UK Template.
|
43
|
-
///
|
44
|
-
/// - alter some of the CSS outputted by GOV.UK Frontend to 'counter'
|
45
|
-
/// specific CSS rules in GOV.UK Template.
|
46
|
-
///
|
47
|
-
/// Set this to true if you are also including alphagov/govuk_template in your
|
48
|
-
/// application.
|
49
|
-
///
|
50
|
-
/// @type Boolean
|
51
|
-
/// @access public
|
52
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
53
|
-
/// suite of tools and settings
|
54
|
-
|
55
|
-
$govuk-compatibility-govuktemplate: false !default;
|
56
|
-
|
57
|
-
@if $govuk-compatibility-govuktemplate == true {
|
58
|
-
@include _warning("compatibility-mode", "$govuk-compatibility-govuktemplate " +
|
59
|
-
"is deprecated. From version 5.0, GOV.UK Frontend will remove " +
|
60
|
-
"compatibility with the legacy library govuk_template.");
|
61
|
-
}
|
62
|
-
|
63
|
-
/// Compatibility Mode: alphagov/govuk_elements
|
64
|
-
///
|
65
|
-
/// Enabling this will:
|
66
|
-
///
|
67
|
-
/// - alter some of the CSS outputted by GOV.UK Frontend to 'counter'
|
68
|
-
/// specific CSS rules in GOV.UK Elements.
|
69
|
-
///
|
70
|
-
/// Set this to true if you are also including alphagov/govuk_elements in your
|
71
|
-
/// application.
|
72
|
-
///
|
73
|
-
/// @type Boolean
|
74
|
-
/// @access public
|
75
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
76
|
-
/// suite of tools and settings
|
77
|
-
|
78
|
-
$govuk-compatibility-govukelements: false !default;
|
79
|
-
|
80
|
-
@if $govuk-compatibility-govukelements == true {
|
81
|
-
@include _warning("compatibility-mode", "$govuk-compatibility-govukelements " +
|
82
|
-
"is deprecated. From version 5.0, GOV.UK Frontend will remove compatibility " +
|
83
|
-
"with the legacy library govuk_elements.");
|
84
|
-
}
|
85
|
-
|
86
|
-
/// Compatibility Product Map
|
87
|
-
///
|
88
|
-
/// Maps product names to their settings that we can use to lookup states from
|
89
|
-
/// within the `@govuk-compatibility` mixin.
|
90
|
-
///
|
91
|
-
/// @type Map
|
92
|
-
/// @access private
|
93
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
94
|
-
/// suite of tools and settings
|
95
|
-
|
96
|
-
$_govuk-compatibility: (
|
97
|
-
govuk_frontend_toolkit: $govuk-compatibility-govukfrontendtoolkit,
|
98
|
-
govuk_template: $govuk-compatibility-govuktemplate,
|
99
|
-
govuk_elements: $govuk-compatibility-govukelements,
|
100
|
-
);
|
@@ -1,34 +0,0 @@
|
|
1
|
-
////
|
2
|
-
/// @group settings/internet-explorer-8
|
3
|
-
////
|
4
|
-
|
5
|
-
/// Whether the stylesheet being built is targeting Internet Explorer 8.
|
6
|
-
///
|
7
|
-
/// @type Boolean
|
8
|
-
/// @access public
|
9
|
-
/// @deprecated Will be removed in v5.0
|
10
|
-
|
11
|
-
$govuk-is-ie8: false !default;
|
12
|
-
|
13
|
-
@if $govuk-is-ie8 == true {
|
14
|
-
@include _warning(
|
15
|
-
ie8,
|
16
|
-
"The $govuk-is-ie8 setting is deprecated and will be removed in v5.0."
|
17
|
-
);
|
18
|
-
}
|
19
|
-
|
20
|
-
/// The name of the breakpoint to use as the target when rasterizing media
|
21
|
-
/// queries
|
22
|
-
///
|
23
|
-
/// @type String
|
24
|
-
/// @access public
|
25
|
-
/// @deprecated Will be removed in v5.0
|
26
|
-
|
27
|
-
$govuk-ie8-breakpoint: desktop !default;
|
28
|
-
|
29
|
-
@if not $govuk-ie8-breakpoint == desktop {
|
30
|
-
@include _warning(
|
31
|
-
ie8,
|
32
|
-
"The $govuk-ie8-breakpoint setting is deprecated and will be removed in v5.0."
|
33
|
-
);
|
34
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
////
|
2
|
-
/// @group settings/typography
|
3
|
-
////
|
4
|
-
|
5
|
-
/// List of font families to use if using GDS Transport (the default font
|
6
|
-
/// 'stack' for GOV.UK)
|
7
|
-
///
|
8
|
-
/// @type List
|
9
|
-
/// @access public
|
10
|
-
|
11
|
-
$govuk-font-family-gds-transport: "GDS Transport", arial, sans-serif;
|
12
|
-
|
13
|
-
/// List of font families to use if using NTA (old font 'stack' for
|
14
|
-
/// GOV.UK)
|
15
|
-
///
|
16
|
-
/// @type List
|
17
|
-
/// @access public
|
18
|
-
/// @deprecated To be removed once support for compatibility mode is dropped
|
19
|
-
|
20
|
-
$govuk-font-family-nta: "nta", arial, sans-serif;
|
21
|
-
|
22
|
-
/// List of font families to use if using the 'tabular numbers' subset of NTA
|
23
|
-
/// (the default font 'stack' for GOV.UK)
|
24
|
-
///
|
25
|
-
/// Because ntatabularnumbers only includes the digits 0-10, all other glyphs
|
26
|
-
/// will 'fall-through' the stack to NTA.
|
27
|
-
///
|
28
|
-
/// @type List
|
29
|
-
/// @access public
|
30
|
-
/// @deprecated To be removed once support for compatibility mode is dropped
|
31
|
-
|
32
|
-
$govuk-font-family-nta-tabular: "ntatabularnumbers", $govuk-font-family-nta;
|
@@ -1,112 +0,0 @@
|
|
1
|
-
@import "compatibility";
|
2
|
-
@import "typography-font-families";
|
3
|
-
|
4
|
-
////
|
5
|
-
/// @group settings/typography
|
6
|
-
////
|
7
|
-
|
8
|
-
/// Use 'legacy' fonts
|
9
|
-
///
|
10
|
-
/// Whether or not to use v1 nta font from GOV.UK Elements / Frontend
|
11
|
-
/// Toolkit, for teams that are migrating to GOV.UK Frontend and may be using
|
12
|
-
/// components from both places in a single application.
|
13
|
-
///
|
14
|
-
/// @type Boolean
|
15
|
-
/// @access public
|
16
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
17
|
-
/// suite of tools and settings
|
18
|
-
|
19
|
-
$govuk-use-legacy-font: if(
|
20
|
-
(
|
21
|
-
$govuk-compatibility-govukfrontendtoolkit or
|
22
|
-
$govuk-compatibility-govuktemplate or
|
23
|
-
$govuk-compatibility-govukelements
|
24
|
-
),
|
25
|
-
true,
|
26
|
-
false
|
27
|
-
) !default;
|
28
|
-
|
29
|
-
// Only show the deprecation warning if user is setting $govuk-use-legacy-font
|
30
|
-
// manually instead of automatically via compatibility variables
|
31
|
-
@if $govuk-use-legacy-font == true and
|
32
|
-
$govuk-compatibility-govukfrontendtoolkit == false and
|
33
|
-
$govuk-compatibility-govuktemplate == false and
|
34
|
-
$govuk-compatibility-govukelements == false {
|
35
|
-
@include _warning(legacy-font, "$govuk-use-legacy-font is deprecated. " +
|
36
|
-
"From version 5.0, GOV.UK Frontend will only support the included version " +
|
37
|
-
"of GDS Transport.");
|
38
|
-
}
|
39
|
-
|
40
|
-
// =========================================================
|
41
|
-
// Font families
|
42
|
-
// =========================================================
|
43
|
-
|
44
|
-
/// Font families to use for all typography on screen media
|
45
|
-
///
|
46
|
-
/// @type List
|
47
|
-
/// @access public
|
48
|
-
|
49
|
-
$govuk-font-family: if(
|
50
|
-
$govuk-use-legacy-font,
|
51
|
-
$govuk-font-family-nta,
|
52
|
-
$govuk-font-family-gds-transport
|
53
|
-
) !default;
|
54
|
-
|
55
|
-
/// Font families to use when displaying tabular numbers
|
56
|
-
///
|
57
|
-
/// @type List
|
58
|
-
/// @access public
|
59
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
60
|
-
/// suite of tools and settings
|
61
|
-
|
62
|
-
$govuk-font-family-tabular: if(
|
63
|
-
$govuk-use-legacy-font,
|
64
|
-
$govuk-font-family-nta-tabular,
|
65
|
-
false
|
66
|
-
) !default;
|
67
|
-
|
68
|
-
// Only show the deprecation warning if user is setting $govuk-font-family-tabular
|
69
|
-
// manually instead of automatically via $govuk-use-legacy-font
|
70
|
-
@if $govuk-font-family-tabular != false and $govuk-use-legacy-font == false {
|
71
|
-
@include _warning(tabular-font-face, "$govuk-font-family-tabular is deprecated. " +
|
72
|
-
"From version 5.0, GOV.UK Frontend will not support using a separate " +
|
73
|
-
"font-face for tabular numbers.");
|
74
|
-
}
|
75
|
-
|
76
|
-
/// Font families to use for print media
|
77
|
-
///
|
78
|
-
/// We recommend that you use system fonts when printing. This will avoid issues
|
79
|
-
/// with some printer drivers and operating systems.
|
80
|
-
///
|
81
|
-
/// @type List
|
82
|
-
/// @access public
|
83
|
-
|
84
|
-
$govuk-font-family-print: sans-serif !default;
|
85
|
-
|
86
|
-
/// Include the default @font-face declarations
|
87
|
-
///
|
88
|
-
/// If you have set $govuk-font-family to something other than
|
89
|
-
/// `$govuk-font-family-gds-transport` this option is disabled by default.
|
90
|
-
///
|
91
|
-
/// @type Boolean
|
92
|
-
/// @access public
|
93
|
-
|
94
|
-
$govuk-include-default-font-face: (
|
95
|
-
$govuk-font-family == $govuk-font-family-gds-transport
|
96
|
-
) !default;
|
97
|
-
|
98
|
-
// =========================================================
|
99
|
-
// Font weights
|
100
|
-
// =========================================================
|
101
|
-
|
102
|
-
/// Font weight for regular typography
|
103
|
-
///
|
104
|
-
/// @type Number
|
105
|
-
/// @access public
|
106
|
-
$govuk-font-weight-regular: 400 !default;
|
107
|
-
|
108
|
-
/// Font weight for bold typography
|
109
|
-
///
|
110
|
-
/// @type Number
|
111
|
-
/// @access public
|
112
|
-
$govuk-font-weight-bold: 700 !default;
|
@@ -1,50 +0,0 @@
|
|
1
|
-
////
|
2
|
-
/// @group tools/compatibility-mode
|
3
|
-
////
|
4
|
-
|
5
|
-
/// Temporary private version of govuk-compatibility to avoid deprecation warnings
|
6
|
-
///
|
7
|
-
/// @access private
|
8
|
-
|
9
|
-
@mixin _govuk-compatibility($product) {
|
10
|
-
@if map-has-key($_govuk-compatibility, $product) {
|
11
|
-
@if map-get($_govuk-compatibility, $product) == true {
|
12
|
-
@content;
|
13
|
-
}
|
14
|
-
} @else {
|
15
|
-
@error "Non existent product '#{$product}'";
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
/// Conditional Compatibility Mixin
|
20
|
-
///
|
21
|
-
/// Selectively output a block (available to the mixin as @content) if a given
|
22
|
-
/// $product is also identified as being used in the project.
|
23
|
-
///
|
24
|
-
/// This can then be used to include styles that are only needed to override
|
25
|
-
/// styles provided by those other products (e.g. where govuk_template has a
|
26
|
-
/// very specific link selector that otherwise affects buttons).
|
27
|
-
///
|
28
|
-
/// @example scss
|
29
|
-
/// // Override .my-class if GOV.UK Template is also being used
|
30
|
-
/// @include govuk-compatibility(govuk_template) {
|
31
|
-
/// .my-class {
|
32
|
-
/// color: inherit;
|
33
|
-
/// }
|
34
|
-
/// }
|
35
|
-
///
|
36
|
-
/// @param {String} $product - Name of product that we are 'defending' against.
|
37
|
-
/// @content Passed content is outputted only if Frontend is being used with
|
38
|
-
/// this product
|
39
|
-
/// @throw Errors if product name is not recognised
|
40
|
-
/// @access public
|
41
|
-
/// @deprecated Will be removed in v5.0 with the rest of the compatibility mode
|
42
|
-
/// suite of tools and settings
|
43
|
-
|
44
|
-
@mixin govuk-compatibility($product) {
|
45
|
-
@include _warning(compatibility-helper, "govuk-compatibility is deprecated. " +
|
46
|
-
"From version 5.0, GOV.UK Frontend will not support compatibility mode.");
|
47
|
-
@include _govuk-compatibility($product) {
|
48
|
-
@content;
|
49
|
-
}
|
50
|
-
}
|
@@ -1,87 +0,0 @@
|
|
1
|
-
@import "../settings/warnings";
|
2
|
-
|
3
|
-
////
|
4
|
-
/// @group tools/internet-explorer-8
|
5
|
-
////
|
6
|
-
|
7
|
-
/// A private version of the govuk-if-ie8 mixin to avoid deprecation
|
8
|
-
/// warnings where we use it internally
|
9
|
-
///
|
10
|
-
/// @access private
|
11
|
-
|
12
|
-
@mixin _govuk-if-ie8 {
|
13
|
-
@if $govuk-is-ie8 {
|
14
|
-
@content;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
/// Conditionally include rules only for IE8
|
19
|
-
///
|
20
|
-
/// @content Passed content is only outputted if we're compiling a stylesheet
|
21
|
-
/// that targets IE8 (if `$govuk-is-ie8` is true)
|
22
|
-
///
|
23
|
-
/// @example scss - Usage
|
24
|
-
///
|
25
|
-
/// .foo {
|
26
|
-
/// min-width: 100px;
|
27
|
-
/// // Specify width for IE8 only
|
28
|
-
/// @include govuk-if-ie8 {
|
29
|
-
/// width: 100px;
|
30
|
-
/// }
|
31
|
-
/// }
|
32
|
-
///
|
33
|
-
/// @access public
|
34
|
-
/// @deprecated Will be removed in v5.0
|
35
|
-
|
36
|
-
@mixin govuk-if-ie8 {
|
37
|
-
@include _warning(
|
38
|
-
ie8,
|
39
|
-
"The govuk-if-ie8 mixin is deprecated and will be removed in v5.0."
|
40
|
-
);
|
41
|
-
|
42
|
-
@include _govuk-if-ie8 {
|
43
|
-
@content;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
/// A private version of the govuk-not-ie8 mixin to avoid deprecation
|
48
|
-
/// warnings where we use it internally
|
49
|
-
///
|
50
|
-
/// @access private
|
51
|
-
|
52
|
-
@mixin _govuk-not-ie8 {
|
53
|
-
@if not $govuk-is-ie8 {
|
54
|
-
@content;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
/// Conditionally exclude rules for IE8
|
59
|
-
///
|
60
|
-
/// @content Passed content is only outputted if we're not compiling a
|
61
|
-
/// stylesheet that targets IE8 (if `$govuk-is-ie8` is false)
|
62
|
-
///
|
63
|
-
/// @example scss - Usage
|
64
|
-
///
|
65
|
-
/// .foo {
|
66
|
-
/// font-weight: bold;
|
67
|
-
///
|
68
|
-
/// // Enhance foo only for modern browsers (not IE8)
|
69
|
-
/// @include govuk-not-ie8 {
|
70
|
-
/// font-family: "Comic Sans MS", "Curlz MT" cursive, sans-serif;
|
71
|
-
/// color: #FF69B4;
|
72
|
-
/// }
|
73
|
-
/// }
|
74
|
-
///
|
75
|
-
/// @access public
|
76
|
-
/// @deprecated Will be removed in v5.0
|
77
|
-
|
78
|
-
@mixin govuk-not-ie8 {
|
79
|
-
@include _warning(
|
80
|
-
ie8,
|
81
|
-
"The govuk-not-ie8 mixin is deprecated and will be removed in v5.0."
|
82
|
-
);
|
83
|
-
|
84
|
-
@include _govuk-not-ie8 {
|
85
|
-
@content;
|
86
|
-
}
|
87
|
-
}
|