govuk_admin_template 3.5.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/app/assets/images/govuk_admin_template/favicon-integration.png +0 -0
- data/app/assets/stylesheets/govuk_admin_template/_navbar.scss +6 -4
- data/app/assets/stylesheets/govuk_admin_template/_theme.scss +1 -1
- data/lib/govuk_admin_template/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66f113888dcb4019162fda904d9bfb43169c96fa
|
|
4
|
+
data.tar.gz: 63fa02aab31236c7a4405b5c97308e165e6a4643
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16c0156d7f516c08fd309975e49924f46817b9a1204fe925d0c66e037aa1358e8a98398f31be41ec632f76b9a2edcea5d9ef6f86e9f98a82cab7678e813cb8be
|
|
7
|
+
data.tar.gz: 0cd3873bf0a76672d6b7e5a9ae925dc3645077419c54f322d33da4122864785055b0cdb5ab25dfa67f5e514463872695e7f47e835b3275d1c98af76eba3c940b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 4.0.0
|
|
2
|
+
|
|
3
|
+
* Allow environment style and labels to be set to integration. When using integration as the environment style the custom favicon in the application must also be present. eg `favicon-preview.png` must be duplicated as `favicon-integration.png`. #102
|
|
4
|
+
|
|
1
5
|
# 3.5.0
|
|
2
6
|
|
|
3
7
|
* Add a govspeak help template
|
data/README.md
CHANGED
|
@@ -143,16 +143,16 @@ time.to_s(:govuk_time)
|
|
|
143
143
|
|
|
144
144
|
### Environment indicators
|
|
145
145
|
|
|
146
|
-
The gem includes default styles for development,
|
|
146
|
+
The gem includes default styles for development, integration and production. This includes a coloured environment label, a coloured strip beneath the main navigation and a coloured favicon. They are based on two variables that are set at deploy time (if they aren’t set no indicator will be shown).
|
|
147
147
|
|
|
148
148
|
The following should be set within an initializer:
|
|
149
149
|
|
|
150
150
|
```ruby
|
|
151
151
|
# used for the classname and favicon
|
|
152
|
-
GovukAdminTemplate.environment_style = [
|
|
152
|
+
GovukAdminTemplate.environment_style = [integration|production|development]
|
|
153
153
|
|
|
154
154
|
# used for the human readable label
|
|
155
|
-
GovukAdminTemplate.environment_label = [
|
|
155
|
+
GovukAdminTemplate.environment_label = [Integration|Staging|Production|Development]
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
## Flash messages
|
|
Binary file
|
|
@@ -84,8 +84,9 @@ header .navbar-header {
|
|
|
84
84
|
border-bottom-color: $production-color;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.environment-preview .environment-indicator
|
|
88
|
-
|
|
87
|
+
.environment-preview .environment-indicator,
|
|
88
|
+
.environment-integration .environment-indicator {
|
|
89
|
+
border-bottom-color: $integration-color;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
.environment-development .environment-indicator {
|
|
@@ -119,8 +120,9 @@ header .navbar-header {
|
|
|
119
120
|
color: #fff;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
|
-
.environment-preview .environment-
|
|
123
|
-
|
|
123
|
+
.environment-preview .environment-indicator,
|
|
124
|
+
.environment-integration .environment-indicator {
|
|
125
|
+
background-color: $integration-color;
|
|
124
126
|
color: #000;
|
|
125
127
|
}
|
|
126
128
|
|
|
@@ -44,5 +44,5 @@ $default-button-color : #333; /* Dark grey */
|
|
|
44
44
|
========================================================================== */
|
|
45
45
|
|
|
46
46
|
$production-color: #df3034; /* Red */
|
|
47
|
-
$
|
|
47
|
+
$integration-color:#ffbf47; /* Orange */
|
|
48
48
|
$dev-color: #bfc1c3; /* Grey */
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_admin_template
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -135,6 +135,7 @@ files:
|
|
|
135
135
|
- LICENCE.txt
|
|
136
136
|
- README.md
|
|
137
137
|
- app/assets/images/govuk_admin_template/favicon-development.png
|
|
138
|
+
- app/assets/images/govuk_admin_template/favicon-integration.png
|
|
138
139
|
- app/assets/images/govuk_admin_template/favicon-preview.png
|
|
139
140
|
- app/assets/images/govuk_admin_template/favicon-production.png
|
|
140
141
|
- app/assets/images/govuk_admin_template/favicon.png
|