govuk_publishing_components 11.2.0 → 12.0.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/images/govuk_publishing_components/favicon-example.png +0 -0
- data/app/assets/images/govuk_publishing_components/favicon-production.png +0 -0
- data/app/assets/javascripts/component_guide/application.js +1 -1
- data/app/assets/javascripts/component_guide/no_slimmer.js +15 -0
- data/app/assets/javascripts/govuk_publishing_components/admin_scripts.js +2 -4
- data/app/assets/javascripts/govuk_publishing_components/all_components.js +4 -0
- data/app/assets/stylesheets/component_guide/application.scss +80 -74
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +26 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +21 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +7 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +24 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +19 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +11 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +12 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +9 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +11 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +7 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +9 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +4 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +12 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +16 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +7 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +8 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +5 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +30 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +14 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-list.scss +2 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-navigation.scss +10 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +7 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +24 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +47 -13
- data/app/controllers/govuk_publishing_components/application_controller.rb +5 -6
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
- data/app/views/govuk_publishing_components/component_guide/show.html.erb +9 -9
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +4 -7
- data/app/views/govuk_publishing_components/components/_notice.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_taxonomy_navigation.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/fieldset.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/tabs.yml +7 -7
- data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +3 -3
- data/app/views/layouts/govuk_publishing_components/application.html.erb +43 -44
- data/config/initializers/assets.rb +2 -0
- data/lib/govuk_publishing_components/app_helpers/environment.rb +1 -0
- data/lib/govuk_publishing_components/config.rb +1 -1
- data/lib/govuk_publishing_components/engine.rb +0 -1
- data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +1 -1
- data/lib/govuk_publishing_components/presenters/step_by_step_nav_helper.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/jquery/AUTHORS.txt +266 -0
- data/node_modules/jquery/LICENSE.txt +36 -0
- data/node_modules/jquery/README.md +65 -0
- data/node_modules/jquery/bower.json +14 -0
- data/node_modules/jquery/dist/jquery.js +11008 -0
- data/node_modules/jquery/dist/jquery.min.js +5 -0
- data/node_modules/jquery/dist/jquery.min.map +1 -0
- data/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/node_modules/jquery/package.json +157 -0
- data/node_modules/jquery/src/ajax.js +842 -0
- data/node_modules/jquery/src/ajax/jsonp.js +100 -0
- data/node_modules/jquery/src/ajax/load.js +83 -0
- data/node_modules/jquery/src/ajax/parseJSON.js +53 -0
- data/node_modules/jquery/src/ajax/parseXML.js +31 -0
- data/node_modules/jquery/src/ajax/script.js +95 -0
- data/node_modules/jquery/src/ajax/var/location.js +3 -0
- data/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/node_modules/jquery/src/ajax/var/rquery.js +3 -0
- data/node_modules/jquery/src/ajax/xhr.js +229 -0
- data/node_modules/jquery/src/attributes.js +11 -0
- data/node_modules/jquery/src/attributes/attr.js +281 -0
- data/node_modules/jquery/src/attributes/classes.js +174 -0
- data/node_modules/jquery/src/attributes/prop.js +156 -0
- data/node_modules/jquery/src/attributes/support.js +70 -0
- data/node_modules/jquery/src/attributes/val.js +191 -0
- data/node_modules/jquery/src/callbacks.js +232 -0
- data/node_modules/jquery/src/core.js +529 -0
- data/node_modules/jquery/src/core/access.js +65 -0
- data/node_modules/jquery/src/core/init.js +140 -0
- data/node_modules/jquery/src/core/parseHTML.js +41 -0
- data/node_modules/jquery/src/core/ready.js +163 -0
- data/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
- data/node_modules/jquery/src/css.js +563 -0
- data/node_modules/jquery/src/css/addGetHookIf.js +24 -0
- data/node_modules/jquery/src/css/adjustCSS.js +65 -0
- data/node_modules/jquery/src/css/curCSS.js +137 -0
- data/node_modules/jquery/src/css/defaultDisplay.js +72 -0
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +42 -0
- data/node_modules/jquery/src/css/showHide.js +45 -0
- data/node_modules/jquery/src/css/support.js +184 -0
- data/node_modules/jquery/src/css/var/cssExpand.js +3 -0
- data/node_modules/jquery/src/css/var/isHidden.js +16 -0
- data/node_modules/jquery/src/css/var/rmargin.js +3 -0
- data/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
- data/node_modules/jquery/src/css/var/swap.js +24 -0
- data/node_modules/jquery/src/data.js +342 -0
- data/node_modules/jquery/src/data/support.js +23 -0
- data/node_modules/jquery/src/data/var/acceptData.js +20 -0
- data/node_modules/jquery/src/deferred.js +159 -0
- data/node_modules/jquery/src/deprecated.js +34 -0
- data/node_modules/jquery/src/dimensions.js +56 -0
- data/node_modules/jquery/src/effects.js +640 -0
- data/node_modules/jquery/src/effects/Tween.js +121 -0
- data/node_modules/jquery/src/effects/animatedSelector.js +13 -0
- data/node_modules/jquery/src/effects/support.js +58 -0
- data/node_modules/jquery/src/event.js +1134 -0
- data/node_modules/jquery/src/event/ajax.js +20 -0
- data/node_modules/jquery/src/event/alias.js +25 -0
- data/node_modules/jquery/src/event/support.js +28 -0
- data/node_modules/jquery/src/exports/amd.js +24 -0
- data/node_modules/jquery/src/exports/global.js +26 -0
- data/node_modules/jquery/src/intro.js +44 -0
- data/node_modules/jquery/src/jquery.js +37 -0
- data/node_modules/jquery/src/manipulation.js +585 -0
- data/node_modules/jquery/src/manipulation/_evalUrl.js +21 -0
- data/node_modules/jquery/src/manipulation/buildFragment.js +157 -0
- data/node_modules/jquery/src/manipulation/createSafeFragment.js +20 -0
- data/node_modules/jquery/src/manipulation/getAll.js +33 -0
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +19 -0
- data/node_modules/jquery/src/manipulation/support.js +72 -0
- data/node_modules/jquery/src/manipulation/var/nodeNames.js +5 -0
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
- data/node_modules/jquery/src/manipulation/wrapMap.js +30 -0
- data/node_modules/jquery/src/offset.js +219 -0
- data/node_modules/jquery/src/outro.js +2 -0
- data/node_modules/jquery/src/queue.js +144 -0
- data/node_modules/jquery/src/queue/delay.js +22 -0
- data/node_modules/jquery/src/selector-sizzle.js +14 -0
- data/node_modules/jquery/src/selector.js +1 -0
- data/node_modules/jquery/src/serialize.js +125 -0
- data/node_modules/jquery/src/support.js +63 -0
- data/node_modules/jquery/src/traversing.js +179 -0
- data/node_modules/jquery/src/traversing/findFilter.js +100 -0
- data/node_modules/jquery/src/traversing/var/dir.js +20 -0
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/node_modules/jquery/src/traversing/var/siblings.js +15 -0
- data/node_modules/jquery/src/var/class2type.js +5 -0
- data/node_modules/jquery/src/var/concat.js +5 -0
- data/node_modules/jquery/src/var/deletedIds.js +3 -0
- data/node_modules/jquery/src/var/document.js +3 -0
- data/node_modules/jquery/src/var/documentElement.js +5 -0
- data/node_modules/jquery/src/var/hasOwn.js +5 -0
- data/node_modules/jquery/src/var/indexOf.js +5 -0
- data/node_modules/jquery/src/var/pnum.js +3 -0
- data/node_modules/jquery/src/var/push.js +5 -0
- data/node_modules/jquery/src/var/rcssNum.js +7 -0
- data/node_modules/jquery/src/var/rnotwhite.js +3 -0
- data/node_modules/jquery/src/var/slice.js +5 -0
- data/node_modules/jquery/src/var/support.js +5 -0
- data/node_modules/jquery/src/var/toString.js +5 -0
- data/node_modules/jquery/src/wrap.js +77 -0
- metadata +111 -19
- data/app/assets/images/govuk_publishing_components/favicon-test.png +0 -0
- data/app/assets/stylesheets/govuk_publishing_components/admin_styles_ie8.scss +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_touch-friendly-links.scss +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ee32f536043a1a2f64756b001e8461fc1d9c1115224355d5c4df4e5e85345fb
|
4
|
+
data.tar.gz: ab008670e129c580ad58822896f218a3d310aba562ffa9bbad94e1ddc2cada38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 478e64833260a3752fe680760bdfcb1b227ac8cd9cf3cacb53de5e76d8a2fc4588b1d631f223029c033e47caae2eba1abd667faf544b9b288a177fc354ba3039
|
7
|
+
data.tar.gz: f58a472db124e4eef3ec5f79c1087d2e112d22d4150b80cf98ba2e5d030861ad2718655c91e48835a67bdec4da05089c4fb05fac938398d3f850b2aeb09d460b
|
Binary file
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This adds in javascript that initialiases components and dependencies
|
2
|
+
// that would normally be provided by slimmer
|
3
|
+
//= require jquery/dist/jquery
|
4
|
+
//= require govuk/modules
|
5
|
+
|
6
|
+
$(document).ready(function () {
|
7
|
+
'use strict'
|
8
|
+
|
9
|
+
GOVUK.modules.start()
|
10
|
+
|
11
|
+
// Static has a Toggle module in here we have a GemToggle module, we can't
|
12
|
+
// easily change govspeak to use GemToggle but we can use the GemToggle module
|
13
|
+
var gemToggle = new GOVUK.Modules.GemToggle();
|
14
|
+
gemToggle.start($("[data-module=toggle]"));
|
15
|
+
})
|
@@ -1,32 +1,35 @@
|
|
1
1
|
// This file contains the styles for the Component Guide.
|
2
2
|
|
3
|
-
|
4
|
-
@import "
|
5
|
-
@import "
|
6
|
-
@import "
|
7
|
-
@import "
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
.govuk-component-guide-wrapper {
|
12
|
-
padding-bottom: $gutter * 1.5;
|
3
|
+
@import "govuk_publishing_components/components/helpers/govuk-frontend-settings";
|
4
|
+
@import "govuk-frontend/settings/all";
|
5
|
+
@import "govuk-frontend/tools/all";
|
6
|
+
@import "govuk-frontend/helpers/all";
|
7
|
+
@import "govuk-frontend/core/all";
|
8
|
+
|
9
|
+
.component-guide-wrapper {
|
10
|
+
padding-bottom: $govuk-gutter * 1.5;
|
13
11
|
}
|
14
12
|
|
15
13
|
.component-list {
|
16
|
-
|
14
|
+
@include govuk-text-colour;
|
15
|
+
@extend %govuk-list--bullet;
|
17
16
|
|
18
17
|
li {
|
19
|
-
@include
|
20
|
-
margin-bottom: $gutter-half;
|
18
|
+
@include govuk-font($size: 19);
|
19
|
+
margin-bottom: $govuk-gutter-half;
|
20
|
+
}
|
21
|
+
|
22
|
+
p {
|
23
|
+
margin: 0;
|
21
24
|
}
|
22
25
|
}
|
23
26
|
|
24
27
|
.component-body {
|
25
|
-
margin-bottom: $gutter * 1.5;
|
28
|
+
margin-bottom: $govuk-gutter * 1.5;
|
26
29
|
}
|
27
30
|
|
28
31
|
.component-doc {
|
29
|
-
@include
|
32
|
+
@include govuk-font($size: 16);
|
30
33
|
|
31
34
|
.component-doc-h2:first-child {
|
32
35
|
margin-top: 0;
|
@@ -34,70 +37,63 @@ $border-color: #ccc;
|
|
34
37
|
}
|
35
38
|
|
36
39
|
.component-violation {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
+
@include govuk-text-colour;
|
41
|
+
border: 3px solid $govuk-error-colour;
|
42
|
+
margin: 0 0 $govuk-gutter;
|
43
|
+
padding: $govuk-gutter $govuk-gutter;
|
40
44
|
|
41
45
|
.component-violation__title {
|
42
|
-
@include
|
46
|
+
@include govuk-font($size: 24, $weight: bold);
|
47
|
+
margin: 0;
|
43
48
|
}
|
44
49
|
|
45
50
|
.component-violation__link {
|
46
51
|
display: block;
|
47
|
-
@include
|
48
|
-
color: $error-colour;
|
49
|
-
margin: $gutter-half 0;
|
52
|
+
@include govuk-font($size: 19, $weight: bold);
|
53
|
+
color: $govuk-error-colour;
|
54
|
+
margin: $govuk-gutter-half 0;
|
50
55
|
}
|
51
56
|
}
|
52
57
|
|
53
58
|
.component-doc-h2 {
|
54
|
-
@include
|
55
|
-
|
59
|
+
@include govuk-text-colour;
|
60
|
+
@include govuk-font($size: 27, $weight: bold);
|
61
|
+
margin: ($govuk-gutter * 1.5) 0 $govuk-gutter;
|
56
62
|
|
57
63
|
small {
|
58
|
-
@include
|
64
|
+
@include govuk-font($size: 16, $weight: bold);
|
59
65
|
}
|
60
66
|
}
|
61
67
|
|
62
68
|
.component-doc-h3 {
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
.component-guide-preview {
|
68
|
-
padding: 30px 0;
|
69
|
-
|
70
|
-
.preview-title {
|
71
|
-
margin-bottom: 1em;
|
72
|
-
@include bold-16;
|
73
|
-
|
74
|
-
a {
|
75
|
-
color: $black;
|
76
|
-
}
|
77
|
-
}
|
69
|
+
@include govuk-text-colour;
|
70
|
+
margin: $govuk-gutter 0 $govuk-gutter-half;
|
71
|
+
@include govuk-font($size: 19, $weight: bold);
|
78
72
|
}
|
79
73
|
|
80
74
|
.component-call {
|
81
|
-
margin-top: $gutter-half;
|
82
|
-
margin-bottom: $gutter-half;
|
75
|
+
margin-top: $govuk-gutter-half;
|
76
|
+
margin-bottom: $govuk-gutter-half;
|
83
77
|
|
84
78
|
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
85
79
|
font-size: 16px;
|
86
80
|
line-height: 1.5;
|
87
|
-
border: 1px solid $border-colour;
|
81
|
+
border: 1px solid $govuk-border-colour;
|
88
82
|
|
89
83
|
&[contenteditable]:hover {
|
90
84
|
cursor: text;
|
91
85
|
}
|
92
86
|
|
93
87
|
&[contenteditable]:focus {
|
94
|
-
outline: 3px solid $focus-colour;
|
88
|
+
outline: 3px solid $govuk-focus-colour;
|
95
89
|
}
|
96
90
|
|
97
91
|
> pre {
|
98
|
-
|
92
|
+
margin: 0;
|
93
|
+
padding: $govuk-gutter;
|
99
94
|
max-height: 300px;
|
100
95
|
overflow: auto;
|
96
|
+
font-family: inherit;
|
101
97
|
|
102
98
|
> code {
|
103
99
|
font-family: inherit;
|
@@ -119,26 +115,26 @@ $border-color: #ccc;
|
|
119
115
|
}
|
120
116
|
|
121
117
|
&.dark-background {
|
122
|
-
background-color:
|
118
|
+
background-color: govuk-colour("blue");
|
123
119
|
}
|
124
120
|
|
125
121
|
&.component-output {
|
126
122
|
padding: 0;
|
127
123
|
}
|
128
124
|
|
129
|
-
padding: ($gutter * 1.5) $gutter $gutter;
|
130
|
-
border: 1px solid $border-colour;
|
125
|
+
padding: ($govuk-gutter * 1.5) $govuk-gutter $govuk-gutter;
|
126
|
+
border: 1px solid $govuk-border-colour;
|
131
127
|
position: relative;
|
132
128
|
|
133
129
|
&:before {
|
134
|
-
@include
|
130
|
+
@include govuk-font($size: 14);
|
135
131
|
content: attr(data-content);
|
136
132
|
position: absolute;
|
137
133
|
top: 0;
|
138
134
|
left: 0;
|
139
135
|
padding: 0.21053em 0.78947em;
|
140
|
-
background: $border-colour;
|
141
|
-
color:
|
136
|
+
background: $govuk-border-colour;
|
137
|
+
color: govuk-colour("black");
|
142
138
|
font-weight: bold;
|
143
139
|
}
|
144
140
|
}
|
@@ -154,24 +150,31 @@ $border-color: #ccc;
|
|
154
150
|
|
155
151
|
.component-guide-preview--violation,
|
156
152
|
.component-guide-preview--warning {
|
157
|
-
|
158
|
-
|
153
|
+
@include govuk-text-colour;
|
154
|
+
margin-top: $govuk-gutter-half;
|
155
|
+
|
156
|
+
@include govuk-font($size: 19);
|
159
157
|
|
160
158
|
&:empty {
|
161
159
|
display: none;
|
162
160
|
}
|
163
161
|
|
164
162
|
h3 {
|
165
|
-
@include
|
163
|
+
@include govuk-font($size: 19, $weight: bold);
|
166
164
|
}
|
167
165
|
|
168
166
|
p,
|
169
167
|
h3 {
|
170
|
-
margin-
|
168
|
+
margin-top: 0;
|
169
|
+
margin-bottom: $govuk-gutter / 2;
|
170
|
+
}
|
171
|
+
|
172
|
+
h3 a {
|
173
|
+
@extend %govuk-link;
|
171
174
|
}
|
172
175
|
|
173
176
|
h3:not(:first-child) {
|
174
|
-
margin-top: $gutter;
|
177
|
+
margin-top: $govuk-gutter;
|
175
178
|
}
|
176
179
|
|
177
180
|
.selector {
|
@@ -180,32 +183,33 @@ $border-color: #ccc;
|
|
180
183
|
}
|
181
184
|
|
182
185
|
.component-guide-preview--warning {
|
183
|
-
border-color:
|
186
|
+
border-color: govuk-colour("yellow");
|
184
187
|
|
185
188
|
&:before {
|
186
|
-
background-color:
|
189
|
+
background-color: govuk-colour("yellow");
|
187
190
|
}
|
188
191
|
}
|
189
192
|
|
190
193
|
.component-guide-preview--violation {
|
191
|
-
border-color:
|
194
|
+
border-color: govuk-colour("red");
|
192
195
|
|
193
196
|
&:before {
|
194
|
-
background-color:
|
195
|
-
color:
|
197
|
+
background-color: govuk-colour("red");
|
198
|
+
color: govuk-colour("white");
|
196
199
|
}
|
197
200
|
}
|
198
201
|
|
199
202
|
.examples {
|
200
203
|
.component-example {
|
201
|
-
margin: 0 0 $gutter * 1.5;
|
204
|
+
margin: 0 0 $govuk-gutter * 1.5;
|
202
205
|
|
203
206
|
.example-title {
|
204
|
-
@include
|
205
|
-
|
207
|
+
@include govuk-text-colour;
|
208
|
+
@include govuk-font($size: 24, $weight: bold);
|
209
|
+
margin: $govuk-gutter-half 0;
|
206
210
|
|
207
211
|
small {
|
208
|
-
@include
|
212
|
+
@include govuk-font($size: 16, $weight: bold);
|
209
213
|
}
|
210
214
|
}
|
211
215
|
}
|
@@ -213,7 +217,7 @@ $border-color: #ccc;
|
|
213
217
|
|
214
218
|
// Preview Page Styling
|
215
219
|
html {
|
216
|
-
background:
|
220
|
+
background: govuk-colour("white");
|
217
221
|
}
|
218
222
|
|
219
223
|
.hide-header-and-footer {
|
@@ -228,15 +232,17 @@ html {
|
|
228
232
|
}
|
229
233
|
|
230
234
|
.component-guide-preview-page {
|
231
|
-
padding: ($gutter * 1.5) 0;
|
235
|
+
padding: ($govuk-gutter * 1.5) 0;
|
232
236
|
position: relative;
|
233
237
|
|
234
238
|
.preview-title {
|
239
|
+
margin-top: 0;
|
235
240
|
margin-bottom: 1em;
|
236
|
-
@include
|
241
|
+
@include govuk-font($size: 16, $weight: bold);
|
237
242
|
|
238
243
|
a {
|
239
|
-
|
244
|
+
@include govuk-link-common;
|
245
|
+
@include govuk-link-style-text;
|
240
246
|
}
|
241
247
|
}
|
242
248
|
}
|
@@ -252,20 +258,20 @@ html {
|
|
252
258
|
// Rouge syntax highlighting
|
253
259
|
// Based on https://github.com/alphagov/tech-docs-template/blob/master/template/source/stylesheets/palette/_syntax-highlighting.scss
|
254
260
|
|
255
|
-
$code-00: scale-color(
|
261
|
+
$code-00: scale-color(govuk-colour("grey-4"), $lightness:50%); // Default Background
|
256
262
|
$code-01: #f5f5f5; // Lighter Background (Unused)
|
257
263
|
$code-02: #bfc1c3; // Selection Background
|
258
|
-
$code-03: darken($secondary-text-colour, 2%); // Comments, Invisibles, Line Highlighting
|
264
|
+
$code-03: darken($govuk-secondary-text-colour, 2%); // Comments, Invisibles, Line Highlighting
|
259
265
|
$code-04: #e8e8e8; // Dark Foreground (Unused)
|
260
|
-
$code-05: $text-colour; // Default Foreground, Caret, Delimiters, Operators
|
266
|
+
$code-05: $govuk-text-colour; // Default Foreground, Caret, Delimiters, Operators
|
261
267
|
$code-06: #ffffff; // Light Foreground (Unused)
|
262
268
|
$code-07: #ffffff; // Light Background (Unused)
|
263
269
|
|
264
270
|
$code-08: #ae5f3d; // Variables, XML Tags, Markup Link Text, Markup Lists
|
265
271
|
$code-09: #0E7754; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
266
272
|
$code-0a: #4C4077; // Classes, Markup Bold, Search Text Background
|
267
|
-
$code-0b:
|
268
|
-
$code-0c:
|
273
|
+
$code-0b: govuk-colour("blue"); // Strings, Inherited Class, Markup Code
|
274
|
+
$code-0c: govuk-colour("blue"); // Support, Regular Expressions, Escape Characters, Markup Quotes
|
269
275
|
$code-0d: #4C4077; // Functions, Methods, Attribute IDs, Headings
|
270
276
|
$code-0e: #a71d5d; // Keywords, Storage, Selector, Markup Italic
|
271
277
|
$code-0f: #C92424; // Deprecated, Opening/Closing Embedded Language Tags e.g. <?php ?> (Unused)
|
@@ -1,3 +1,7 @@
|
|
1
|
+
// Include all of the GOV.UK Frontend styles. This includes fonts, and individual components.
|
2
|
+
@import "components/helpers/govuk-frontend-settings";
|
3
|
+
@import "govuk-frontend/all";
|
4
|
+
|
1
5
|
// This is the file that the application needs to include in order to use
|
2
6
|
// the components.
|
3
7
|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
@import "design-patterns/breadcrumbs";
|
2
2
|
@import "mixins/back-arrow";
|
3
3
|
@import "mixins/media-down";
|
4
|
-
@import "mixins/touch-friendly-links";
|
5
4
|
|
6
5
|
.gem-c-breadcrumbs {
|
7
6
|
// reset the default browser styles
|
@@ -11,11 +10,28 @@
|
|
11
10
|
}
|
12
11
|
|
13
12
|
@include breadcrumbs;
|
14
|
-
|
13
|
+
|
14
|
+
.gem-c-breadcrumbs__item {
|
15
|
+
@include govuk-text-colour;
|
16
|
+
}
|
17
|
+
|
18
|
+
.gem-c-breadcrumbs__link {
|
19
|
+
@include govuk-link-common;
|
20
|
+
@include govuk-link-style-text;
|
21
|
+
}
|
15
22
|
|
16
23
|
.gem-c-breadcrumbs--current {
|
17
|
-
|
18
|
-
|
24
|
+
&:link,
|
25
|
+
&:visited,
|
26
|
+
&:hover,
|
27
|
+
&:active {
|
28
|
+
color: $secondary-text-colour;
|
29
|
+
text-decoration: none;
|
30
|
+
}
|
31
|
+
|
32
|
+
&:focus {
|
33
|
+
text-decoration: none;
|
34
|
+
}
|
19
35
|
}
|
20
36
|
|
21
37
|
@include media-down(mobile) {
|
@@ -39,5 +55,10 @@
|
|
39
55
|
|
40
56
|
.gem-c-breadcrumbs--current.gem-c-breadcrumbs--inverse,
|
41
57
|
.gem-c-breadcrumbs .gem-c-breadcrumbs--inverse {
|
42
|
-
|
58
|
+
&:link,
|
59
|
+
&:visited,
|
60
|
+
&:hover,
|
61
|
+
&:active {
|
62
|
+
color: $white;
|
63
|
+
}
|
43
64
|
}
|
@@ -4,12 +4,32 @@
|
|
4
4
|
// Always render the contents list above a
|
5
5
|
// back to contents link
|
6
6
|
position: relative;
|
7
|
-
margin
|
7
|
+
margin: 0 0 $gutter-two-thirds 0;
|
8
8
|
z-index: 1;
|
9
9
|
background: $white;
|
10
10
|
box-shadow: 0 20px 15px -10px $white;
|
11
11
|
}
|
12
12
|
|
13
|
+
.gem-c-contents-list__title {
|
14
|
+
@include govuk-text-colour;
|
15
|
+
@include govuk-font($size: 16, $weight: regular, $line-height: 1.5);
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.gem-c-contents-list__list,
|
20
|
+
.gem-c-contents-list__nested-list {
|
21
|
+
@include govuk-text-colour;
|
22
|
+
@include govuk-font($size: 16);
|
23
|
+
margin: 0;
|
24
|
+
padding: 0;
|
25
|
+
list-style-type: none;
|
26
|
+
}
|
27
|
+
|
28
|
+
.gem-c-contents-list__link {
|
29
|
+
@include govuk-link-common;
|
30
|
+
@include govuk-link-style-default;
|
31
|
+
}
|
32
|
+
|
13
33
|
.gem-c-contents-list--no-underline {
|
14
34
|
.gem-c-contents-list__link {
|
15
35
|
text-decoration: none;
|