tungsten 0.1.45 → 0.1.46

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 643db4bc45ba1c0836a5a690f700411ff430dcaa
4
- data.tar.gz: e26579cde86e62197bae04421498d7b81ca01dc9
3
+ metadata.gz: d1741cb58666c941ea9a9baf7e95e22b61bdc8fb
4
+ data.tar.gz: 75b2ad918b839d5589ffcbf7751d495b2b9eb7b7
5
5
  SHA512:
6
- metadata.gz: 171632610e5523249743541a325fcd0f2b589a23503c9f0f095e61e2308d76923bf8af1a98a25bf310a97cd66e179ab1e527a33b14ce8bf40b9bd5cc2bb2b77d
7
- data.tar.gz: 22aad39925e9cc33e649c0107db92a93d3639acc54b718e955cc748db6de423e44b0db52e5df68e61aae5dcec3103a9f5e17c7922cfca734e566d6dafe80d1cf
6
+ metadata.gz: 9d315dc704543316ccc715ec8359e0c92275249e992bd1436ba3e0c70ba33d336d489bb5b5454a1765d6b54dedf87c765d774086dfc77e4eb17551f8f7d403cf
7
+ data.tar.gz: 7d9a92fcc9709c25529dba33ba63e61831495dd351b9498d39e3b38ca0ba50300526fe5d31c3205c05f5459040d9582803e52eb527dbe72d24f553dc4578bf34
@@ -47,7 +47,6 @@
47
47
 
48
48
  .progress-bar-fill {
49
49
  background-color: $blue-04;
50
- background-image: linear-gradient( to right, rgba(#fff, 0), rgba(#fff, .2) );
51
50
  height: .7em;
52
51
  border-radius: 10px;
53
52
  position: relative;
@@ -11,6 +11,8 @@ module Tungsten
11
11
  options[:class] = "progress-bar #{options[:class]}".strip
12
12
 
13
13
  label = block_given? ? capture(&block) : options.delete(:label)
14
+
15
+ color = options.delete(:color)
14
16
 
15
17
  set_aria! options, {
16
18
  role: 'progressbar',
@@ -26,7 +28,7 @@ module Tungsten
26
28
  }
27
29
  concat content_tag( :div, options ) {
28
30
  concat content_tag( :div, class: "progress-bar-outline" ) {
29
- tag.div class: "progress-bar-fill", style: "width: #{completion}%"
31
+ tag.div class: "progress-bar-fill #{color}".strip, style: "width: #{completion}%"
30
32
  }
31
33
  concat content_tag( :div, class: 'progress-bar-percentage') { "#{completion}%" } if options[:show_percentage]
32
34
  }
@@ -1,3 +1,3 @@
1
1
  module Tungsten
2
- VERSION = "0.1.45"
2
+ VERSION = "0.1.46"
3
3
  end