govuk_frontend_toolkit 5.0.1 → 5.0.2
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 +4 -0
- data/app/assets/VERSION.txt +1 -1
- data/app/assets/docs/mixins.md +6 -14
- data/app/assets/stylesheets/design-patterns/_alpha-beta.scss +16 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d64456f876457107c395006bc29a8fe4c4dfe92d
|
4
|
+
data.tar.gz: f3d01752ab0e94c616e59acaedb9753c0fa16dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ca145a288dc607c8069b216d0e150de3b67e0af63da0d41ebeba50f50bcdd1ddbe35544e93312f5d53071857881df67a356214a3fcc03f59a926d2d46c3bf2
|
7
|
+
data.tar.gz: 010aa6e8cbe432307abc12d89087ceba77793dd2c15c460f9573c0875cb4f9e838f208ac860041bd83bd42462de3fc5bc40b83ff7e091ea42f9f130f24037504
|
data/app/assets/CHANGELOG.md
CHANGED
data/app/assets/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.0.
|
1
|
+
5.0.2
|
data/app/assets/docs/mixins.md
CHANGED
@@ -534,16 +534,12 @@ A mixin to create a GOV.UK Phase banner, with alpha/beta tag inside.
|
|
534
534
|
|
535
535
|
#### Description
|
536
536
|
|
537
|
-
`@mixin phase-banner(
|
538
|
-
|
539
|
-
`$state` is either `alpha` or `beta`.
|
540
|
-
|
541
|
-
`$state` sets the background colour of the phase tag to the appropriate alpha or beta colour.
|
537
|
+
`@mixin phase-banner()`
|
542
538
|
|
543
539
|
##### Phase banner - Alpha
|
544
540
|
|
545
541
|
.phase-banner {
|
546
|
-
@include phase-banner(
|
542
|
+
@include phase-banner();
|
547
543
|
}
|
548
544
|
|
549
545
|
<div class="phase-banner">
|
@@ -556,7 +552,7 @@ A mixin to create a GOV.UK Phase banner, with alpha/beta tag inside.
|
|
556
552
|
##### Phase banner - Beta
|
557
553
|
|
558
554
|
.phase-banner {
|
559
|
-
@include phase-banner(
|
555
|
+
@include phase-banner();
|
560
556
|
}
|
561
557
|
|
562
558
|
<div class="phase-banner">
|
@@ -572,16 +568,12 @@ A mixin to create an alpha/beta tag.
|
|
572
568
|
|
573
569
|
#### Description
|
574
570
|
|
575
|
-
`@mixin phase-tag(
|
576
|
-
|
577
|
-
`$state` is either `alpha` or `beta`.
|
578
|
-
|
579
|
-
`$state` sets the background colour of the phase tag to the appropriate alpha or beta colour.
|
571
|
+
`@mixin phase-tag()`
|
580
572
|
|
581
573
|
##### Phase tag - Alpha
|
582
574
|
|
583
575
|
.alpha-tag{
|
584
|
-
@include phase-tag(
|
576
|
+
@include phase-tag();
|
585
577
|
}
|
586
578
|
<h2>
|
587
579
|
Apply using the new service <span class="alpha-tag">ALPHA</span>
|
@@ -590,7 +582,7 @@ A mixin to create an alpha/beta tag.
|
|
590
582
|
##### Phase tag - Beta
|
591
583
|
|
592
584
|
.beta-tag{
|
593
|
-
@include phase-tag(
|
585
|
+
@include phase-tag();
|
594
586
|
}
|
595
587
|
<h2>
|
596
588
|
Apply using the new service <span class="beta-tag">BETA</span>
|
@@ -6,10 +6,15 @@
|
|
6
6
|
// Phase banner usage:
|
7
7
|
//
|
8
8
|
// .phase-banner {
|
9
|
-
// @include phase-banner(
|
9
|
+
// @include phase-banner();
|
10
10
|
// }
|
11
11
|
|
12
|
-
@mixin phase-banner($state:
|
12
|
+
@mixin phase-banner($state: '') {
|
13
|
+
|
14
|
+
@if $state != '' {
|
15
|
+
@warn 'Passing a phase to the alpha/beta banners is deprecated';
|
16
|
+
}
|
17
|
+
|
13
18
|
padding: 10px 0 8px;
|
14
19
|
|
15
20
|
@include media(tablet) {
|
@@ -26,7 +31,7 @@
|
|
26
31
|
}
|
27
32
|
|
28
33
|
.phase-tag {
|
29
|
-
@include phase-tag(
|
34
|
+
@include phase-tag();
|
30
35
|
}
|
31
36
|
|
32
37
|
span {
|
@@ -37,17 +42,17 @@
|
|
37
42
|
|
38
43
|
// Phase tag usage:
|
39
44
|
//
|
40
|
-
// Alpha
|
45
|
+
// Alpha or beta
|
41
46
|
// .phase-tag {
|
42
47
|
// @include phase-tag;
|
43
48
|
// }
|
44
|
-
//
|
45
|
-
// Beta
|
46
|
-
// .phase-tag {
|
47
|
-
// @include phase-tag(beta);
|
48
|
-
// }
|
49
49
|
|
50
|
-
@mixin phase-tag($state:
|
50
|
+
@mixin phase-tag($state: '') {
|
51
|
+
|
52
|
+
@if $state != '' {
|
53
|
+
@warn 'Passing a phase to the phase-tag mixin is deprecated';
|
54
|
+
}
|
55
|
+
|
51
56
|
@include inline-block;
|
52
57
|
margin: 0 8px 0 0;
|
53
58
|
padding: 2px 5px 0;
|
@@ -58,9 +63,5 @@
|
|
58
63
|
text-decoration: none;
|
59
64
|
|
60
65
|
color: $white;
|
61
|
-
|
62
|
-
background-color: $alpha-colour;
|
63
|
-
} @else if $state == beta {
|
64
|
-
background-color: $beta-colour;
|
65
|
-
}
|
66
|
+
background-color: $govuk-blue;
|
66
67
|
}
|
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: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Government Digital Service
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|