zuora_connect_ui 0.1.0

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.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +39 -0
  4. data/app/assets/javascripts/zuora_connect_ui/input.js +9 -0
  5. data/app/assets/javascripts/zuora_connect_ui.js +30 -0
  6. data/app/assets/stylesheets/_zuora_connect_ui.scss +125 -0
  7. data/app/assets/stylesheets/zuora_connect_ui/base.scss +130 -0
  8. data/app/assets/stylesheets/zuora_connect_ui/box.scss +115 -0
  9. data/app/assets/stylesheets/zuora_connect_ui/breadcrumb_bar.scss +110 -0
  10. data/app/assets/stylesheets/zuora_connect_ui/buttons.scss +185 -0
  11. data/app/assets/stylesheets/zuora_connect_ui/datatables.scss +290 -0
  12. data/app/assets/stylesheets/zuora_connect_ui/grid_view.scss +174 -0
  13. data/app/assets/stylesheets/zuora_connect_ui/input.scss +267 -0
  14. data/app/assets/stylesheets/zuora_connect_ui/modal.scss +40 -0
  15. data/app/assets/stylesheets/zuora_connect_ui/tabs.scss +42 -0
  16. data/app/helpers/input_helper.rb +6 -0
  17. data/app/views/partials/_admin_menu.html.erb +22 -0
  18. data/app/views/partials/_filters.html.erb +34 -0
  19. data/app/views/partials/_table.html.erb +395 -0
  20. data/app/views/peek/views/_connect.html.erb +5 -0
  21. data/lib/peek/views/connect.rb +13 -0
  22. data/lib/zuora_connect_ui/version.rb +3 -0
  23. data/lib/zuora_connect_ui.rb +13 -0
  24. data/vendor/assets/awesome-bootstrap-checkbox/css/awesome-bootstrap-checkbox.scss +256 -0
  25. data/vendor/assets/icons/css/icons.scss +7118 -0
  26. data/vendor/assets/icons/img/FontAwesome.otf +0 -0
  27. data/vendor/assets/icons/img/fontawesome-webfont.eot +0 -0
  28. data/vendor/assets/icons/img/fontawesome-webfont.svg +685 -0
  29. data/vendor/assets/icons/img/fontawesome-webfont.ttf +0 -0
  30. data/vendor/assets/icons/img/fontawesome-webfont.woff +0 -0
  31. data/vendor/assets/icons/img/fontawesome-webfont.woff2 +0 -0
  32. data/vendor/assets/icons/img/glyphicons-filetypes-regular.eot +0 -0
  33. data/vendor/assets/icons/img/glyphicons-filetypes-regular.svg +158 -0
  34. data/vendor/assets/icons/img/glyphicons-filetypes-regular.woff +0 -0
  35. data/vendor/assets/icons/img/glyphicons-halfling-life_preserver.png +0 -0
  36. data/vendor/assets/icons/img/glyphicons-halflings-red.png +0 -0
  37. data/vendor/assets/icons/img/glyphicons-halflings-regular.eot +0 -0
  38. data/vendor/assets/icons/img/glyphicons-halflings-regular.svg +229 -0
  39. data/vendor/assets/icons/img/glyphicons-halflings-regular.ttf +0 -0
  40. data/vendor/assets/icons/img/glyphicons-halflings-regular.woff +0 -0
  41. data/vendor/assets/icons/img/glyphicons-halflings-white.png +0 -0
  42. data/vendor/assets/icons/img/glyphicons-halflings.png +0 -0
  43. data/vendor/assets/icons/img/glyphicons-regular.eot +0 -0
  44. data/vendor/assets/icons/img/glyphicons-regular.otf +0 -0
  45. data/vendor/assets/icons/img/glyphicons-regular.svg +498 -0
  46. data/vendor/assets/icons/img/glyphicons-regular.ttf +0 -0
  47. data/vendor/assets/icons/img/glyphicons-regular.woff +0 -0
  48. data/vendor/assets/icons/img/glyphicons-social-regular.eot +0 -0
  49. data/vendor/assets/icons/img/glyphicons-social-regular.svg +79 -0
  50. data/vendor/assets/icons/img/glyphicons-social-regular.ttf +0 -0
  51. data/vendor/assets/icons/img/glyphicons-social-regular.woff +0 -0
  52. data/vendor/assets/icons/img/glyphicons_search.png +0 -0
  53. data/vendor/assets/icons/img/zuora.eot +0 -0
  54. data/vendor/assets/icons/img/zuora.svg +557 -0
  55. data/vendor/assets/icons/img/zuora.ttf +0 -0
  56. data/vendor/assets/icons/img/zuora.woff +0 -0
  57. metadata +211 -0
@@ -0,0 +1,256 @@
1
+ //
2
+ // Checkboxes
3
+ // --------------------------------------------------
4
+
5
+
6
+ $font-family-icon: 'FontAwesome' !default;
7
+ $fa-var-check: "\f00c" !default;
8
+ $check-icon: $fa-var-check !default;
9
+
10
+ @mixin checkbox-variant($parent, $color) {
11
+ #{$parent} input[type="checkbox"]:checked + label,
12
+ #{$parent} input[type="radio"]:checked + label {
13
+ &::before {
14
+ background-color: $color;
15
+ border-color: $color;
16
+ }
17
+ &::after{
18
+ color: #fff;
19
+ }
20
+ }
21
+ }
22
+
23
+ @mixin checkbox-variant-indeterminate($parent, $color) {
24
+ #{$parent} input[type="checkbox"]:indeterminate + label,
25
+ #{$parent} input[type="radio"]:indeterminate + label {
26
+ &::before {
27
+ background-color: $color;
28
+ border-color: $color;
29
+ }
30
+ &::after{
31
+ background-color: #fff;
32
+ }
33
+ }
34
+ }
35
+
36
+
37
+
38
+ .checkbox{
39
+ padding-left: 20px;
40
+
41
+ label{
42
+ display: inline-block;
43
+ vertical-align: middle;
44
+ position: relative;
45
+ padding-left: 5px;
46
+
47
+ &::before{
48
+ content: "";
49
+ display: inline-block;
50
+ position: absolute;
51
+ width: 17px;
52
+ height: 17px;
53
+ left: 0;
54
+ margin-left: -20px;
55
+ border: 1px solid $input-border;
56
+ border-radius: 3px;
57
+ background-color: $input-bg;
58
+ @include transition(border 0.15s ease-in-out, color 0.15s ease-in-out);
59
+ }
60
+
61
+ &::after{
62
+ display: inline-block;
63
+ position: absolute;
64
+ width: 16px;
65
+ height: 16px;
66
+ left: 0;
67
+ top: 0;
68
+ margin-left: -20px;
69
+ padding-left: 3px;
70
+ padding-top: 1px;
71
+ font-size: 11px;
72
+ color: $input-color;
73
+ line-height: 1.4;
74
+ }
75
+ }
76
+
77
+ input[type="checkbox"],
78
+ input[type="radio"] {
79
+ opacity: 0;
80
+ z-index: 1;
81
+ cursor: pointer;
82
+
83
+ &:focus + label::before{
84
+ @include tab-focus();
85
+ }
86
+
87
+ &:checked + label::after{
88
+ font-family: $font-family-icon;
89
+ content: $check-icon;
90
+ }
91
+
92
+ &:indeterminate + label::after{
93
+ display: block;
94
+ content: "";
95
+ width: 10px;
96
+ height: 3px;
97
+ background-color: #555555;
98
+ border-radius: 2px;
99
+ margin-left: -16.5px;
100
+ margin-top: 7px;
101
+ }
102
+
103
+ &:disabled{
104
+ cursor: not-allowed;
105
+ }
106
+
107
+ &:disabled + label{
108
+ opacity: 0.65;
109
+
110
+ &::before{
111
+ background-color: $input-bg-disabled;
112
+ cursor: not-allowed;
113
+ }
114
+ }
115
+
116
+ }
117
+
118
+ &.checkbox-circle label::before{
119
+ border-radius: 50%;
120
+ }
121
+
122
+ &.checkbox-inline{
123
+ margin-top: 0;
124
+ }
125
+ }
126
+
127
+ @include checkbox-variant('.checkbox-primary', $brand-primary);
128
+ @include checkbox-variant('.checkbox-danger', $brand-danger);
129
+ @include checkbox-variant('.checkbox-info', $brand-info);
130
+ @include checkbox-variant('.checkbox-warning', $brand-warning);
131
+ @include checkbox-variant('.checkbox-success', $brand-success);
132
+
133
+
134
+ @include checkbox-variant-indeterminate('.checkbox-primary', $brand-primary);
135
+ @include checkbox-variant-indeterminate('.checkbox-danger', $brand-danger);
136
+ @include checkbox-variant-indeterminate('.checkbox-info', $brand-info);
137
+ @include checkbox-variant-indeterminate('.checkbox-warning', $brand-warning);
138
+ @include checkbox-variant-indeterminate('.checkbox-success', $brand-success);
139
+
140
+ //
141
+ // Radios
142
+ // --------------------------------------------------
143
+
144
+ @mixin radio-variant($parent, $color) {
145
+ #{$parent} input[type="radio"]{
146
+ + label{
147
+ &::after{
148
+ background-color: $color;
149
+ }
150
+ }
151
+ &:checked + label{
152
+ &::before {
153
+ border-color: $color;
154
+ }
155
+ &::after{
156
+ background-color: $color;
157
+ }
158
+ }
159
+ }
160
+ }
161
+
162
+ .radio{
163
+ padding-left: 20px;
164
+
165
+ label{
166
+ display: inline-block;
167
+ vertical-align: middle;
168
+ position: relative;
169
+ padding-left: 5px;
170
+
171
+ &::before{
172
+ content: "";
173
+ display: inline-block;
174
+ position: absolute;
175
+ width: 17px;
176
+ height: 17px;
177
+ left: 0;
178
+ margin-left: -20px;
179
+ border: 1px solid $input-border;
180
+ border-radius: 50%;
181
+ background-color: $input-bg;
182
+ @include transition(border 0.15s ease-in-out);
183
+ }
184
+
185
+ &::after{
186
+ display: inline-block;
187
+ position: absolute;
188
+ content: " ";
189
+ width: 11px;
190
+ height: 11px;
191
+ left: 3px;
192
+ top: 3px;
193
+ margin-left: -20px;
194
+ border-radius: 50%;
195
+ background-color: $input-color;
196
+ @include scale(0, 0);
197
+
198
+ @include transition-transform(.1s cubic-bezier(.8,-0.33,.2,1.33));
199
+ //curve - http://cubic-bezier.com/#.8,-0.33,.2,1.33
200
+ }
201
+ }
202
+
203
+ input[type="radio"]{
204
+ opacity: 0;
205
+ z-index: 1;
206
+ cursor: pointer;
207
+
208
+ &:focus + label::before{
209
+ @include tab-focus();
210
+ }
211
+
212
+ &:checked + label::after{
213
+ @include scale(1, 1);
214
+ }
215
+
216
+ &:disabled{
217
+ cursor: not-allowed;
218
+ }
219
+
220
+ &:disabled + label{
221
+ opacity: 0.65;
222
+
223
+ &::before{
224
+ cursor: not-allowed;
225
+ }
226
+ }
227
+
228
+ }
229
+
230
+ &.radio-inline{
231
+ margin-top: 0;
232
+ }
233
+ }
234
+
235
+ @include radio-variant('.radio-primary', $brand-primary);
236
+ @include radio-variant('.radio-danger', $brand-danger);
237
+ @include radio-variant('.radio-info', $brand-info);
238
+ @include radio-variant('.radio-warning', $brand-warning);
239
+ @include radio-variant('.radio-success', $brand-success);
240
+
241
+
242
+ input[type="checkbox"],
243
+ input[type="radio"] {
244
+ &.styled:checked + label:after {
245
+ font-family: $font-family-icon;
246
+ content: $check-icon;
247
+ }
248
+ .styled:checked + label {
249
+ &::before {
250
+ color: #fff;
251
+ }
252
+ &::after {
253
+ color: #fff;
254
+ }
255
+ }
256
+ }