GIPainter-button 0.2.6 → 0.2.7

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