katalyst-govuk-formbuilder 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +1 -1
  3. data/lib/katalyst/govuk/formbuilder/engine.rb +1 -0
  4. data/lib/katalyst/govuk/formbuilder/version.rb +1 -1
  5. data/vendor/assets/stylesheets/govuk-frontend/govuk/_base.scss +3 -0
  6. data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +6 -0
  7. data/vendor/assets/stylesheets/govuk-frontend/govuk/all.scss +9 -0
  8. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/_all.scss +34 -0
  9. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -0
  10. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_index.scss +392 -0
  11. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -0
  12. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_index.scss +99 -0
  13. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -0
  14. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_index.scss +147 -0
  15. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_button.scss +2 -0
  16. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_index.scss +295 -0
  17. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -0
  18. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_index.scss +34 -0
  19. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -0
  20. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_index.scss +335 -0
  21. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
  22. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_index.scss +49 -0
  23. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -0
  24. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
  25. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_details.scss +2 -0
  26. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_index.scss +88 -0
  27. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -0
  28. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_index.scss +12 -0
  29. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -0
  30. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_index.scss +43 -0
  31. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -0
  32. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
  33. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -0
  34. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_index.scss +50 -0
  35. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +2 -0
  36. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_index.scss +200 -0
  37. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +2 -0
  38. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_index.scss +349 -0
  39. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_hint.scss +2 -0
  40. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_index.scss +42 -0
  41. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_index.scss +181 -0
  42. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_input.scss +2 -0
  43. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
  44. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -0
  45. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_index.scss +41 -0
  46. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_label.scss +2 -0
  47. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
  48. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
  49. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_index.scss +247 -0
  50. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +2 -0
  51. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_index.scss +56 -0
  52. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_panel.scss +2 -0
  53. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
  54. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -0
  55. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_index.scss +349 -0
  56. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +2 -0
  57. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_index.scss +60 -0
  58. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +2 -0
  59. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_index.scss +47 -0
  60. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -0
  61. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_index.scss +276 -0
  62. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -0
  63. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_index.scss +71 -0
  64. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_table.scss +2 -0
  65. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_index.scss +130 -0
  66. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -0
  67. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +81 -0
  68. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_tag.scss +2 -0
  69. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_index.scss +47 -0
  70. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -0
  71. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_index.scss +66 -0
  72. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -0
  73. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_all.scss +5 -0
  74. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_global-styles.scss +19 -0
  75. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_links.scss +35 -0
  76. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_lists.scss +66 -0
  77. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_section-break.scss +56 -0
  78. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_typography.scss +186 -0
  79. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_all.scss +12 -0
  80. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_clearfix.scss +15 -0
  81. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_colour.scss +95 -0
  82. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_device-pixels.scss +37 -0
  83. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_focused.scss +33 -0
  84. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
  85. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_grid.scss +61 -0
  86. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_links.scss +429 -0
  87. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_media-queries.scss +91 -0
  88. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_shape-arrow.scss +80 -0
  89. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_spacing.scss +171 -0
  90. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_typography.scss +214 -0
  91. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_visually-hidden.scss +84 -0
  92. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_all.scss +6 -0
  93. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_button-group.scss +85 -0
  94. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_form-group.scss +23 -0
  95. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_grid.scss +24 -0
  96. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_main-wrapper.scss +53 -0
  97. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_template.scss +32 -0
  98. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_width-container.scss +84 -0
  99. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_all.scss +5 -0
  100. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_display.scss +24 -0
  101. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_spacing.scss +102 -0
  102. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_text-align.scss +14 -0
  103. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_typography.scss +21 -0
  104. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_width.scss +46 -0
  105. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_all.scss +24 -0
  106. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_assets.scss +82 -0
  107. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-applied.scss +155 -0
  108. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-organisations.scss +142 -0
  109. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +120 -0
  110. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +100 -0
  111. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_global-styles.scss +13 -0
  112. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +18 -0
  113. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_links.scss +62 -0
  114. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_measurements.scss +95 -0
  115. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_media-queries.scss +23 -0
  116. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_spacing.scss +76 -0
  117. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +32 -0
  118. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +112 -0
  119. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-responsive.scss +195 -0
  120. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_warnings.scss +53 -0
  121. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_all.scss +7 -0
  122. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +50 -0
  123. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_exports.scss +33 -0
  124. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_font-url.scss +25 -0
  125. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +51 -0
  126. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_image-url.scss +25 -0
  127. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-em.scss +20 -0
  128. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-rem.scss +20 -0
  129. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_all.scss +2 -0
  130. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_clearfix.scss +5 -0
  131. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_visually-hidden.scss +9 -0
  132. data/vendor/assets/stylesheets/govuk-frontend/govuk/vendor/_sass-mq.scss +347 -0
  133. metadata +130 -3
  134. data/app/assets/builds/katalyst/govuk/formbuilder.min.css +0 -1
@@ -0,0 +1,181 @@
1
+ @import "../error-message/index";
2
+ @import "../hint/index";
3
+ @import "../label/index";
4
+
5
+ @include govuk-exports("govuk/component/input") {
6
+ .govuk-input {
7
+ @include govuk-font($size: 19);
8
+
9
+ box-sizing: border-box;
10
+ width: 100%;
11
+ height: 40px;
12
+ @if $govuk-typography-use-rem {
13
+ height: govuk-px-to-rem(40px);
14
+ }
15
+ margin-top: 0;
16
+
17
+ padding: govuk-spacing(1);
18
+ // setting any background-color makes text invisible when changing colours to dark backgrounds in Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1335476)
19
+ // as background-color and color need to always be set together, color should not be set either
20
+ border: $govuk-border-width-form-element solid $govuk-input-border-colour;
21
+ border-radius: 0;
22
+
23
+ // Disable inner shadow and remove rounded corners
24
+ -webkit-appearance: none;
25
+ appearance: none;
26
+
27
+ &:focus {
28
+ outline: $govuk-focus-width solid $govuk-focus-colour;
29
+ // Ensure outline appears outside of the element
30
+ outline-offset: 0;
31
+ // Double the border by adding its width again. Use `box-shadow` for this // instead of changing `border-width` - this is for consistency with
32
+ // components such as textarea where we avoid changing `border-width` as
33
+ // it will change the element size. Also, `outline` cannot be utilised
34
+ // here as it is already used for the yellow focus state.
35
+ box-shadow: inset 0 0 0 $govuk-border-width-form-element;
36
+
37
+ @include govuk-if-ie8 {
38
+ // IE8 doesn't support `box-shadow` so double the border with
39
+ // `border-width`.
40
+ border-width: $govuk-border-width-form-element * 2;
41
+ }
42
+ }
43
+ }
44
+
45
+ .govuk-input::-webkit-outer-spin-button,
46
+ .govuk-input::-webkit-inner-spin-button {
47
+ margin: 0;
48
+ -webkit-appearance: none;
49
+ }
50
+
51
+ .govuk-input[type="number"] {
52
+ -moz-appearance: textfield;
53
+ }
54
+
55
+ .govuk-input--error {
56
+ border-color: $govuk-error-colour;
57
+
58
+ &:focus {
59
+ border-color: $govuk-input-border-colour;
60
+ }
61
+ }
62
+
63
+ // em measurements are based on the point size of the typeface
64
+ // Extra space is added on the right hand side to allow for the Safari prefill icon
65
+
66
+ .govuk-input--width-30 {
67
+ max-width: 29.5em;
68
+ }
69
+
70
+ .govuk-input--width-20 {
71
+ max-width: 20.5em;
72
+ }
73
+
74
+ .govuk-input--width-10 {
75
+ max-width: 11.5em;
76
+ }
77
+
78
+ .govuk-input--width-5 {
79
+ max-width: 5.5em;
80
+ }
81
+
82
+ .govuk-input--width-4 {
83
+ max-width: 4.5em;
84
+ }
85
+
86
+ .govuk-input--width-3 {
87
+ max-width: 3.75em;
88
+ }
89
+
90
+ .govuk-input--width-2 {
91
+ max-width: 2.75em;
92
+ }
93
+
94
+ .govuk-input__wrapper {
95
+ display: -ms-flexbox;
96
+ display: flex;
97
+
98
+ .govuk-input {
99
+ -ms-flex: 0 1 auto;
100
+ flex: 0 1 auto;
101
+ }
102
+
103
+ .govuk-input:focus {
104
+ // Hack to stop focus style being overlapped by the suffix
105
+ z-index: 1;
106
+ }
107
+
108
+ // Split prefix/suffix onto separate lines on narrow screens
109
+ @include govuk-media-query($until: mobile) {
110
+ display: block;
111
+
112
+ .govuk-input {
113
+ // Set max-width to override potential width override class on the input
114
+ max-width: 100%;
115
+ }
116
+ }
117
+ }
118
+
119
+ .govuk-input__prefix,
120
+ .govuk-input__suffix {
121
+ @include govuk-font($size: 19);
122
+
123
+ box-sizing: border-box;
124
+ display: inline-block;
125
+ min-width: 40px;
126
+ @if $govuk-typography-use-rem {
127
+ min-width: govuk-px-to-rem(40px);
128
+ }
129
+ height: 40px;
130
+ @if $govuk-typography-use-rem {
131
+ height: govuk-px-to-rem(40px);
132
+ }
133
+
134
+ padding: govuk-spacing(1);
135
+ border: $govuk-border-width-form-element solid $govuk-input-border-colour;
136
+ background-color: govuk-colour("light-grey", $legacy: "grey-3");
137
+
138
+ text-align: center;
139
+ @include govuk-media-query($until: tablet) {
140
+ line-height: 1.6;
141
+ }
142
+ white-space: nowrap;
143
+
144
+ // Emphasise non-editable status of prefixes and suffixes
145
+ cursor: default;
146
+
147
+ -ms-flex: 0 0 auto;
148
+
149
+ flex: 0 0 auto;
150
+
151
+ // Split prefix/suffix onto separate lines on narrow screens
152
+ @include govuk-media-query($until: mobile) {
153
+ display: block;
154
+ height: 100%;
155
+ white-space: normal;
156
+ }
157
+ }
158
+
159
+ .govuk-input__prefix {
160
+ @include govuk-media-query($until: mobile) {
161
+ border-bottom: 0;
162
+ }
163
+ @include govuk-media-query($from: mobile) {
164
+ @include govuk-not-ie8 {
165
+ border-right: 0;
166
+ }
167
+ }
168
+ }
169
+
170
+ // Split prefix/suffix onto separate lines on narrow screens
171
+ .govuk-input__suffix {
172
+ @include govuk-media-query($until: mobile) {
173
+ border-top: 0;
174
+ }
175
+ @include govuk-media-query($from: mobile) {
176
+ @include govuk-not-ie8 {
177
+ border-left: 0;
178
+ }
179
+ }
180
+ }
181
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,24 @@
1
+ @include govuk-exports("govuk/component/inset-text") {
2
+ .govuk-inset-text {
3
+ @include govuk-font($size: 19);
4
+ @include govuk-text-colour;
5
+ padding: govuk-spacing(3);
6
+ // Margin top intended to collapse
7
+ // This adds an additional 10px to the paragraph above
8
+ @include govuk-responsive-margin(6, "top");
9
+ @include govuk-responsive-margin(6, "bottom");
10
+
11
+ clear: both;
12
+
13
+ border-left: $govuk-border-width-wide solid $govuk-border-colour;
14
+
15
+ > :first-child {
16
+ margin-top: 0;
17
+ }
18
+
19
+ > :only-child,
20
+ > :last-child {
21
+ margin-bottom: 0;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,41 @@
1
+ @include govuk-exports("govuk/component/label") {
2
+ .govuk-label {
3
+ @include govuk-font($size: 19);
4
+ @include govuk-text-colour;
5
+
6
+ display: block;
7
+
8
+ margin-bottom: govuk-spacing(1);
9
+ }
10
+
11
+ // Modifiers that make labels look more like their equivalent headings
12
+
13
+ .govuk-label--xl {
14
+ @include govuk-font($size: 48, $weight: bold);
15
+ margin-bottom: govuk-spacing(3);
16
+ }
17
+
18
+ .govuk-label--l {
19
+ @include govuk-font($size: 36, $weight: bold);
20
+ margin-bottom: govuk-spacing(3);
21
+ }
22
+
23
+ .govuk-label--m {
24
+ @include govuk-font($size: 24, $weight: bold);
25
+ margin-bottom: govuk-spacing(2);
26
+ }
27
+
28
+ .govuk-label--s {
29
+ @include govuk-font($size: 19, $weight: bold);
30
+ }
31
+
32
+ // When the label is nested inside a heading, override the heading so that it
33
+ // does not have a margin. Effectively we want to be able to treat the heading
34
+ // as if it is not there.
35
+ //
36
+ // This breaks BEM conventions because it exists as a parent of the 'block',
37
+ // so we can't really consider an element.
38
+ .govuk-label-wrapper {
39
+ margin: 0;
40
+ }
41
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,89 @@
1
+ @include govuk-exports("govuk/component/notification-banner") {
2
+ .govuk-notification-banner {
3
+ @include govuk-font($size: 19);
4
+ @include govuk-responsive-margin(8, "bottom");
5
+
6
+ border: $govuk-border-width solid $govuk-brand-colour;
7
+
8
+ background-color: $govuk-brand-colour;
9
+
10
+ &:focus {
11
+ outline: $govuk-focus-width solid $govuk-focus-colour;
12
+ }
13
+ }
14
+
15
+ .govuk-notification-banner__header {
16
+ padding: 2px govuk-spacing(3) govuk-spacing(1);
17
+
18
+ // Ensures the notification header appears separate to the notification body text in high contrast mode
19
+ border-bottom: 1px solid transparent;
20
+
21
+ @include govuk-media-query($from: tablet) {
22
+ padding: 2px govuk-spacing(4) govuk-spacing(1);
23
+ }
24
+ }
25
+
26
+ .govuk-notification-banner__title {
27
+ @include govuk-font($size: 19, $weight: bold);
28
+
29
+ margin: 0;
30
+
31
+ padding: 0;
32
+
33
+ color: govuk-colour("white");
34
+ }
35
+
36
+ .govuk-notification-banner__content {
37
+ $padding-tablet: govuk-spacing(4);
38
+ @include govuk-text-colour;
39
+ padding: govuk-spacing(3);
40
+
41
+ background-color: $govuk-body-background-colour;
42
+
43
+ @include govuk-media-query($from: tablet) {
44
+ padding: $padding-tablet;
45
+ }
46
+
47
+ // Wrap content at the same place that a 2/3 grid column ends, to maintain
48
+ // shorter line-lengths when the notification banner is full width
49
+ > * {
50
+ // When elements have their own padding (like lists), include the padding
51
+ // in the max-width calculation
52
+ box-sizing: border-box;
53
+
54
+ // Calculate the internal width of a two-thirds column...
55
+ $two-col-width: ($govuk-page-width * 2 / 3) - ($govuk-gutter * 1 / 3);
56
+
57
+ // ...and then factor in the left border and padding
58
+ $banner-exterior: ($padding-tablet + $govuk-border-width);
59
+ max-width: $two-col-width - $banner-exterior;
60
+ }
61
+
62
+ > :last-child {
63
+ margin-bottom: 0;
64
+ }
65
+ }
66
+
67
+ .govuk-notification-banner__heading {
68
+ @include govuk-font($size: 24, $weight: bold);
69
+
70
+ margin: 0 0 govuk-spacing(3) 0;
71
+
72
+ padding: 0;
73
+ }
74
+
75
+ .govuk-notification-banner__link {
76
+ @include govuk-link-common;
77
+ @include govuk-link-style-no-visited-state;
78
+ }
79
+
80
+ .govuk-notification-banner--success {
81
+ border-color: $govuk-success-colour;
82
+
83
+ background-color: $govuk-success-colour;
84
+
85
+ .govuk-notification-banner__link {
86
+ @include govuk-link-style-success;
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,247 @@
1
+ @include govuk-exports("govuk/component/pagination") {
2
+ // Flexbox enhancement for small screen visual design
3
+ // Falls back to a float: left layout on non-flex browsers
4
+ .govuk-pagination {
5
+ @include govuk-responsive-margin(6, "bottom");
6
+ display: -ms-flexbox;
7
+ display: flex;
8
+ -ms-flex-direction: column;
9
+ flex-direction: column;
10
+ -ms-flex-align: center;
11
+ align-items: center;
12
+ -ms-flex-wrap: wrap;
13
+ flex-wrap: wrap;
14
+
15
+ @include govuk-media-query($from: tablet) {
16
+ -ms-flex-direction: row;
17
+ flex-direction: row;
18
+ -ms-flex-align: start;
19
+ align-items: flex-start;
20
+ }
21
+ }
22
+
23
+ .govuk-pagination__list {
24
+ margin: 0;
25
+ padding: 0;
26
+ list-style: none;
27
+ }
28
+
29
+ .govuk-pagination__item,
30
+ .govuk-pagination__next,
31
+ .govuk-pagination__prev {
32
+ @include govuk-font(19);
33
+ box-sizing: border-box;
34
+ position: relative;
35
+ min-width: 45px;
36
+ min-height: 45px;
37
+ padding: govuk-spacing(2) govuk-spacing(3);
38
+ float: left; // Float is ignored if flex is active for prev/next links
39
+
40
+ &:hover {
41
+ background-color: govuk-colour("light-grey", $legacy: "grey-4");
42
+ }
43
+ }
44
+
45
+ .govuk-pagination__item {
46
+ // Hide items on small screens except the prev/next items,
47
+ // non-link items and the first and last items
48
+ display: none;
49
+
50
+ // Center align pagination links in their parent list item so that they
51
+ // visually sit in the middle of their touch area
52
+ text-align: center;
53
+
54
+ @include govuk-media-query($from: tablet) {
55
+ display: block;
56
+ }
57
+ }
58
+
59
+ .govuk-pagination__prev,
60
+ .govuk-pagination__next {
61
+ @include govuk-typography-weight-bold;
62
+
63
+ // Use flex to get around a whitespace issue between the arrow svg and the link text
64
+ // without having to rely on whitespace control from backend tooling
65
+ .govuk-pagination__link {
66
+ display: -ms-flexbox;
67
+ display: flex;
68
+ -ms-flex-align: center;
69
+ align-items: center;
70
+ }
71
+ }
72
+
73
+ .govuk-pagination__prev {
74
+ padding-left: 0;
75
+ }
76
+
77
+ .govuk-pagination__next {
78
+ padding-right: 0;
79
+ }
80
+
81
+ // Only show first, last and non-link items on mobile
82
+ .govuk-pagination__item--current,
83
+ .govuk-pagination__item--ellipses,
84
+ .govuk-pagination__item:first-child,
85
+ .govuk-pagination__item:last-child {
86
+ display: block;
87
+ }
88
+
89
+ .govuk-pagination__item--current {
90
+ @include govuk-typography-weight-bold;
91
+ outline: 1px solid transparent;
92
+ background-color: $govuk-link-colour;
93
+
94
+ &:hover {
95
+ background-color: $govuk-link-colour;
96
+ }
97
+
98
+ .govuk-pagination__link {
99
+ @include govuk-link-style-inverse;
100
+ }
101
+ }
102
+
103
+ .govuk-pagination__item--ellipses {
104
+ @include govuk-typography-weight-bold;
105
+ color: $govuk-secondary-text-colour;
106
+
107
+ // Remove hover state for ellipsis items as they don't have links within them
108
+ &:hover {
109
+ background-color: transparent;
110
+ }
111
+ }
112
+
113
+ .govuk-pagination__link {
114
+ display: block;
115
+ min-width: govuk-spacing(3);
116
+
117
+ // Increase the touch area for the link to the parent element.
118
+ @media screen {
119
+ &:after {
120
+ content: "";
121
+ position: absolute;
122
+ top: 0;
123
+ right: 0;
124
+ bottom: 0;
125
+ left: 0;
126
+ }
127
+ }
128
+
129
+ // Add link hover decoration to prev/next text if no label present on prev/next only mode
130
+ // We do this so that we have a hover state in all possible instances
131
+ &:hover,
132
+ &:active {
133
+ .govuk-pagination__link-title--decorated {
134
+ @include govuk-link-decoration;
135
+ }
136
+
137
+ .govuk-pagination__link-label,
138
+ .govuk-pagination__link-title--decorated {
139
+ @include govuk-link-hover-decoration;
140
+ }
141
+ }
142
+
143
+ &:focus {
144
+ .govuk-pagination__icon {
145
+ color: $govuk-focus-text-colour;
146
+ }
147
+
148
+ .govuk-pagination__link-label {
149
+ text-decoration: none;
150
+ }
151
+
152
+ .govuk-pagination__link-title--decorated {
153
+ text-decoration: none;
154
+ }
155
+ }
156
+ }
157
+
158
+ .govuk-pagination__link-label {
159
+ @include govuk-font($size: 19, $weight: "regular");
160
+ @include govuk-link-decoration;
161
+ display: inline-block;
162
+ padding-left: govuk-spacing(6);
163
+ }
164
+
165
+ .govuk-pagination__icon {
166
+ // Set size using rems to make the icon scale with text if user resizes text in their browser
167
+ width: govuk-px-to-rem(15px);
168
+ height: govuk-px-to-rem(13px);
169
+ color: $govuk-secondary-text-colour;
170
+ fill: currentcolor;
171
+ forced-color-adjust: auto;
172
+ }
173
+
174
+ .govuk-pagination__icon--prev {
175
+ margin-right: govuk-spacing(3);
176
+ }
177
+
178
+ .govuk-pagination__icon--next {
179
+ margin-left: govuk-spacing(3);
180
+ }
181
+
182
+ // Block mode - position previous and next links above and below numbers
183
+ .govuk-pagination--block {
184
+ display: block;
185
+
186
+ .govuk-pagination__item {
187
+ padding: govuk-spacing(3);
188
+ float: none;
189
+ }
190
+
191
+ .govuk-pagination__next,
192
+ .govuk-pagination__prev {
193
+ padding-left: 0;
194
+ float: none;
195
+ }
196
+
197
+ .govuk-pagination__next {
198
+ padding-right: govuk-spacing(3);
199
+
200
+ .govuk-pagination__icon {
201
+ margin-left: 0;
202
+ }
203
+ }
204
+
205
+ // Only apply a border between prev and next if both are present
206
+ .govuk-pagination__prev + .govuk-pagination__next {
207
+ border-top: 1px solid $govuk-border-colour;
208
+ }
209
+
210
+ // Reset both these elements to their inline default, both to ensure that the focus state
211
+ // for block mode "shrink wraps" text as expected
212
+ .govuk-pagination__link,
213
+ .govuk-pagination__link-title {
214
+ display: inline;
215
+ }
216
+
217
+ // Set the after pseudo element to a block which makes the title visually display
218
+ // as block level whilst programmatically being inline
219
+ // We do this to get around an NVDA quirk where adjacent block level
220
+ // elements are always read out separately
221
+ .govuk-pagination__link-title:after {
222
+ content: "";
223
+ display: block;
224
+ }
225
+
226
+ .govuk-pagination__link {
227
+ text-align: left;
228
+
229
+ &:focus {
230
+ // apply focus styling to the label within the link as if it were being focused
231
+ // to get around a display issue with a focusable inline element containing a mixture
232
+ // of inline and inline-block level elements
233
+ .govuk-pagination__link-label {
234
+ @include govuk-focused-text;
235
+ }
236
+ }
237
+
238
+ &:not(:focus) {
239
+ text-decoration: none;
240
+ }
241
+ }
242
+
243
+ .govuk-pagination__icon {
244
+ margin-right: govuk-spacing(2);
245
+ }
246
+ }
247
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,56 @@
1
+ @include govuk-exports("govuk/component/panel") {
2
+ .govuk-panel {
3
+ @include govuk-font($size: 19);
4
+
5
+ box-sizing: border-box;
6
+
7
+ margin-bottom: govuk-spacing(3);
8
+ padding: govuk-spacing(7) - $govuk-border-width;
9
+
10
+ border: $govuk-border-width solid transparent;
11
+
12
+ text-align: center;
13
+
14
+ @include govuk-media-query($until: tablet) {
15
+ padding: govuk-spacing(3) - $govuk-border-width;
16
+
17
+ // This is an if-all-else-fails attempt to stop long words from overflowing the container
18
+ // on very narrow viewports by forcing them to break and wrap instead. This
19
+ // overflowing is more likely to happen when user increases text size on a mobile eg. using
20
+ // iOS Safari text resize controls.
21
+ //
22
+ // The overflowing is a particular problem with the panel component since it uses white
23
+ // text: when the text overflows the container, it is invisible on the white (page)
24
+ // background. When the text in our other components overflow, the user might have to scroll
25
+ // horizontally to view it but the the text remains legible.
26
+ overflow-wrap: break-word;
27
+ word-wrap: break-word; // Support IE (autoprefixer doesn't add this as it's not a prefix)
28
+ }
29
+ }
30
+
31
+ .govuk-panel--confirmation {
32
+ color: govuk-colour("white");
33
+ background: govuk-colour("green", $legacy: "turquoise");
34
+
35
+ @include govuk-media-query($media-type: print) {
36
+ border-color: currentcolor;
37
+ color: $govuk-print-text-colour;
38
+ background: none;
39
+ }
40
+ }
41
+
42
+ .govuk-panel__title {
43
+ margin-top: 0;
44
+ margin-bottom: govuk-spacing(6);
45
+
46
+ @include govuk-font($size: 48, $weight: bold);
47
+ }
48
+
49
+ .govuk-panel__title:last-child {
50
+ margin-bottom: 0;
51
+ }
52
+
53
+ .govuk-panel__body {
54
+ @include govuk-font($size: 36);
55
+ }
56
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,27 @@
1
+ @import "../tag/index";
2
+
3
+ @include govuk-exports("govuk/component/phase-banner") {
4
+ .govuk-phase-banner {
5
+ padding-top: govuk-spacing(2);
6
+ padding-bottom: govuk-spacing(2);
7
+
8
+ border-bottom: 1px solid $govuk-border-colour;
9
+ }
10
+
11
+ .govuk-phase-banner__content {
12
+ @include govuk-font($size: 16);
13
+ @include govuk-text-colour;
14
+
15
+ display: table;
16
+ margin: 0;
17
+ }
18
+
19
+ .govuk-phase-banner__content__tag {
20
+ margin-right: govuk-spacing(2);
21
+ }
22
+
23
+ .govuk-phase-banner__text {
24
+ display: table-cell;
25
+ vertical-align: middle;
26
+ }
27
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";