govuk_elements_rails 1.1.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/vendor/assets/stylesheets/_govuk-elements.scss +3 -2
- data/vendor/assets/stylesheets/elements/_buttons.scss +3 -4
- data/vendor/assets/stylesheets/elements/_helpers.scss +3 -2
- data/vendor/assets/stylesheets/elements/_icons.scss +4 -4
- data/vendor/assets/stylesheets/elements/_shame.scss +14 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 643bf55d0d7667377783630c390da855b1db813e
|
4
|
+
data.tar.gz: 86d561fa47545f9ff7f65b3855ba8245d6665e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78c454d450a4f5790b8bb196ff06a404464d78371f5beb50e6a425f2ef29483adc7c0ecec9031e836ad238b7170c1e9e15afaa6694166de7fdd8f2f1811b96b9
|
7
|
+
data.tar.gz: aa2ae2205822da078bf3c65ad87440297b0fab899d98e0865d773422cb478d0cdf1f9c6b68d37499314afc0cd19869e3ab551f8b61585a3fbf7d76f7d23be65f
|
@@ -20,7 +20,7 @@
|
|
20
20
|
@import "design-patterns/breadcrumbs";
|
21
21
|
|
22
22
|
// Functions
|
23
|
-
|
23
|
+
@import "url-helpers"; // Function to output image-url, or prefixed path (Rails and Compass only)
|
24
24
|
|
25
25
|
// GOV.UK elements
|
26
26
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
// Base (unclassed HTML elements)
|
33
33
|
// These are predefined by govuk_template
|
34
34
|
// If you're not using govuk_template, uncomment the line below.
|
35
|
-
@import "elements/govuk-template-base";
|
35
|
+
// @import "elements/govuk-template-base"; // Base styles set by GOV.UK template
|
36
36
|
|
37
37
|
// Objects (unstyled design patterns)
|
38
38
|
@import "elements/layout"; // Main content container. Grid layout - rows and column widths
|
@@ -52,3 +52,4 @@
|
|
52
52
|
@import "elements/breadcrumbs"; // Breadcrumbs
|
53
53
|
@import "elements/phase-banner"; // Alpha and beta banners and tags
|
54
54
|
@import "elements/components"; // GOV.UK prefixed styles - blue highlighted box
|
55
|
+
@import "elements/shame"; // Hacks and workarounds that will go away eventually
|
@@ -4,7 +4,6 @@
|
|
4
4
|
.button {
|
5
5
|
@include button ($button-colour);
|
6
6
|
@include box-sizing (border-box);
|
7
|
-
padding: em(10) em(15) em(5);
|
8
7
|
vertical-align: top;
|
9
8
|
|
10
9
|
@include media (mobile) {
|
@@ -35,17 +34,17 @@
|
|
35
34
|
.button-start,
|
36
35
|
.button-get-started {
|
37
36
|
@include bold-24;
|
38
|
-
background-image: file-url("
|
37
|
+
background-image: file-url("icon-pointer.png");
|
39
38
|
background-repeat: no-repeat;
|
40
39
|
background-position: 100% 50%;
|
41
40
|
padding: em(7) em(41) em(4) em(16);
|
42
41
|
|
43
42
|
@include device-pixel-ratio {
|
44
|
-
background-image: file-url("
|
43
|
+
background-image: file-url("icon-pointer-2x.png");
|
45
44
|
background-size: 30px 19px;
|
46
45
|
}
|
47
46
|
|
48
47
|
@include ie(6) {
|
49
|
-
background-image: file-url("
|
48
|
+
background-image: file-url("icon-pointer-2x.png");
|
50
49
|
}
|
51
50
|
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
// Helpers
|
2
2
|
// ==========================================================================
|
3
3
|
|
4
|
-
//
|
5
|
-
|
4
|
+
// If image-url is not defined (if we are not in a Rails environment)
|
5
|
+
// Set a path to /public/images
|
6
|
+
@if not(function-exists(image-url)) {
|
6
7
|
$path: "/public/images/";
|
7
8
|
}
|
8
9
|
|
@@ -8,18 +8,18 @@
|
|
8
8
|
height: #{$icon-height}px;
|
9
9
|
|
10
10
|
@if $icon-sub-folder {
|
11
|
-
background-image: file-url("
|
11
|
+
background-image: file-url("#{$icon-sub-folder}/#{$icon-name}.png");
|
12
12
|
|
13
13
|
@include device-pixel-ratio() {
|
14
|
-
background-image: file-url("
|
14
|
+
background-image: file-url("#{$icon-sub-folder}/#{$icon-name}-2x.png");
|
15
15
|
background-size: 100%;
|
16
16
|
}
|
17
17
|
|
18
18
|
} @else {
|
19
|
-
background-image: file-url("
|
19
|
+
background-image: file-url("#{$icon-name}.png");
|
20
20
|
|
21
21
|
@include device-pixel-ratio() {
|
22
|
-
background-image: file-url("
|
22
|
+
background-image: file-url("#{$icon-name}-2x.png");
|
23
23
|
background-size: 100%;
|
24
24
|
}
|
25
25
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Show the arrow on summary elements in Firefox - _details.scss
|
2
|
+
// The current Firefox implementation uses display: list-item to show the arrow marker.
|
3
|
+
// We want to use display: inline-block to shrink-wrap the focus outline around the text.
|
4
|
+
// This will turn off inline-block for Firefox that’s not using the polyfill only.
|
5
|
+
// @-moz-document is going away: https://bugzilla.mozilla.org/show_bug.cgi?id=1035091 .
|
6
|
+
// Hopefully they’ll fix <summary> first but if not it’ll fall back to no arrow:
|
7
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=1270163
|
8
|
+
// If Mozilla add display: revert and remove list-item from summary then this will fall through.
|
9
|
+
@-moz-document regexp('.*') {
|
10
|
+
details summary:not([tabindex]) {
|
11
|
+
display: list-item;
|
12
|
+
display: revert;
|
13
|
+
}
|
14
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_elements_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob McKinnon
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-05-
|
12
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -45,17 +45,17 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 4.
|
48
|
+
version: 4.12.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 4.
|
55
|
+
version: 4.12.0
|
56
56
|
description: |-
|
57
|
-
A gem wrapper around govuk_elements v1.
|
58
|
-
that pulls stylesheet and javascript files into a Rails app. Changelog: https://github.com/alphagov/govuk_elements/blob/
|
57
|
+
A gem wrapper around govuk_elements v1.2.0
|
58
|
+
that pulls stylesheet and javascript files into a Rails app. Changelog: https://github.com/alphagov/govuk_elements/blob/f0297b538ffb5bbf8147ec79bca62f8fc3eb595d
|
59
59
|
/CHANGELOG.md
|
60
60
|
email: robin.whittleton@digital.cabinet-office.gov.uk
|
61
61
|
executables: []
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- vendor/assets/stylesheets/elements/_panels.scss
|
84
84
|
- vendor/assets/stylesheets/elements/_phase-banner.scss
|
85
85
|
- vendor/assets/stylesheets/elements/_reset.scss
|
86
|
+
- vendor/assets/stylesheets/elements/_shame.scss
|
86
87
|
- vendor/assets/stylesheets/elements/_tables.scss
|
87
88
|
- vendor/assets/stylesheets/elements/forms/_form-block-labels.scss
|
88
89
|
- vendor/assets/stylesheets/elements/forms/_form-date.scss
|