govuk_frontend_toolkit 4.5.0 → 4.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/CHANGELOG.md +5 -0
- data/app/assets/Gruntfile.js +2 -2
- data/app/assets/VERSION.txt +1 -1
- data/app/assets/docs/mixins.md +29 -0
- data/app/assets/images/icon-arrow-left.png +0 -0
- data/app/assets/images/separator-2x.png +0 -0
- data/app/assets/images/separator.png +0 -0
- data/app/assets/spec/manifest.js +11 -11
- data/app/assets/spec/unit/analytics/{AnalyticsSpec.js → analytics.spec.js} +0 -0
- data/app/assets/spec/unit/analytics/{DownloadLinkTrackerSpec.js → download-link-tracker.spec.js} +0 -0
- data/app/assets/spec/unit/analytics/{ErrorTrackingSpec.js → error-tracking.spec.js} +0 -0
- data/app/assets/spec/unit/analytics/{ExternalLinkTrackerSpec.js → external-link-tracker.spec.js} +0 -0
- data/app/assets/spec/unit/analytics/{GoogleAnalyticsUniversalTrackerSpec.js → google-analytics-universal-tracker.spec.js} +0 -0
- data/app/assets/spec/unit/{ModulesSpec.js → modules.spec.js} +0 -0
- data/app/assets/spec/unit/modules/{AutoTrackEventSpec.js → auto-track-event.spec.js} +0 -0
- data/app/assets/spec/unit/{MultivariateTestSpec.js → multivariate-test.spec.js} +0 -0
- data/app/assets/spec/unit/{PrimaryLinksSpec.js → primary-links.spec.js} +0 -0
- data/app/assets/spec/unit/{SelectionButtonSpec.js → selection-button.spec.js} +0 -0
- data/app/assets/spec/unit/{StickAtTopWhenScrollingSpec.js → stick-at-top-when-scrolling.spec.js} +0 -0
- data/app/assets/stylesheets/design-patterns/_breadcrumbs.scss +52 -0
- metadata +17 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec93c7b5c248d5af2dec1cb9beeb1e3dc2de387
|
4
|
+
data.tar.gz: 9ad26aa27966d020e417a605a255b2f5ecb592c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96bf1e39c33a47d071dc797288e65c7886befff5e1cd36c877a64505cbbb6d2feda761fa3aa4b31ef6f6efbda233ffa178a4e20b4300fe0f5a675eb05a7d82ac
|
7
|
+
data.tar.gz: 8b02325c83689818c65a234d9d51b326de5ffab083b129ef8a4277ab1ee29e0b2ae9a5dc4cc4a0a7a4a185db3576254e6c463006252c590a9299adf28b3091ed
|
data/app/assets/CHANGELOG.md
CHANGED
data/app/assets/Gruntfile.js
CHANGED
data/app/assets/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
1
|
+
4.6.0
|
data/app/assets/docs/mixins.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
* [`_typography.scss`](#typography)
|
8
8
|
* [`design-patterns/_buttons.scss`](#buttons)
|
9
9
|
* [`design-patterns/_alpha-beta.scss`](#alpha-beta)
|
10
|
+
* [`design-patterns/_breadcrumbs.scss`](#breadcrumbs)
|
10
11
|
|
11
12
|
### <a id="grid-layout"></a>Grid layout
|
12
13
|
|
@@ -624,3 +625,31 @@ A mixin to create an alpha/beta tag.
|
|
624
625
|
<h2>
|
625
626
|
Apply using the new service <span class="beta-tag">BETA</span>
|
626
627
|
</h2>
|
628
|
+
|
629
|
+
### <a id="breadcrumbs"></a> Breadcrumbs
|
630
|
+
|
631
|
+
A mixin for creating breadcrumb navigation, showing page hierarchy in the GOV.UK style.
|
632
|
+
|
633
|
+
#### Description
|
634
|
+
|
635
|
+
`@mixin breadcrumbs`
|
636
|
+
|
637
|
+
#### Usage
|
638
|
+
|
639
|
+
.breadcrumbs {
|
640
|
+
@include breadcrumbs;
|
641
|
+
}
|
642
|
+
|
643
|
+
<div class="breadcrumbs">
|
644
|
+
<ol role="breadcrumbs">
|
645
|
+
<li>
|
646
|
+
<a href="/">Home</a>
|
647
|
+
</li>
|
648
|
+
<li>
|
649
|
+
<a href="/section-name">Section name</a>
|
650
|
+
</li>
|
651
|
+
<li>
|
652
|
+
Page name
|
653
|
+
</li>
|
654
|
+
</ol>
|
655
|
+
</div>
|
Binary file
|
Binary file
|
Binary file
|
data/app/assets/spec/manifest.js
CHANGED
@@ -16,16 +16,16 @@ var manifest = {
|
|
16
16
|
'../../javascripts/govuk/analytics/download-link-tracker.js'
|
17
17
|
],
|
18
18
|
test : [
|
19
|
-
'../unit/
|
20
|
-
'../unit/Modules/
|
21
|
-
'../unit/
|
22
|
-
'../unit/
|
23
|
-
'../unit/
|
24
|
-
'../unit/
|
25
|
-
'../unit/analytics/
|
26
|
-
'../unit/analytics/
|
27
|
-
'../unit/analytics/
|
28
|
-
'../unit/analytics/
|
29
|
-
'../unit/analytics/
|
19
|
+
'../unit/modules.spec.js',
|
20
|
+
'../unit/Modules/auto-track-event.spec.js',
|
21
|
+
'../unit/multivariate-test.spec.js',
|
22
|
+
'../unit/primary-links.spec.js',
|
23
|
+
'../unit/stick-at-top-when-scrolling.spec.js',
|
24
|
+
'../unit/selection-button.spec.js',
|
25
|
+
'../unit/analytics/google-analytics-universal-tracker.spec.js',
|
26
|
+
'../unit/analytics/analytics.spec.js',
|
27
|
+
'../unit/analytics/error-tracking.spec.js',
|
28
|
+
'../unit/analytics/external-link-tracker.spec.js',
|
29
|
+
'../unit/analytics/download-link-tracker.spec.js'
|
30
30
|
]
|
31
31
|
};
|
File without changes
|
data/app/assets/spec/unit/analytics/{DownloadLinkTrackerSpec.js → download-link-tracker.spec.js}
RENAMED
File without changes
|
File without changes
|
data/app/assets/spec/unit/analytics/{ExternalLinkTrackerSpec.js → external-link-tracker.spec.js}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app/assets/spec/unit/{StickAtTopWhenScrollingSpec.js → stick-at-top-when-scrolling.spec.js}
RENAMED
File without changes
|
@@ -0,0 +1,52 @@
|
|
1
|
+
@import "../_colours";
|
2
|
+
@import "../_typography";
|
3
|
+
@import "../_shims";
|
4
|
+
@import "../_url-helpers";
|
5
|
+
|
6
|
+
// Breadcrumbs usage:
|
7
|
+
//
|
8
|
+
// .breadcrumbs {
|
9
|
+
// @include breadcrumbs;
|
10
|
+
// }
|
11
|
+
|
12
|
+
@mixin breadcrumbs {
|
13
|
+
|
14
|
+
padding-top: 0.75em;
|
15
|
+
padding-bottom: 0.75em;
|
16
|
+
|
17
|
+
ol {
|
18
|
+
@extend %contain-floats;
|
19
|
+
}
|
20
|
+
|
21
|
+
li {
|
22
|
+
@include core-16;
|
23
|
+
float: left;
|
24
|
+
|
25
|
+
background-image: file-url("separator.png");
|
26
|
+
@include device-pixel-ratio() {
|
27
|
+
background-image: file-url("separator-2x.png");
|
28
|
+
background-size: 6px 11px;
|
29
|
+
}
|
30
|
+
|
31
|
+
background-position: 0% 50%;
|
32
|
+
background-repeat: no-repeat;
|
33
|
+
|
34
|
+
list-style: none;
|
35
|
+
|
36
|
+
margin-left: 0.6em;
|
37
|
+
margin-bottom: 0.4em;
|
38
|
+
padding-left: 0.9em;
|
39
|
+
|
40
|
+
&:first-child {
|
41
|
+
background-image: none;
|
42
|
+
margin-left: 0;
|
43
|
+
padding-left: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
}
|
47
|
+
|
48
|
+
a {
|
49
|
+
color: $text-colour;
|
50
|
+
}
|
51
|
+
|
52
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_frontend_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bradley Wright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -169,6 +169,7 @@ files:
|
|
169
169
|
- app/assets/images/external-links/external-link-black-12x12.png
|
170
170
|
- app/assets/images/external-links/external-link-black-24x24.png
|
171
171
|
- app/assets/images/external-links/external-link.png
|
172
|
+
- app/assets/images/icon-arrow-left.png
|
172
173
|
- app/assets/images/icon-calendar-2x.png
|
173
174
|
- app/assets/images/icon-calendar.png
|
174
175
|
- app/assets/images/icon-file-download-2x.png
|
@@ -219,6 +220,8 @@ files:
|
|
219
220
|
- app/assets/images/player-icon-play.png
|
220
221
|
- app/assets/images/player-icon-rewind.png
|
221
222
|
- app/assets/images/player-icon-volume.png
|
223
|
+
- app/assets/images/separator-2x.png
|
224
|
+
- app/assets/images/separator.png
|
222
225
|
- app/assets/javascripts/govuk/analytics/analytics.js
|
223
226
|
- app/assets/javascripts/govuk/analytics/download-link-tracker.js
|
224
227
|
- app/assets/javascripts/govuk/analytics/error-tracking.js
|
@@ -243,17 +246,17 @@ files:
|
|
243
246
|
- app/assets/spec/support/console-runner.js
|
244
247
|
- app/assets/spec/support/load.js
|
245
248
|
- app/assets/spec/support/run_jasmine_test.js
|
246
|
-
- app/assets/spec/unit/
|
247
|
-
- app/assets/spec/unit/
|
248
|
-
- app/assets/spec/unit/
|
249
|
-
- app/assets/spec/unit/
|
250
|
-
- app/assets/spec/unit/
|
251
|
-
- app/assets/spec/unit/
|
252
|
-
- app/assets/spec/unit/
|
253
|
-
- app/assets/spec/unit/
|
254
|
-
- app/assets/spec/unit/
|
255
|
-
- app/assets/spec/unit/
|
256
|
-
- app/assets/spec/unit/
|
249
|
+
- app/assets/spec/unit/analytics/analytics.spec.js
|
250
|
+
- app/assets/spec/unit/analytics/download-link-tracker.spec.js
|
251
|
+
- app/assets/spec/unit/analytics/error-tracking.spec.js
|
252
|
+
- app/assets/spec/unit/analytics/external-link-tracker.spec.js
|
253
|
+
- app/assets/spec/unit/analytics/google-analytics-universal-tracker.spec.js
|
254
|
+
- app/assets/spec/unit/modules.spec.js
|
255
|
+
- app/assets/spec/unit/modules/auto-track-event.spec.js
|
256
|
+
- app/assets/spec/unit/multivariate-test.spec.js
|
257
|
+
- app/assets/spec/unit/primary-links.spec.js
|
258
|
+
- app/assets/spec/unit/selection-button.spec.js
|
259
|
+
- app/assets/spec/unit/stick-at-top-when-scrolling.spec.js
|
257
260
|
- app/assets/stylesheets/.gitkeep
|
258
261
|
- app/assets/stylesheets/_colours.scss
|
259
262
|
- app/assets/stylesheets/_conditionals.scss
|
@@ -267,6 +270,7 @@ files:
|
|
267
270
|
- app/assets/stylesheets/_typography.scss
|
268
271
|
- app/assets/stylesheets/_url-helpers.scss
|
269
272
|
- app/assets/stylesheets/design-patterns/_alpha-beta.scss
|
273
|
+
- app/assets/stylesheets/design-patterns/_breadcrumbs.scss
|
270
274
|
- app/assets/stylesheets/design-patterns/_buttons.scss
|
271
275
|
- app/assets/stylesheets/design-patterns/_media-player.scss
|
272
276
|
- govuk_frontend_toolkit.gemspec
|