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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f7e29e171f3a719dcc43d1470a99ded731cc407
4
- data.tar.gz: 0ef85b576091648e8779abc142ac523d358a6660
3
+ metadata.gz: dec93c7b5c248d5af2dec1cb9beeb1e3dc2de387
4
+ data.tar.gz: 9ad26aa27966d020e417a605a255b2f5ecb592c2
5
5
  SHA512:
6
- metadata.gz: 6b1d7075816ead4ec7dcdee8573a329a523c4e6d7ff8579e2e338f6c9014c98927a33946744e8cd431b93381a402ccf765f26b72cee16b6ff2465d06ffd73858
7
- data.tar.gz: d22ceb97296f12f9ab556e507403a132a61d1f9af7b030a644a6851c8818e8fdbff25277c4adf383037f51c72b22ead629ec2bb6df67e2553a5bfbda37f7b2ec
6
+ metadata.gz: 96bf1e39c33a47d071dc797288e65c7886befff5e1cd36c877a64505cbbb6d2feda761fa3aa4b31ef6f6efbda233ffa178a4e20b4300fe0f5a675eb05a7d82ac
7
+ data.tar.gz: 8b02325c83689818c65a234d9d51b326de5ffab083b129ef8a4277ab1ee29e0b2ae9a5dc4cc4a0a7a4a185db3576254e6c463006252c590a9299adf28b3091ed
@@ -1,3 +1,8 @@
1
+ # 4.6.0
2
+
3
+ - Add breadcrumb styles, separator images and documentation (PR #236)
4
+ - Add fallback image for the back link (PR #235)
5
+
1
6
  # 4.5.0
2
7
 
3
8
  - Find and auto-start JavaScript modules from markup: `data-module="module-name"`(PR #227)
@@ -35,8 +35,8 @@ module.exports = function(grunt) {
35
35
  'javascripts/**/*.js'
36
36
  ],
37
37
  options: {
38
- specs: 'spec/unit/**/*Spec.js',
39
- helpers: 'spec/unit/*Helper.js'
38
+ specs: 'spec/unit/**/*.spec.js',
39
+ helpers: 'spec/unit/*.helper.js'
40
40
  }
41
41
  }
42
42
  },
@@ -1 +1 @@
1
- 4.5.0
1
+ 4.6.0
@@ -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
@@ -16,16 +16,16 @@ var manifest = {
16
16
  '../../javascripts/govuk/analytics/download-link-tracker.js'
17
17
  ],
18
18
  test : [
19
- '../unit/ModulesSpec.js',
20
- '../unit/Modules/AutoTrackEventSpec.js',
21
- '../unit/MultivariateTestSpec.js',
22
- '../unit/PrimaryLinksSpec.js',
23
- '../unit/StickAtTopWhenScrollingSpec.js',
24
- '../unit/SelectionButtonSpec.js',
25
- '../unit/analytics/GoogleAnalyticsUniversalTrackerSpec.js',
26
- '../unit/analytics/AnalyticsSpec.js',
27
- '../unit/analytics/ErrorTrackingSpec.js',
28
- '../unit/analytics/ExternalLinkTrackerSpec.js',
29
- '../unit/analytics/DownloadLinkTrackerSpec.js'
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
  };
@@ -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.5.0
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: 2015-11-17 00:00:00.000000000 Z
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/ModulesSpec.js
247
- - app/assets/spec/unit/MultivariateTestSpec.js
248
- - app/assets/spec/unit/PrimaryLinksSpec.js
249
- - app/assets/spec/unit/SelectionButtonSpec.js
250
- - app/assets/spec/unit/StickAtTopWhenScrollingSpec.js
251
- - app/assets/spec/unit/analytics/AnalyticsSpec.js
252
- - app/assets/spec/unit/analytics/DownloadLinkTrackerSpec.js
253
- - app/assets/spec/unit/analytics/ErrorTrackingSpec.js
254
- - app/assets/spec/unit/analytics/ExternalLinkTrackerSpec.js
255
- - app/assets/spec/unit/analytics/GoogleAnalyticsUniversalTrackerSpec.js
256
- - app/assets/spec/unit/modules/AutoTrackEventSpec.js
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