katalyst-govuk-formbuilder 1.3.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/app/assets/builds/katalyst/govuk/formbuilder.css +58 -5
  4. data/app/assets/builds/katalyst/govuk/formbuilder.js +98 -64
  5. data/app/assets/builds/katalyst/govuk/formbuilder.min.js +1 -1
  6. data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +7 -6
  7. data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +1 -1
  8. data/lib/katalyst/govuk/formbuilder/engine.rb +1 -0
  9. data/lib/katalyst/govuk/formbuilder/version.rb +1 -1
  10. data/vendor/assets/stylesheets/govuk-frontend/govuk/_base.scss +3 -0
  11. data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +14 -0
  12. data/vendor/assets/stylesheets/govuk-frontend/govuk/all.scss +9 -0
  13. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/_all.scss +34 -0
  14. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -0
  15. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_index.scss +392 -0
  16. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -0
  17. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_index.scss +99 -0
  18. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -0
  19. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_index.scss +147 -0
  20. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_button.scss +2 -0
  21. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_index.scss +297 -0
  22. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -0
  23. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_index.scss +34 -0
  24. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -0
  25. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_index.scss +335 -0
  26. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
  27. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_index.scss +49 -0
  28. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -0
  29. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
  30. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_details.scss +2 -0
  31. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_index.scss +88 -0
  32. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -0
  33. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_index.scss +12 -0
  34. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -0
  35. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_index.scss +43 -0
  36. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -0
  37. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
  38. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -0
  39. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_index.scss +55 -0
  40. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +2 -0
  41. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_index.scss +193 -0
  42. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +2 -0
  43. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_index.scss +349 -0
  44. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_hint.scss +2 -0
  45. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_index.scss +42 -0
  46. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_index.scss +193 -0
  47. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_input.scss +2 -0
  48. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
  49. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -0
  50. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_index.scss +41 -0
  51. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_label.scss +2 -0
  52. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
  53. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
  54. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_index.scss +247 -0
  55. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +2 -0
  56. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_index.scss +56 -0
  57. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_panel.scss +2 -0
  58. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
  59. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -0
  60. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_index.scss +349 -0
  61. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +2 -0
  62. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_index.scss +66 -0
  63. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +2 -0
  64. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_index.scss +47 -0
  65. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -0
  66. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_index.scss +276 -0
  67. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -0
  68. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_index.scss +71 -0
  69. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_table.scss +2 -0
  70. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_index.scss +130 -0
  71. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -0
  72. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +81 -0
  73. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_tag.scss +2 -0
  74. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_index.scss +54 -0
  75. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -0
  76. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_index.scss +66 -0
  77. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -0
  78. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_all.scss +6 -0
  79. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_global-styles.scss +19 -0
  80. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
  81. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_links.scss +35 -0
  82. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_lists.scss +66 -0
  83. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_section-break.scss +56 -0
  84. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_typography.scss +186 -0
  85. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_all.scss +12 -0
  86. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_clearfix.scss +15 -0
  87. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_colour.scss +98 -0
  88. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_device-pixels.scss +37 -0
  89. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_focused.scss +33 -0
  90. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
  91. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_grid.scss +61 -0
  92. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_links.scss +429 -0
  93. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_media-queries.scss +91 -0
  94. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_shape-arrow.scss +80 -0
  95. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_spacing.scss +171 -0
  96. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_typography.scss +214 -0
  97. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_visually-hidden.scss +84 -0
  98. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_all.scss +6 -0
  99. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_button-group.scss +85 -0
  100. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_form-group.scss +23 -0
  101. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_grid.scss +24 -0
  102. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_main-wrapper.scss +53 -0
  103. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_template.scss +32 -0
  104. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_width-container.scss +84 -0
  105. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_all.scss +5 -0
  106. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_display.scss +24 -0
  107. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_spacing.scss +102 -0
  108. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_text-align.scss +14 -0
  109. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_typography.scss +21 -0
  110. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_width.scss +46 -0
  111. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_all.scss +24 -0
  112. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_assets.scss +82 -0
  113. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-applied.scss +155 -0
  114. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-organisations.scss +146 -0
  115. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +120 -0
  116. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +100 -0
  117. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_global-styles.scss +13 -0
  118. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +34 -0
  119. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_links.scss +66 -0
  120. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_measurements.scss +95 -0
  121. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_media-queries.scss +23 -0
  122. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_spacing.scss +76 -0
  123. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +32 -0
  124. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +112 -0
  125. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-responsive.scss +195 -0
  126. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_warnings.scss +53 -0
  127. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_all.scss +7 -0
  128. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +50 -0
  129. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_exports.scss +33 -0
  130. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_font-url.scss +25 -0
  131. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +87 -0
  132. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_image-url.scss +25 -0
  133. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-em.scss +20 -0
  134. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-rem.scss +20 -0
  135. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_all.scss +2 -0
  136. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_clearfix.scss +5 -0
  137. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_visually-hidden.scss +9 -0
  138. data/vendor/assets/stylesheets/govuk-frontend/govuk/vendor/_sass-mq.scss +347 -0
  139. metadata +132 -4
  140. data/app/assets/builds/katalyst/govuk/formbuilder.min.css +0 -1
@@ -0,0 +1,32 @@
1
+ @import "../base";
2
+
3
+ @include govuk-exports("govuk/objects/template") {
4
+
5
+ // Applied to the <html> element
6
+ .govuk-template {
7
+ // Set the overall page background colour to the same colour as used by the
8
+ // footer to give the illusion of a long footer.
9
+ background-color: $govuk-canvas-background-colour;
10
+
11
+ // Prevent automatic text sizing, as we already cater for small devices and
12
+ // would like the browser to stay on 100% text zoom by default.
13
+ -webkit-text-size-adjust: 100%;
14
+ -moz-text-size-adjust: 100%;
15
+ text-size-adjust: 100%;
16
+
17
+ // Force the scrollbar to always display in IE, to prevent horizontal page
18
+ // jumps as content height changes (e.g. autocomplete results open).
19
+ @include govuk-media-query($media-type: screen) {
20
+ overflow-y: scroll;
21
+ }
22
+ }
23
+
24
+ // Applied to the <body> element
25
+ .govuk-template__body {
26
+ // The default margins set by user-agents are not required since we have our
27
+ // own containers.
28
+ margin: 0;
29
+ // Set the overall body of the page back to the typical background colour.
30
+ background-color: $govuk-body-background-colour;
31
+ }
32
+ }
@@ -0,0 +1,84 @@
1
+ @import "../base";
2
+
3
+ ////
4
+ /// @group objects/layout
5
+ ////
6
+
7
+ /// Width container mixin
8
+ ///
9
+ /// Used to create page width and custom width container classes.
10
+ ///
11
+ /// @param {String} $width [$govuk-page-width] - Width in pixels
12
+ ///
13
+ /// @example scss - Creating a 1200px wide container class
14
+ /// .app-width-container--wide {
15
+ /// @include govuk-width-container(1200px);
16
+ /// }
17
+ ///
18
+ /// @access public
19
+
20
+ @mixin govuk-width-container($width: $govuk-page-width) {
21
+
22
+ // By default, limit the width of the container to the page width
23
+ max-width: $width;
24
+
25
+ // On mobile, add half width gutters
26
+ margin-right: $govuk-gutter-half;
27
+ margin-left: $govuk-gutter-half;
28
+
29
+ // Respect 'display cutout' safe area (avoids notches and rounded corners)
30
+ @supports (margin: unquote("max(calc(0px))")) {
31
+ $gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
32
+ $gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
33
+
34
+ // Use max() to pick largest margin, default or with safe area
35
+ // Escaped due to Sass max() vs. CSS native max()
36
+ margin-right: unquote("max(#{$govuk-gutter-half}, #{$gutter-safe-area-right})");
37
+ margin-left: unquote("max(#{$govuk-gutter-half}, #{$gutter-safe-area-left})");
38
+ }
39
+
40
+ // On tablet, add full width gutters
41
+ @include govuk-media-query($from: tablet) {
42
+ margin-right: $govuk-gutter;
43
+ margin-left: $govuk-gutter;
44
+
45
+ // Respect 'display cutout' safe area (avoids notches and rounded corners)
46
+ @supports (margin: unquote("max(calc(0px))")) {
47
+ $gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
48
+ $gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
49
+
50
+ // Use max() to pick largest margin, default or with safe area
51
+ // Escaped due to Sass max() vs. CSS native max()
52
+ margin-right: unquote("max(#{$govuk-gutter}, #{$gutter-safe-area-right})");
53
+ margin-left: unquote("max(#{$govuk-gutter}, #{$gutter-safe-area-left})");
54
+ }
55
+ }
56
+
57
+ // As soon as the viewport is greater than the width of the page plus the
58
+ // gutters, just centre the content instead of adding gutters.
59
+ @include govuk-media-query($and: "(min-width: #{($width + $govuk-gutter * 2)})") {
60
+ margin-right: auto;
61
+ margin-left: auto;
62
+
63
+ // Since a safe area may have previously been set above,
64
+ // we need to duplicate this margin that centers the page.
65
+ @supports (margin: unquote("max(calc(0px))")) {
66
+ margin-right: auto;
67
+ margin-left: auto;
68
+ }
69
+ }
70
+
71
+ @include _govuk-if-ie8 {
72
+ width: $width;
73
+ // Since media queries are not supported in IE8,
74
+ // we need to duplicate this margin that centers the page.
75
+ margin-right: auto;
76
+ margin-left: auto;
77
+ }
78
+ }
79
+
80
+ @include govuk-exports("govuk/objects/width-container") {
81
+ .govuk-width-container {
82
+ @include govuk-width-container;
83
+ }
84
+ }
@@ -0,0 +1,5 @@
1
+ @import "display";
2
+ @import "spacing";
3
+ @import "text-align";
4
+ @import "typography";
5
+ @import "width";
@@ -0,0 +1,24 @@
1
+ // stylelint-disable declaration-no-important
2
+ @include govuk-exports("govuk/overrides/display") {
3
+ .govuk-\!-display-inline {
4
+ display: inline !important;
5
+ }
6
+
7
+ .govuk-\!-display-inline-block {
8
+ display: inline-block !important;
9
+ }
10
+
11
+ .govuk-\!-display-block {
12
+ display: block !important;
13
+ }
14
+
15
+ .govuk-\!-display-none {
16
+ display: none !important;
17
+ }
18
+
19
+ @include govuk-media-query($media-type: print) {
20
+ .govuk-\!-display-none-print {
21
+ display: none !important;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,102 @@
1
+ ////
2
+ /// @group overrides
3
+ ////
4
+
5
+ // stylelint-disable declaration-no-important
6
+
7
+ /// Directions for spacing
8
+ ///
9
+ /// @type Map
10
+ /// @access private
11
+
12
+ $_spacing-directions: (
13
+ "top",
14
+ "right",
15
+ "bottom",
16
+ "left"
17
+ ) !default;
18
+
19
+ /// Generate responsive spacing override classes
20
+ ///
21
+ /// Generate spacing override classes for the given property (e.g. margin)
22
+ /// for each point in the responsive spacing scale.
23
+ ///
24
+ /// @param {String} $property - Property to add spacing to (e.g. 'margin')
25
+ ///
26
+ /// @example css
27
+ /// .govuk-\!-margin-4 {
28
+ /// margin: 15px !important;
29
+ /// }
30
+ ///
31
+ /// @media (min-width: 40.0625em) {
32
+ /// .govuk-\!-margin-4 {
33
+ /// margin: 20px !important;
34
+ /// }
35
+ /// }
36
+ ///
37
+ /// @access private
38
+
39
+ @mixin _govuk-generate-responsive-spacing-overrides($property) {
40
+ // For each point in the spacing scale (defined in settings), create an
41
+ // override that affects all directions...
42
+ @each $scale-point, $scale-map in $govuk-spacing-responsive-scale {
43
+
44
+ .govuk-\!-#{$property}-#{$scale-point} {
45
+
46
+ @include _govuk-responsive-spacing($scale-point, $property, "all", true);
47
+ }
48
+
49
+ // ... and then an override for each individual direction
50
+ @each $direction in $_spacing-directions {
51
+
52
+ .govuk-\!-#{$property}-#{$direction}-#{$scale-point} {
53
+ @include _govuk-responsive-spacing($scale-point, $property, $direction, true);
54
+ }
55
+ }
56
+ }
57
+ }
58
+
59
+ /// Generate static spacing override classes
60
+ ///
61
+ /// Generate spacing override classes for the given property (e.g. margin)
62
+ /// for each point in the non-responsive spacing scale.
63
+ ///
64
+ /// The classes in the format govuk-#{$property}-static-#{$spacing-point}
65
+ /// and govuk-\!-#{$property}-#{$direction}-static-#{$spacing-point} are deprecated.
66
+ /// For example: govuk-!-margin-static-2 or govuk-!-margin-top-static-2
67
+ ///
68
+ /// Use classes in the format .govuk-\!-static-#{$property}-#{$spacing-point}
69
+ /// and .govuk-\!-static-#{$property}-#{$direction}-#{$spacing-point} instead.
70
+ /// For example: govuk-!-static-margin-2 or govuk-!-static-margin-top-2
71
+ ///
72
+ /// @param {String} $property - Property to add spacing to (e.g. 'margin')
73
+ ///
74
+ /// @example css
75
+ /// .govuk-\!-static-margin-4 {
76
+ /// margin: 20px !important;
77
+ /// }
78
+ ///
79
+ /// @access private
80
+ @mixin _govuk-generate-static-spacing-overrides($property) {
81
+ @each $spacing-point in map-keys($govuk-spacing-points) {
82
+ .govuk-\!-#{$property}-static-#{$spacing-point},
83
+ .govuk-\!-static-#{$property}-#{$spacing-point} {
84
+ #{$property}: govuk-spacing($spacing-point) !important;
85
+ }
86
+
87
+ @each $direction in $_spacing-directions {
88
+ .govuk-\!-#{$property}-#{$direction}-static-#{$spacing-point},
89
+ .govuk-\!-static-#{$property}-#{$direction}-#{$spacing-point} {
90
+ #{$property}-#{$direction}: govuk-spacing($spacing-point) !important;
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ @include govuk-exports("govuk/overrides/spacing") {
97
+ @include _govuk-generate-responsive-spacing-overrides("margin");
98
+ @include _govuk-generate-responsive-spacing-overrides("padding");
99
+
100
+ @include _govuk-generate-static-spacing-overrides("margin");
101
+ @include _govuk-generate-static-spacing-overrides("padding");
102
+ }
@@ -0,0 +1,14 @@
1
+ // stylelint-disable declaration-no-important
2
+ @include govuk-exports("govuk/overrides/text-align") {
3
+ .govuk-\!-text-align-left {
4
+ text-align: left !important;
5
+ }
6
+
7
+ .govuk-\!-text-align-centre {
8
+ text-align: center !important;
9
+ }
10
+
11
+ .govuk-\!-text-align-right {
12
+ text-align: right !important;
13
+ }
14
+ }
@@ -0,0 +1,21 @@
1
+ @include govuk-exports("govuk/overrides/typography") {
2
+ // Font size and line height
3
+
4
+ // Generate typography override classes for each responsive font map in the
5
+ // typography scale eg .govuk-\!-font-size-80
6
+ @each $size in map-keys($govuk-typography-scale) {
7
+ .govuk-\!-font-size-#{$size} {
8
+ @include govuk-typography-responsive($size, $important: true);
9
+ }
10
+ }
11
+
12
+ // Weights
13
+
14
+ .govuk-\!-font-weight-regular {
15
+ @include govuk-typography-weight-regular($important: true);
16
+ }
17
+
18
+ .govuk-\!-font-weight-bold {
19
+ @include govuk-typography-weight-bold($important: true);
20
+ }
21
+ }
@@ -0,0 +1,46 @@
1
+ // stylelint-disable declaration-no-important
2
+ @include govuk-exports("govuk/overrides/width") {
3
+ .govuk-\!-width-full {
4
+ width: 100% !important;
5
+ }
6
+
7
+ .govuk-\!-width-three-quarters {
8
+ width: 100% !important;
9
+
10
+ @include govuk-media-query($from: tablet) {
11
+ width: 75% !important;
12
+ }
13
+ }
14
+
15
+ .govuk-\!-width-two-thirds {
16
+ width: 100% !important;
17
+
18
+ @include govuk-media-query($from: tablet) {
19
+ width: 66.66% !important;
20
+ }
21
+ }
22
+
23
+ .govuk-\!-width-one-half {
24
+ width: 100% !important;
25
+
26
+ @include govuk-media-query($from: tablet) {
27
+ width: 50% !important;
28
+ }
29
+ }
30
+
31
+ .govuk-\!-width-one-third {
32
+ width: 100% !important;
33
+
34
+ @include govuk-media-query($from: tablet) {
35
+ width: 33.33% !important;
36
+ }
37
+ }
38
+
39
+ .govuk-\!-width-one-quarter {
40
+ width: 100% !important;
41
+
42
+ @include govuk-media-query($from: tablet) {
43
+ width: 25% !important;
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,24 @@
1
+ // The order we import settings in is important, as some settings files rely on
2
+ // others
3
+
4
+ @import "assets";
5
+
6
+ @import "warnings";
7
+ @import "compatibility";
8
+ @import "global-styles";
9
+ @import "ie8";
10
+
11
+ @import "media-queries";
12
+
13
+ @import "colours-palette";
14
+ @import "colours-organisations";
15
+ @import "colours-applied";
16
+
17
+ @import "spacing";
18
+ @import "measurements";
19
+
20
+ @import "typography-font-families";
21
+ @import "typography-font";
22
+ @import "typography-responsive";
23
+
24
+ @import "links";
@@ -0,0 +1,82 @@
1
+ ////
2
+ /// @group settings/assets
3
+ ////
4
+
5
+ /// Path to the assets directory, with trailing slash.
6
+ ///
7
+ /// This is the directory where the images and fonts subdirectories live. You
8
+ /// will need to make this directory available via your application – see the
9
+ /// README for details.
10
+ ///
11
+ /// @type String
12
+ /// @access public
13
+
14
+ $govuk-assets-path: "/assets/" !default;
15
+
16
+ /// Path to the images folder, with trailing slash.
17
+ ///
18
+ /// @type String
19
+ /// @access public
20
+
21
+ $govuk-images-path: "#{$govuk-assets-path}images/" !default;
22
+
23
+ /// Path to the fonts folder, with trailing slash.
24
+ ///
25
+ /// @type String
26
+ /// @access public
27
+
28
+ $govuk-fonts-path: "#{$govuk-assets-path}fonts/" !default;
29
+
30
+ /// Custom image URL function
31
+ ///
32
+ /// If the built-in image URL helper does not meet your needs, you can specify
33
+ /// the name of a custom handler – either built in or by writing your own
34
+ /// function.
35
+ ///
36
+ /// If you are writing your own handler, ensure that it returns a string wrapped
37
+ /// with `url()`
38
+ ///
39
+ /// @type String
40
+ ///
41
+ /// @example scss - Rails asset handling
42
+ /// $govuk-image-url-function: 'image-url';
43
+ ///
44
+ /// @example scss - Custom asset handling
45
+ ///
46
+ /// @function my-url-handler($filename) {
47
+ /// // Some custom URL handling
48
+ /// @return url('example.jpg');
49
+ /// }
50
+ ///
51
+ /// $govuk-image-url-function: 'my-url-handler';
52
+ ///
53
+ /// @access public
54
+
55
+ $govuk-image-url-function: false !default;
56
+
57
+ /// Custom font URL function
58
+ ///
59
+ /// If the built-in font URL helper does not meet your needs, you can specify
60
+ /// the name of a custom handler – either built in or by writing your own
61
+ /// function.
62
+ ///
63
+ /// If you are writing your own handler, ensure that it returns a string wrapped
64
+ /// with `url()`
65
+ ///
66
+ /// @type String
67
+ ///
68
+ /// @example scss - Rails asset handling
69
+ /// $govuk-font-url-function: 'font-url';
70
+ ///
71
+ /// @example scss - Custom asset handling
72
+ ///
73
+ /// @function my-url-handler($filename) {
74
+ /// // Some custom URL handling
75
+ /// @return url('example.woff');
76
+ /// }
77
+ ///
78
+ /// $govuk-font-url-function: 'my-url-handler';
79
+ ///
80
+ /// @access public
81
+
82
+ $govuk-font-url-function: false !default;
@@ -0,0 +1,155 @@
1
+ ////
2
+ /// @group settings/colours
3
+ ////
4
+
5
+ @import "../helpers/colour";
6
+
7
+ // =========================================================
8
+ // Generic
9
+ // =========================================================
10
+
11
+ /// Brand colour
12
+ ///
13
+ /// @type Colour
14
+ /// @access public
15
+
16
+ $govuk-brand-colour: govuk-colour("blue") !default;
17
+
18
+ /// Text colour
19
+ ///
20
+ /// @type Colour
21
+ /// @access public
22
+
23
+ $govuk-text-colour: govuk-colour("black") !default;
24
+
25
+ /// Canvas background colour
26
+ ///
27
+ /// Used by the footer component and template to give the illusion of a long
28
+ /// footer.
29
+ ///
30
+ /// @type Colour
31
+ /// @access public
32
+
33
+ $govuk-canvas-background-colour: govuk-colour("light-grey", $legacy: "grey-3") !default;
34
+
35
+ /// Body background colour
36
+ ///
37
+ /// @type Colour
38
+ /// @access public
39
+
40
+ $govuk-body-background-colour: govuk-colour("white") !default;
41
+
42
+ /// Text colour for print media
43
+ ///
44
+ /// Use 'true black' to avoid printers using colour ink to print body text
45
+ ///
46
+ /// @type Colour
47
+ /// @access public
48
+
49
+ $govuk-print-text-colour: #000000 !default;
50
+
51
+ /// Secondary text colour
52
+ ///
53
+ /// Used in for example 'muted' text and help text.
54
+ ///
55
+ /// @type Colour
56
+ /// @access public
57
+
58
+ $govuk-secondary-text-colour: govuk-colour("dark-grey", $legacy: "grey-1") !default;
59
+
60
+ /// Focus colour
61
+ ///
62
+ /// Used for outline (and background, where appropriate) when interactive
63
+ /// elements (links, form controls) have keyboard focus.
64
+ ///
65
+ /// @type Colour
66
+ /// @access public
67
+
68
+ $govuk-focus-colour: govuk-colour("yellow") !default;
69
+
70
+ /// Focused text colour
71
+ ///
72
+ /// Ensure that the contrast between the text and background colour passes
73
+ /// WCAG Level AA contrast requirements.
74
+ ///
75
+ /// @type Colour
76
+ /// @access public
77
+
78
+ $govuk-focus-text-colour: govuk-colour("black") !default;
79
+
80
+ /// Error colour
81
+ ///
82
+ /// Used to highlight error messages and form controls in an error state
83
+ ///
84
+ /// @type Colour
85
+ /// @access public
86
+
87
+ $govuk-error-colour: govuk-colour("red") !default;
88
+
89
+ /// Success colour
90
+ ///
91
+ /// Used to highlight success messages and banners
92
+ ///
93
+ /// @type Colour
94
+ /// @access public
95
+
96
+ $govuk-success-colour: govuk-colour("green") !default;
97
+
98
+ /// Border colour
99
+ ///
100
+ /// Used in for example borders, separators, rules and keylines.
101
+ ///
102
+ /// @type Colour
103
+ /// @access public
104
+
105
+ $govuk-border-colour: govuk-colour("mid-grey", $legacy: "grey-2");
106
+
107
+ /// Input border colour
108
+ ///
109
+ /// Used for form inputs and controls
110
+ ///
111
+ /// @type Colour
112
+ /// @access public
113
+
114
+ $govuk-input-border-colour: govuk-colour("black") !default;
115
+
116
+ /// Input hover colour
117
+ ///
118
+ /// Used for hover states on form controls
119
+ ///
120
+ /// @type Colour
121
+ /// @access public
122
+
123
+ $govuk-hover-colour: govuk-colour("mid-grey", $legacy: "grey-3");
124
+
125
+ // =============================================================================
126
+ // Links
127
+ // =============================================================================
128
+
129
+ /// Link colour
130
+ ///
131
+ /// @type Colour
132
+ /// @access public
133
+
134
+ $govuk-link-colour: govuk-colour("blue") !default;
135
+
136
+ /// Visited link colour
137
+ ///
138
+ /// @type Colour
139
+ /// @access public
140
+
141
+ $govuk-link-visited-colour: govuk-colour("purple", $legacy: #4c2c92) !default;
142
+
143
+ /// Link hover colour
144
+ ///
145
+ /// @type Colour
146
+ /// @access public
147
+
148
+ $govuk-link-hover-colour: govuk-colour("dark-blue", $legacy: "light-blue") !default;
149
+
150
+ /// Active link colour
151
+ ///
152
+ /// @type Colour
153
+ /// @access public
154
+
155
+ $govuk-link-active-colour: govuk-colour("black", $legacy: "light-blue") !default;