GIPainter-button 0.2.5 → 0.2.6

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: 9239977f6b4b740bb6d61eabdd19736c0eb3528a
4
- data.tar.gz: f81bab93998e81e8e998e58b7da81fb2a4cc0622
3
+ metadata.gz: be0e2139712a35ba06c5a84790f5de7ea6b92fab
4
+ data.tar.gz: 7034341c2a3f1e1981c53be5d20cde1b11d03619
5
5
  SHA512:
6
- metadata.gz: 3c5faf93dcf9f106094b8fbbce8d131c309ee450ac5962e49d405ba74e4e0324e9b5ca127b55cd6d6a060b1c41cac8a2ce805032070cec69e831e3496e51c159
7
- data.tar.gz: f01c945a222e0b84cdca138a429c479d0d6cb3aaf3ac9f0cbc9a8f4875008e6cf02b3b47857ec99620f42bc9f10b619961d3a8c8e054b6cfb78e0635150213d9
6
+ metadata.gz: c57f82c0aeb225d13cec04c7d7062fc6cd62fc12a13d1bd1bd87f1cbdabecf3e26465d4a3a63f071119e4f981b715b4d6b7c93f420cc03661c0996340893e4a4
7
+ data.tar.gz: e80970bfbaa5cbf00df34e998f231bfd578deed6ec83f3df84971f6eef6db183ff54b8a451dc12f1ebde0132c42de5fd95f87861bdc81927de6750e1b0833889
@@ -9,6 +9,9 @@
9
9
  ////
10
10
 
11
11
  .o-btn {
12
+ $active-background: darken($gray, 10%);
13
+ $disabled-background: lighten($gray, 10%);
14
+
12
15
  font-family: Roboto, sans-serif;
13
16
  display: inline-block;
14
17
  position: relative;
@@ -25,19 +28,22 @@
25
28
  @include button-size($btn-padding-y, $btn-padding-x, $font-size-base);
26
29
  @include transition(all .2s ease-in-out);
27
30
  @include box-sizing(border-box);
28
- @include button-variant($gray-light);
31
+ @include box-shadow(none);
32
+ @include text-contrast($gray);
33
+ background-color: $gray;
29
34
 
30
35
  // Share hover and focus styles
31
36
  &:hover,
32
37
  &:focus,
33
38
  &--focus{
34
39
  text-decoration: none;
40
+ @include text-contrast($active-background);
41
+ background-color: $active-background;
35
42
  }
36
43
 
37
44
  &:focus,
38
45
  &--focus {
39
46
  outline: 0;
40
- @include box-shadow(0 0 0 2px rgba($brand-primary, .25));
41
47
  }
42
48
 
43
49
  // Disabled comes first so active can properly restyle
@@ -45,13 +51,14 @@
45
51
  &--disabled{
46
52
  cursor: not-allowed;
47
53
  pointer-events: none;
48
- opacity: .65;
49
- @include box-shadow(none);
54
+ background-color: $disabled-background;
55
+ @include text-contrast($disabled-background);
50
56
  }
51
57
 
52
58
  &:active,
53
59
  &--active {
54
- background-image: none;
55
- @include box-shadow(inset 0 3px 5px rgba($black,.125));
60
+ @include text-contrast($active-background);
61
+ background-color: $active-background;
62
+ background-image: none; // Remove the gradient for the pressed/active state
56
63
  }
57
64
  }
@@ -41,7 +41,6 @@
41
41
 
42
42
  @include text-contrast($color);
43
43
  background-color: $color;
44
- @include box-shadow(inset 0 1px 0 rgba($white,.15), 0 1px 1px rgba($black,.075));
45
44
 
46
45
  // Hover and focus styles are shared
47
46
  &:hover,
@@ -63,6 +62,5 @@
63
62
  @include text-contrast($active-background);
64
63
  background-color: $active-background;
65
64
  background-image: none; // Remove the gradient for the pressed/active state
66
- @include box-shadow(inset 0 3px 5px rgba($black,.125));
67
65
  }
68
66
  }
@@ -1,3 +1,3 @@
1
1
  module GIPainter_button
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: GIPainter-button
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genious Interactive