ad2games-ui_components 2.0.2 → 2.0.3

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: 63e125217bcae9c5b74e8ca80bdf1dcf85ddad60
4
- data.tar.gz: c4b71d80b693b334e0a0c34078a757e331a8b321
3
+ metadata.gz: 062570e9270c9a5739d35f2a4ca5bff329b3a061
4
+ data.tar.gz: 82be1058820b794369be9cefdb6ae17f0edda7ba
5
5
  SHA512:
6
- metadata.gz: 1e7b5474822e86f1523d37df8c8ccef6abe15cf78ac5bec78489a37dbd1a5308ed70e7edcfb4684146962a2adf41999ea858e83599d39b8c3aa477376aca5344
7
- data.tar.gz: 9a1f8d3b85bca0fcc386e06b9d221501beb469f4689c73c1cf3c4cd8dc770d24b0930324323893f53e056d70b8c7a615fc92deb709e6f8fa11f92622344023fe
6
+ metadata.gz: d4ff582907ee32f419dbd1271db7ad243cb2726a5bc055200edab5959cccb023279bfef9f1f7e2d880bdc17e1d94f175b0cee584fbf3a62c1fe5794759bd92e6
7
+ data.tar.gz: d514c1d2abda03c685ab48c3f176ce41c3b9b3c889290bbb236a7d7172343173117051d6731c9627996493008bcc4da448f6b9342f1ffbff329823d46b8bd48f
@@ -0,0 +1,5 @@
1
+ $ ->
2
+ $('.toolbar .checkbox input').change ->
3
+ $(this).parents('.checkbox').toggleClass('active', this.checked)
4
+
5
+ $('.toolbar .checkbox input').trigger('change')
@@ -14,6 +14,8 @@
14
14
  &:active.hover,
15
15
  &.active:focus,
16
16
  &.active.focus,
17
+ &.active:hover,
18
+ &.active.hover,
17
19
  .open > &.dropdown-toggle {
18
20
  // scss-lint:disable ImportantRule
19
21
  outline: none !important;
@@ -48,7 +50,9 @@
48
50
  &:active:hover,
49
51
  &:active.hover,
50
52
  &.active:focus,
51
- &.active.focus {
53
+ &.active.focus,
54
+ &.active:hover,
55
+ &.active.hover {
52
56
  background-color: $btn-default-hover-border;
53
57
  border-color: $btn-default-hover-border;
54
58
  color: $white;
@@ -78,7 +82,9 @@
78
82
  &:active:hover,
79
83
  &:active.hover,
80
84
  &.active:focus,
81
- &.active.focus {
85
+ &.active.focus,
86
+ &.active:hover,
87
+ &.active.hover {
82
88
  background-color: darken($btn-primary-hover-bg, 15%);
83
89
  border-color: $btn-primary-hover-border;
84
90
  color: $btn-primary-hover-color;
@@ -15,6 +15,11 @@
15
15
  font-weight: normal;
16
16
  font-style: italic;
17
17
  font-size: .9em;
18
+ margin-left: $padding-small-horizontal;
19
+
20
+ &:first-child {
21
+ margin-left: 0;
22
+ }
18
23
  }
19
24
 
20
25
  .btn-group,
@@ -36,6 +41,45 @@
36
41
  margin-left: 0;
37
42
  }
38
43
  }
44
+
45
+ .form-group .form-group {
46
+ margin: 0;
47
+ }
48
+
49
+ // React components
50
+ // scss-lint:disable SelectorFormat
51
+ .Select {
52
+ display: inline-block;
53
+ vertical-align: middle;
54
+ min-width: 200px;
55
+ }
56
+
57
+ // toolbar checkboxes appear as toggleable buttons
58
+ .ui-components-checkbox-list li {
59
+ margin-left: $padding-small;
60
+ float: left;
61
+ }
62
+
63
+ .checkbox {
64
+ @extend .btn;
65
+ @extend .btn-sm;
66
+ @extend .btn-default;
67
+
68
+ // scss-lint:disable QualifyingElement
69
+ input[type='checkbox'] {
70
+ position: absolute;
71
+ display: none;
72
+ }
73
+
74
+ label {
75
+ font-style: normal;
76
+ font-size: 1em;
77
+ }
78
+
79
+ &.active {
80
+ @extend .btn.active;
81
+ }
82
+ }
39
83
  }
40
84
 
41
85
  .toolbar-default {
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module UiComponents
3
- VERSION = '2.0.2'
3
+ VERSION = '2.0.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad2games-ui_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: cells
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.0.beta2
33
+ version: 4.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0.beta2
40
+ version: 4.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cells-slim
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -307,6 +307,7 @@ files:
307
307
  - app/assets/javascripts/ui_components/navbar.coffee
308
308
  - app/assets/javascripts/ui_components/sticky_header.coffee
309
309
  - app/assets/javascripts/ui_components/submit_on_change.coffee
310
+ - app/assets/javascripts/ui_components/toolbar.coffee
310
311
  - app/assets/javascripts/ui_components/turbolinks_progressbar.coffee
311
312
  - app/assets/stylesheets/a2g_ui_components.scss
312
313
  - app/assets/stylesheets/default_theme/button.scss