ad2games-ui_components 2.0.5 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ui_components.js.erb +1 -1
  3. data/app/assets/javascripts/ui_components/toolbar.coffee +1 -1
  4. data/app/assets/stylesheets/default_theme/button.scss +57 -32
  5. data/app/assets/stylesheets/default_theme/date_selector.scss +85 -0
  6. data/app/assets/stylesheets/default_theme/navbar.scss +1 -1
  7. data/app/assets/stylesheets/default_theme/toolbar.scss +97 -59
  8. data/app/assets/stylesheets/ui_components/checkbox_list.scss +29 -0
  9. data/app/assets/stylesheets/variables.scss +1 -1
  10. data/app/cells/checkbox_list/checkbox_list_cell.rb +4 -2
  11. data/lib/ui_components/version.rb +1 -1
  12. data/vendor/assets/bower_components/jquery-ujs/CONTRIBUTING.md +109 -0
  13. data/vendor/assets/bower_components/jquery-ujs/MIT-LICENSE +20 -0
  14. data/vendor/assets/bower_components/jquery-ujs/README.md +81 -0
  15. data/vendor/assets/bower_components/jquery-ujs/bower.json +19 -0
  16. data/vendor/assets/bower_components/jquery-ujs/src/rails.js +555 -0
  17. data/vendor/assets/bower_components/jquery.floatThead/CHANGELOG.md +142 -0
  18. data/vendor/assets/bower_components/jquery.floatThead/README.md +26 -201
  19. data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead-slim.js +172 -52
  20. data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead-slim.min.js +2 -2
  21. data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead.js +173 -53
  22. data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead.min.js +2 -2
  23. data/vendor/assets/bower_components/jquery.floatThead/license.txt +1 -1
  24. metadata +9 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12058e72a4da7edc0dfed58b4c9e082c13956a02
4
- data.tar.gz: 599914485d7097ba03b6c67115c0634bf88f7c2c
3
+ metadata.gz: 9034d29a048c3558401f2ee9b7253e1f72c7292b
4
+ data.tar.gz: ec7f023e4fd016d3ae99712184822f1a21c7ad2b
5
5
  SHA512:
6
- metadata.gz: 2060ab7afee65e7cf8af8fdf653fc3bffcab16c6a850bfd6f19f34281bd4abc98dfd9c7936836cfe78569128a09f83ac88c79ace4ce1e0ef74fe61cf7de93da8
7
- data.tar.gz: 4ef654209534582720322efe2798c0e17cd9ab968a2283906d411f43108763650d84021ed66f57562d0776c6a72386587e6eefb9f203cffa0dbafc9d0b26e790
6
+ metadata.gz: 050bd79188ef56087676254f87a35a08a5f47bf801da60a87b5a4d7fee1d0b63e5de3530521af0c256cdf1497eccc22f77fc789fc929ac63bac2d2ad62a948c5
7
+ data.tar.gz: e63298403223ecea7f9a73d12451acc84d3f0eda3383fe4d309dd174b8a16c180285337d24d298e5c6f9345263f8e4196c88fe36acaca7eced46f77274659552
@@ -1,6 +1,6 @@
1
1
  //= require jquery
2
2
  //= require jquery.turbolinks
3
- //= require jquery_ujs
3
+ //= require jquery-ujs
4
4
  //= require underscore
5
5
  //= require moment/moment
6
6
  //= require turbolinks
@@ -1,5 +1,5 @@
1
1
  $ ->
2
2
  $('.toolbar .checkbox input').change ->
3
- $(this).parents('.checkbox').toggleClass('active', this.checked)
3
+ $(this).parents('li.btn').toggleClass('active', this.checked)
4
4
 
5
5
  $('.toolbar .checkbox input').trigger('change')
@@ -2,6 +2,10 @@
2
2
  background-clip: padding-box;
3
3
  transition: background-color .1s ease-out, border-color .1s, color .1s;
4
4
 
5
+ .glyphicon {
6
+ padding: 0 2px;
7
+ }
8
+
5
9
  &:active,
6
10
  &.active,
7
11
  &:focus,
@@ -23,20 +27,8 @@
23
27
  }
24
28
  }
25
29
 
26
- .btn {
27
- @extend %btn;
28
-
29
- .glyphicon {
30
- padding: 0 2px;
31
- }
32
- }
33
-
34
30
  %btn-default {
35
31
 
36
- &:active,
37
- &.active,
38
- &:focus,
39
- &.focus,
40
32
  &:hover,
41
33
  &.hover,
42
34
  .open > &.dropdown-toggle {
@@ -45,30 +37,24 @@
45
37
  color: $btn-default-hover-color;
46
38
  }
47
39
 
40
+ &:active,
41
+ &.active,
42
+ &:focus,
43
+ &.focus,
48
44
  &:active:focus,
49
45
  &:active.focus,
50
- &:active:hover,
51
- &:active.hover,
52
46
  &.active:focus,
53
47
  &.active.focus,
54
- &.active:hover,
55
- &.active.hover {
48
+ &:active:hover,
49
+ &.active:hover {
56
50
  background-color: $btn-default-hover-border;
57
51
  border-color: $btn-default-hover-border;
58
52
  color: $white;
59
53
  }
60
54
  }
61
55
 
62
- .btn-default {
63
- @extend %btn-default;
64
- }
65
-
66
56
  %btn-primary {
67
57
 
68
- &:active,
69
- &.active,
70
- &:focus,
71
- &.focus,
72
58
  &:hover,
73
59
  &.hover,
74
60
  .open > &.dropdown-toggle {
@@ -77,24 +63,22 @@
77
63
  color: $btn-primary-hover-color;
78
64
  }
79
65
 
66
+ &:active,
67
+ &.active,
68
+ &:focus,
69
+ &.focus,
80
70
  &:active:focus,
81
71
  &:active.focus,
82
- &:active:hover,
83
- &:active.hover,
84
72
  &.active:focus,
85
73
  &.active.focus,
86
- &.active:hover,
87
- &.active.hover {
74
+ &:active:hover,
75
+ &.active:hover {
88
76
  background-color: darken($btn-primary-hover-bg, 15%);
89
77
  border-color: $btn-primary-hover-border;
90
78
  color: $btn-primary-hover-color;
91
79
  }
92
80
  }
93
81
 
94
- .btn-primary {
95
- @extend %btn-primary;
96
- }
97
-
98
82
  %btn-disabled {
99
83
  border-color: rgba($gray, .3);
100
84
  color: $gray;
@@ -119,6 +103,47 @@
119
103
  }
120
104
  }
121
105
 
106
+ .btn {
107
+ @extend %btn;
108
+
109
+ svg {
110
+ vertical-align: middle;
111
+ height: 1.2em;
112
+ width: 1.2em;
113
+ }
114
+
115
+ &.btn-default svg {
116
+ fill: $btn-default-color;
117
+ }
118
+
119
+ &.btn-default:hover svg {
120
+ fill: $btn-default-hover-color;
121
+ }
122
+
123
+ &.btn-default:active svg,
124
+ &.btn-default:focus svg {
125
+ fill: $btn-default-hover-bg;
126
+ }
127
+
128
+ &.btn-primary svg {
129
+ fill: $btn-primary-color;
130
+ }
131
+
132
+ &.btn-primary:hover svg,
133
+ &.btn-primary:active svg,
134
+ &.btn-primary:focus svg {
135
+ fill: $btn-primary-hover-color;
136
+ }
137
+ }
138
+
139
+ .btn-default {
140
+ @extend %btn-default;
141
+ }
142
+
143
+ .btn-primary {
144
+ @extend %btn-primary;
145
+ }
146
+
122
147
  .btn[disabled],
123
148
  .btn.disabled {
124
149
  @extend %btn-disabled;
@@ -0,0 +1,85 @@
1
+ // scss-lint disabled, as these 'theme' styles need to directly override the date-selector vendor styles
2
+ // scss-lint:disable all
3
+ .applyBtn.btn.btn-small.btn-sm.btn-success {
4
+ @extend .btn-primary;
5
+ }
6
+
7
+ .daterangepicker .daterangepicker_start_input label,
8
+ .daterangepicker .daterangepicker_end_input label {
9
+ text-shadow: none;
10
+ }
11
+
12
+ .daterangepicker .ranges .input-mini {
13
+ border-radius: $border-radius-base;
14
+ }
15
+
16
+ .daterangepicker .ranges li {
17
+ margin-bottom: $padding-small-vertical;
18
+ background: transparent;
19
+ border: 1px solid transparent;
20
+ color: $brand-primary;
21
+ -webkit-border-radius: $border-radius-base;
22
+ -moz-border-radius: $border-radius-base;
23
+ border-radius: $border-radius-base;
24
+ }
25
+
26
+ //custom
27
+ .daterangepicker .ranges li:hover {
28
+ background: transparent;
29
+ border: 1px solid $brand-primary;
30
+ color: $brand-primary;
31
+ }
32
+
33
+ // custom
34
+ .daterangepicker .ranges li.active {
35
+ background: $brand-primary;
36
+ border: 1px solid transparent;
37
+ }
38
+
39
+ .daterangepicker .calendar-date {
40
+ border-radius: $border-radius-base;
41
+ }
42
+
43
+
44
+ .daterangepicker {
45
+ -webkit-border-radius: $border-radius-base;
46
+ -moz-border-radius: $border-radius-base;
47
+ border-radius: $border-radius-base;
48
+ }
49
+
50
+ .daterangepicker td, .daterangepicker th {
51
+ -webkit-border-radius: $border-radius-base;
52
+ -moz-border-radius: $border-radius-base;
53
+ border-radius: $border-radius-base;
54
+ }
55
+
56
+ .daterangepicker td.in-range {
57
+ background: lighten($brand-secondary, 33%);
58
+ -webkit-border-radius: 0;
59
+ -moz-border-radius: 0;
60
+ border-radius: 0;
61
+ }
62
+
63
+ .daterangepicker td.start-date {
64
+ -webkit-border-radius: $border-radius-base 0 0 $border-radius-base;
65
+ -moz-border-radius: $border-radius-base 0 0 $border-radius-base;
66
+ border-radius: $border-radius-base 0 0 $border-radius-base;
67
+ }
68
+
69
+ .daterangepicker td.end-date {
70
+ -webkit-border-radius: 0 $border-radius-base $border-radius-base 0;
71
+ -moz-border-radius: 0 $border-radius-base $border-radius-base 0;
72
+ border-radius: 0 $border-radius-base $border-radius-base 0;
73
+ }
74
+
75
+ .daterangepicker td.start-date.end-date {
76
+ -webkit-border-radius: $border-radius-base;
77
+ -moz-border-radius: $border-radius-base;
78
+ border-radius: $border-radius-base;
79
+ }
80
+
81
+ .daterangepicker td.today.active, .daterangepicker td.active, .daterangepicker td.active:hover {
82
+ background-color: $brand-secondary;
83
+ border-color: $brand-secondary;
84
+ }
85
+ // scss-lint:enable all
@@ -6,7 +6,7 @@
6
6
  .navbar-brand {
7
7
  background: url(image-path('logo.svg')) no-repeat $padding-base center;
8
8
  font-size: 16px;
9
- line-height: ($navbar-height - 10px);
9
+ line-height: ($navbar-height - ($padding-small-vertical * 2));
10
10
  margin: 0;
11
11
  padding: $padding-small-vertical 0 $padding-small-vertical 50px;
12
12
 
@@ -11,27 +11,31 @@
11
11
  padding-top: $padding-base-vertical;
12
12
  margin: 0;
13
13
 
14
- label {
15
- font-weight: normal;
16
- font-style: italic;
17
- font-size: .9em;
18
- margin-left: $padding-small-horizontal;
19
-
20
- &:first-child {
21
- margin-left: 0;
22
- }
14
+ ul,
15
+ .pager {
16
+ margin-top: 0;
17
+ margin-bottom: 0;
23
18
  }
24
19
 
25
- .btn-group,
26
- .form-group,
27
- [class*='col-'] > .btn,
28
- [class*='col-'] > .btn:first-child {
29
- margin-top: 0;
20
+ // toolbar elements with margin-bottom
21
+ // scss-lint:disable SelectorFormat
22
+ .btn,
23
+ .chosen-single,
24
+ .control-label,
25
+ .form-control,
26
+ .Select,
27
+ input,
28
+ label {
30
29
  margin-bottom: $padding-base-vertical;
31
30
  }
32
31
 
33
- .btn,
32
+ .chosen-container .chosen-drop {
33
+ margin-top: -($padding-base-vertical + 1px);
34
+ }
35
+
36
+ // toolbar elements with margin-left
34
37
  .btn-group,
38
+ .btn,
35
39
  .chosen-single,
36
40
  .form-control,
37
41
  .form-group {
@@ -40,50 +44,70 @@
40
44
  &:first-child {
41
45
  margin-left: 0;
42
46
  }
47
+
48
+ > & {
49
+ margin-left: 0;
50
+ }
43
51
  }
44
52
 
45
- .form-group .form-group {
46
- margin: 0;
53
+ label {
54
+ font-weight: normal;
55
+ font-style: italic;
56
+ font-size: .9em;
57
+ margin-left: $padding-small-horizontal;
58
+
59
+ &:first-child {
60
+ margin-left: 0;
61
+ }
62
+
63
+ + .form-control,
64
+ + .form-group,
65
+ + .input-group,
66
+ + input,
67
+ + select {
68
+ margin-left: 0;
69
+ }
47
70
  }
48
71
 
49
- // React components
72
+ // React Select component
50
73
  // scss-lint:disable SelectorFormat
51
74
  .Select {
52
75
  display: inline-block;
53
76
  vertical-align: middle;
54
77
  min-width: 200px;
55
- }
56
78
 
57
- // toolbar checkboxes appear as toggleable buttons
58
- .ui-components-checkbox-list li {
59
- margin-left: $padding-small;
60
- float: left;
79
+ .Select-control,
80
+ .Select-placeholder,
81
+ .Select-input {
82
+ line-height: 31px;
83
+ height: 31px;
84
+ }
61
85
  }
62
86
 
63
- .checkbox {
64
- @extend .btn;
65
- @extend .btn-sm;
66
- @extend .btn-default;
87
+ .input-group .input-group-btn,
88
+ .input-group .input-group-addon {
89
+ @extend %toolbar-default-btn;
67
90
 
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;
91
+ &:first-child {
92
+ margin-left: 0;
93
+ border-radius: $border-radius-base 0 0 $border-radius-base;
77
94
  }
78
95
 
79
- &.active {
80
- @extend .btn.active;
96
+ &:last-child {
97
+ margin-left: 0;
98
+ border-radius: 0 $border-radius-base $border-radius-base 0;
81
99
  }
82
100
  }
83
101
  }
84
102
 
85
103
  .toolbar-default {
86
- background-color: $gray-lighter;
104
+ background-color: $body-bg;
105
+ border-bottom: 1px solid darken($body-bg, 3%);
106
+
107
+ .toolbar-primary + & {
108
+ border: 1px solid darken($body-bg, 3%);
109
+ border-top: 0;
110
+ }
87
111
  }
88
112
 
89
113
  .toolbar-primary {
@@ -107,55 +131,69 @@
107
131
  }
108
132
  }
109
133
 
110
- .btn {
134
+ %toolbar-default-btn {
111
135
  border-color: transparent;
112
136
 
113
- &:active,
114
- &.active,
115
- &:focus,
116
- &.focus,
117
137
  &:hover,
118
138
  &.hover,
119
139
  .open > &.dropdown-toggle {
120
140
  background-color: darken($brand-secondary, 5%);
121
141
  color: $white;
122
142
  border-color: darken($brand-secondary, 10%);
143
+
144
+ svg {
145
+ fill: $white;
146
+ }
123
147
  }
124
148
 
149
+ &:active,
150
+ &.active,
151
+ &:focus,
152
+ &.focus,
125
153
  &:active:focus,
126
154
  &:active.focus,
127
- &:active:hover,
128
- &:active.hover,
129
155
  &.active:focus,
130
- &.active.focus {
156
+ &.active.focus,
157
+ &:active:hover,
158
+ &.active:hover {
131
159
  background-color: darken($brand-secondary, 10%);
132
160
  color: $white;
133
- border-color: darken($brand-secondary, 10%);
161
+ border-color: transparent;
162
+
163
+ svg {
164
+ fill: $white;
165
+ }
134
166
  }
135
167
  }
136
168
 
169
+ .btn {
170
+ @extend %toolbar-default-btn;
171
+ }
172
+
137
173
  .btn-default {
138
174
  color: $white;
175
+
176
+ svg {
177
+ fill: $white;
178
+ }
139
179
  }
140
180
 
141
181
  .btn[disabled],
142
182
  .btn.disabled {
143
183
  background-color: transparent;
144
184
  }
145
- }
146
185
 
147
- .nav-tabs {
148
- border-bottom-color: $body-bg;
186
+ // btn-groups from lists (extend li.active state to child .btn)
187
+ .btn-group li {
149
188
 
150
- li {
151
- margin-bottom: 0;
189
+ &.active > .btn {
190
+ @extend %toolbar-default-btn.active;
191
+ }
152
192
 
153
- &.active a {
154
- background-color: $white;
193
+ &.active > .btn:focus,
194
+ &.active > .btn.focus,
195
+ &.active > .btn:hover {
196
+ @extend %toolbar-default-btn.active.focus;
155
197
  }
156
198
  }
157
199
  }
158
-
159
- .row > .nav-tabs {
160
- padding: 0 $padding-base;
161
- }