codefabrik-styleguide 0.1.14 → 0.1.16

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: 3fbf54ca1fd473a9a3532c5132beaeea66484001fe58db0a712d07767ea3c3ce
4
+ data.tar.gz: de1c269a339b50694f38461806259dda0427ee44a0d0e9dd52ed28bde960188c
5
5
  SHA512:
6
- metadata.gz: 877a810337682aba4640fa61c85d48bbbf3c52fc20eaf6348c69f6e7b44b3c09f0562e11e45550734c5fdac1ebee3bc33889fd91efb0c1aaf129a91e768b5214
7
- data.tar.gz: c587350a167836199f2e28a26105e15c6018e1cd4cd39321152bdd31875c16df7ecd066d29b1c4ad7fe40f78b59e874b68857e26ac6a62c38a0cbdcbe12d4524
6
+ metadata.gz: 43b3dee5f4c2cbcebfc82a0ad5928838535a8e496b2178a234630863741fa8eb5a737f97d0d0e7d600a542eda1e39415663c169d5f1e9f9a8c835d5f7ef4f505
7
+ data.tar.gz: 695d7a0325f11413597fbb2e53f071f69ca9970c496992ea12bc75ea99880c6a73573a43cafb3aad1099996090c33ad134d8a2e635ebbcc8c5adce1937b290d2
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.16)
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.16"
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 {
@@ -20,6 +20,7 @@ summary {
20
20
 
21
21
  .pagy-nav {
22
22
  display: flex;
23
+ flex-wrap: wrap;
23
24
 
24
25
  .page {
25
26
  margin-right: 0.25rem;
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.16
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-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dartsass-rails