codefabrik-styleguide 0.1.14 → 0.1.15

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
  SHA256:
3
- metadata.gz: 9c3f2bf3378fcc883e96bea122e52f96329e50ec25e66bc3332fd5dcb209cb2e
4
- data.tar.gz: 68e40df4de672ed393e8002184c232d9b9e3121c9fd3baa391ade7f2f2134bc3
3
+ metadata.gz: 6e3e184a55f9d67e811a5cac85147bb4652847924f6b43aea1609136a48e6d6f
4
+ data.tar.gz: 86eddb3fdf9f6a63f886d57e6bf010a2dccb5acd9a651c9d72de80494af3b035
5
5
  SHA512:
6
- metadata.gz: 877a810337682aba4640fa61c85d48bbbf3c52fc20eaf6348c69f6e7b44b3c09f0562e11e45550734c5fdac1ebee3bc33889fd91efb0c1aaf129a91e768b5214
7
- data.tar.gz: c587350a167836199f2e28a26105e15c6018e1cd4cd39321152bdd31875c16df7ecd066d29b1c4ad7fe40f78b59e874b68857e26ac6a62c38a0cbdcbe12d4524
6
+ metadata.gz: 10f346ae40d2b2a7d2ec469bd4d0a14b873334f9bb96cee19007ab977b8e9556a14f3f65fb1db370f7f31759fbc6ffa074477920e24920269832968ae0a7a500
7
+ data.tar.gz: f10bb0507aba5c9fd72ede67bed6bfa7d514aa0b29c6e8bf350b02bb1a4f0af1ab9154a86815d3eb6921dc43400cb9064343404885c8e8941d93f7ce338859d2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codefabrik-styleguide (0.1.14)
4
+ codefabrik-styleguide (0.1.15)
5
5
  dartsass-rails (>= 0.4.0)
6
6
  rails (>= 6.0)
7
7
  sassc (>= 2.4.0)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Codefabrik
4
4
  module Styleguide
5
- VERSION = "0.1.14"
5
+ VERSION = "0.1.15"
6
6
  end
7
7
  end
@@ -27,6 +27,16 @@ module Codefabrik
27
27
  output << "</div></div>"
28
28
  output.html_safe
29
29
  end
30
+
31
+ def active_link_to(label, path, options = {})
32
+ if request.path == path
33
+ existing_klass = options[:klass] || ''
34
+ new_klass = "#{existing_klass} active"
35
+ link_to(label, path, options.merge({ class: new_klass }))
36
+ else
37
+ link_to(label, path, options)
38
+ end
39
+ end
30
40
  end
31
41
  end
32
42
  end
@@ -95,7 +95,7 @@ header, footer {
95
95
  &.active {
96
96
  border-left: 0.25 * $default_distance solid map-get($primary, 100);
97
97
  border-bottom: none;
98
- background-color: map-get($primary, 400);
98
+ background-color: map-get($primary, 600);
99
99
  }
100
100
 
101
101
  &:hover {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codefabrik-styleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas_Skywalker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dartsass-rails