GIPainter-button 0.2.3 → 0.2.4

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: '09e0eec55d0421fec5bc203d2c14f2cd80b4db80'
4
- data.tar.gz: 427ffe5e7d7159a3095732ec673f26cc1aba9963
3
+ metadata.gz: 99d385702fae1d934005b935c642680106aeea4f
4
+ data.tar.gz: 32ea02b2e80eb4150ebf834836b4aa02c0e0729e
5
5
  SHA512:
6
- metadata.gz: ac622f8228e48afdf561b5df56da1bc6cb88d1fff338b72bc2e885d0e156d57d244f9319ac80abafedfd9ef4c4a6174f6ac9ca11f2ab35ef3a31bb90a02563e5
7
- data.tar.gz: 34108ebc0314d5dd9c16a82240800490aa560c2abcb215a0556d6fbe8c6ca7a92f27775657eb6c995220551c12e73834ca1e5e8290d49e1c49c5ed52e8b3159c
6
+ metadata.gz: 204730929309ca14bcaf46b4be9b9d08999d7a24bfe8239512866d3dd8899b881a82feffdaa3b6b9987286385faee5f4cc67224aca8d5e60bd5386173933f42c
7
+ data.tar.gz: fc5f448086b42add15b36e5f221fd2982dea8c502b0e5325adcdd1823d3696e23e2b1eef3760bba34a3d7cae63f3b116a7d990092e146540eecbd2ecc5527b90
@@ -8,7 +8,7 @@
8
8
  /// @type string
9
9
  ////
10
10
 
11
- .btn {
11
+ .o-btn {
12
12
  display: inline-block;
13
13
  font-weight: $btn-font-weight;
14
14
  @include line-height($font-size-base);
@@ -26,28 +26,23 @@
26
26
  }
27
27
 
28
28
  &:focus,
29
- &.focus {
29
+ &--focus {
30
30
  outline: 0;
31
31
  @include box-shadow(0 0 0 2px rgba($brand-primary, .25));
32
32
  }
33
33
 
34
34
  // Disabled comes first so active can properly restyle
35
- &.disabled,
35
+ &--disabled,
36
36
  &:disabled {
37
37
  cursor: not-allowed;
38
+ pointer-events: none;
38
39
  opacity: .65;
39
40
  @include box-shadow(none);
40
41
  }
41
42
 
42
43
  &:active,
43
- &.active {
44
+ &--active {
44
45
  background-image: none;
45
46
  @include box-shadow(inset 0 3px 5px rgba($black,.125));
46
47
  }
47
- }
48
-
49
- // Future-proof disabling of clicks on `<a>` elements
50
- a.btn.disabled,
51
- fieldset[disabled] a.btn {
52
- pointer-events: none;
53
48
  }
@@ -10,12 +10,12 @@
10
10
 
11
11
  //** Default buttons color
12
12
  /// Buttons colors
13
- /// @example css - class="btn--(type)"
14
- /// .btn--primary {
13
+ /// @example css - class="o-btn--(type)"
14
+ /// .o-btn--primary {
15
15
  ///
16
16
  /// }
17
17
  @each $name, $value in $default_colors {
18
- .btn--#{"" + $name} {
18
+ .o-btn--#{"" + $name} {
19
19
  @include button-variant($value);
20
20
  }
21
21
  }
@@ -10,14 +10,14 @@
10
10
 
11
11
  //** Default buttons size
12
12
  /// Buttons size
13
- /// @example css - class="btn--(type)"
14
- /// .btn--lg {
13
+ /// @example css - class="o-btn--(type)"
14
+ /// .o-btn--lg {
15
15
  ///
16
16
  /// }
17
- .btn--lg {
17
+ .o-btn--lg {
18
18
  @include button-size($btn-padding-x * 1.5, $btn-padding-y * 1.5, $font-size-large);
19
19
  }
20
20
 
21
- .btn--sm {
21
+ .o-btn--sm {
22
22
  @include button-size($btn-padding-x * .5, $btn-padding-y * .5, $font-size-small);
23
23
  }
@@ -51,13 +51,13 @@
51
51
 
52
52
  // Disabled comes first so active can properly restyle
53
53
  &:disabled,
54
- &.disabled {
54
+ &.o-btn--disabled {
55
55
  background-color: $disabled-background;
56
56
  @include text-contrast($disabled-background);
57
57
  }
58
58
 
59
59
  &:active,
60
- &.active {
60
+ &.o-btn--active {
61
61
  @include text-contrast($active-background);
62
62
  background-color: $active-background;
63
63
  background-image: none; // Remove the gradient for the pressed/active state
@@ -1,3 +1,3 @@
1
1
  module GIPainter_button
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: GIPainter-button
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genious Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: GIPainter-base