govuk_admin_template 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.1
2
+
3
+ * Fix active visited link styles on bootstrap components
4
+ * Fix visited link styles on nested bootstrap components
5
+
1
6
  # 0.1.0
2
7
 
3
8
  * Environment indicators
@@ -205,20 +205,31 @@ main a {
205
205
 
206
206
  /* Navigation pills */
207
207
 
208
- .nav-pills a:visited {
208
+ .nav-pills > li > a:visited {
209
209
  color: $link-color;
210
210
  }
211
211
 
212
- .nav-pills a:visited:hover {
212
+ .nav-pills > li > a:visited:hover {
213
213
  color: $link-hover-color;
214
214
  }
215
215
 
216
+ .nav-pills > li.active > a:visited,
217
+ .nav-pills > li.active > a:visited:hover {
218
+ color: $component-active-color;
219
+ }
220
+
216
221
  /* Dropdown menu */
217
222
 
218
- .dropdown-menu a:visited {
223
+ .dropdown-menu > li > a:visited,
224
+ .dropdown-menu > li > a:hover:visited {
219
225
  color: $text-color;
220
226
  }
221
227
 
228
+ .dropdown-menu > li.active > a:visited,
229
+ .dropdown-menu > li.active > a:hover:visited {
230
+ color: $component-active-color
231
+ }
232
+
222
233
  /* List groups */
223
234
 
224
235
  .list-group a.list-group-item:visited {
@@ -229,12 +240,9 @@ main a {
229
240
  color: $list-group-link-color;
230
241
  }
231
242
 
232
- .list-group a.list-group-item.active:visited {
233
- color: $list-group-active-text-color;
234
- }
235
-
243
+ .list-group a.list-group-item.active:visited,
236
244
  .list-group a.list-group-item.active:visited:hover {
237
- color: $list-group-active-text-color;
245
+ color: $component-active-color;
238
246
  }
239
247
 
240
248
  /* List groups with content */
@@ -193,6 +193,10 @@
193
193
  <h4 class="list-group-item-heading">Active visited link</h4>
194
194
  <p class="list-group-item-text">Active visited link</p>
195
195
  </a>
196
+ <a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>" class="list-group-item active">
197
+ <h4 class="list-group-item-heading">Active normal link</h4>
198
+ <p class="list-group-item-text">Active normal link</p>
199
+ </a>
196
200
  <a href="/style-guide" class="list-group-item">
197
201
  <h4 class="list-group-item-heading">Visited link</h4>
198
202
  <p class="list-group-item-text">Visited link</p>
@@ -209,6 +213,9 @@
209
213
  <a href="/style-guide" class="list-group-item active">
210
214
  Active visited link style
211
215
  </a>
216
+ <a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>" class="list-group-item active">
217
+ Active normal link style
218
+ </a>
212
219
  <a href="/style-guide" class="list-group-item">Visited link</a>
213
220
  <a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>" class="list-group-item">Normal link</a>
214
221
  </div>
@@ -217,8 +224,20 @@
217
224
  <h4 class="add-bottom-margin">Navigation pills</h4>
218
225
  <ul class="nav nav-pills nav-stacked">
219
226
  <li class="active"><a href="/style-guide">Active visited link</a></li>
227
+ <li class="active"><a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>">Active normal link</a></li>
220
228
  <li><a href="/style-guide">Visited link</a></li>
221
229
  <li><a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>">Normal link</a></li>
230
+ <li>
231
+ <div class="btn-group open">
232
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
233
+ Dropdown in navigation pill <span class="caret"></span>
234
+ </button>
235
+ <ul class="dropdown-menu" role="menu">
236
+ <li><a href="/style-guide">Visited link</a></li>
237
+ <li><a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>">Normal link</a></li>
238
+ </ul>
239
+ </div>
240
+ </li>
222
241
  </ul>
223
242
  </div>
224
243
  <div class="col-md-3">
@@ -229,6 +248,8 @@
229
248
  Action <span class="caret"></span>
230
249
  </button>
231
250
  <ul class="dropdown-menu" role="menu">
251
+ <li class="active"><a href="/style-guide">Active visited link</a></li>
252
+ <li class="active"><a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>">Active normal link</a></li>
232
253
  <li><a href="/style-guide">Visited link</a></li>
233
254
  <li><a href="/style-guide#<%= "#{Time.now.utc.to_i}" %>">Normal link</a></li>
234
255
  </ul>
@@ -1,3 +1,3 @@
1
1
  module GovukAdminTemplate
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_admin_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -197,7 +197,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  segments:
199
199
  - 0
200
- hash: -4107083059303013324
200
+ hash: 1090496159895250270
201
201
  required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  none: false
203
203
  requirements:
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  segments:
208
208
  - 0
209
- hash: -4107083059303013324
209
+ hash: 1090496159895250270
210
210
  requirements: []
211
211
  rubyforge_project:
212
212
  rubygems_version: 1.8.23