kaui 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/Gemfile +1 -1
  4. data/README.md +10 -15
  5. data/app/assets/images/kaui/duck.png +0 -0
  6. data/app/assets/images/kaui/logo.png +0 -0
  7. data/app/assets/images/kaui/search.png +0 -0
  8. data/app/assets/images/kaui/search_white.png +0 -0
  9. data/app/assets/javascripts/application.js +3 -0
  10. data/app/assets/javascripts/kaui/bootstrap-tweaks.js +3 -0
  11. data/app/assets/javascripts/kaui/kaui.js +99 -0
  12. data/app/assets/stylesheets/application.css +3 -1
  13. data/app/assets/stylesheets/bootstrap_and_overrides.less +39 -0
  14. data/app/assets/stylesheets/kaui/common.less +538 -0
  15. data/app/assets/stylesheets/kaui/datatable.less +75 -0
  16. data/app/assets/stylesheets/kaui/header.less +186 -0
  17. data/app/assets/stylesheets/kaui/home.less +82 -0
  18. data/app/assets/stylesheets/kaui/invoice.less +54 -0
  19. data/app/assets/stylesheets/kaui/kaui.less +16 -0
  20. data/app/assets/stylesheets/kaui/payment.less +29 -0
  21. data/app/assets/stylesheets/kaui/subscription.less +5 -0
  22. data/app/assets/stylesheets/kaui/tags.less +175 -0
  23. data/app/assets/stylesheets/kaui/timeline.less +4 -0
  24. data/app/controllers/kaui/account_emails_controller.rb +18 -18
  25. data/app/controllers/kaui/account_tags_controller.rb +8 -30
  26. data/app/controllers/kaui/account_timelines_controller.rb +13 -23
  27. data/app/controllers/kaui/accounts_controller.rb +65 -62
  28. data/app/controllers/kaui/admin_allowed_users_controller.rb +48 -32
  29. data/app/controllers/kaui/admin_tenants_controller.rb +147 -142
  30. data/app/controllers/kaui/bundle_tags_controller.rb +9 -33
  31. data/app/controllers/kaui/bundles_controller.rb +23 -62
  32. data/app/controllers/kaui/chargebacks_controller.rb +5 -11
  33. data/app/controllers/kaui/charges_controller.rb +11 -18
  34. data/app/controllers/kaui/credits_controller.rb +19 -22
  35. data/app/controllers/kaui/custom_fields_controller.rb +44 -16
  36. data/app/controllers/kaui/engine_controller.rb +56 -3
  37. data/app/controllers/kaui/engine_controller_util.rb +75 -1
  38. data/app/controllers/kaui/home_controller.rb +19 -0
  39. data/app/controllers/kaui/invoice_items_controller.rb +16 -21
  40. data/app/controllers/kaui/invoices_controller.rb +31 -53
  41. data/app/controllers/kaui/payment_methods_controller.rb +14 -46
  42. data/app/controllers/kaui/payments_controller.rb +60 -69
  43. data/app/controllers/kaui/refunds_controller.rb +11 -25
  44. data/app/controllers/kaui/registrations_controller.rb +38 -0
  45. data/app/controllers/kaui/subscriptions_controller.rb +82 -95
  46. data/app/controllers/kaui/tag_definitions_controller.rb +1 -5
  47. data/app/controllers/kaui/tags_controller.rb +17 -17
  48. data/app/controllers/kaui/tenants_controller.rb +38 -55
  49. data/app/controllers/kaui/transactions_controller.rb +8 -15
  50. data/app/helpers/kaui/application_helper.rb +4 -0
  51. data/app/helpers/kaui/object_helper.rb +24 -0
  52. data/app/helpers/kaui/payment_method_helper.rb +9 -0
  53. data/app/helpers/kaui/subscription_helper.rb +1 -1
  54. data/app/helpers/kaui/uuid_helper.rb +1 -0
  55. data/app/models/kaui/ability.rb +7 -1
  56. data/app/models/kaui/account.rb +6 -2
  57. data/app/models/kaui/account_email.rb +10 -0
  58. data/app/models/kaui/allowed_user.rb +16 -4
  59. data/app/models/kaui/audit_log.rb +5 -3
  60. data/app/models/kaui/bundle.rb +6 -11
  61. data/app/models/kaui/credit.rb +3 -0
  62. data/app/models/kaui/invoice.rb +10 -15
  63. data/app/models/kaui/invoice_payment.rb +10 -13
  64. data/app/models/kaui/killbill_registerable.rb +7 -0
  65. data/app/models/kaui/payment.rb +19 -12
  66. data/app/models/kaui/payment_method.rb +9 -0
  67. data/app/models/kaui/payment_state.rb +52 -0
  68. data/app/models/kaui/tag.rb +14 -0
  69. data/app/models/kaui/tag_definition.rb +8 -2
  70. data/app/models/kaui/user.rb +5 -4
  71. data/app/views/kaui/account_emails/_account_emails_table.html.erb +12 -9
  72. data/app/views/kaui/account_emails/_form.html.erb +9 -9
  73. data/app/views/kaui/account_emails/new.html.erb +9 -2
  74. data/app/views/kaui/account_tags/_form.html.erb +20 -29
  75. data/app/views/kaui/account_tags/_form_bar.html.erb +21 -0
  76. data/app/views/kaui/account_tags/edit.html.erb +9 -4
  77. data/app/views/kaui/account_timelines/show.html.erb +204 -287
  78. data/app/views/kaui/accounts/_account_info.html.erb +108 -0
  79. data/app/views/kaui/accounts/_billing_info.html.erb +129 -0
  80. data/app/views/kaui/accounts/_form.html.erb +127 -115
  81. data/app/views/kaui/accounts/_payment_methods.html.erb +28 -0
  82. data/app/views/kaui/accounts/edit.html.erb +10 -0
  83. data/app/views/kaui/accounts/index.html.erb +38 -23
  84. data/app/views/kaui/accounts/new.html.erb +9 -4
  85. data/app/views/kaui/accounts/show.html.erb +4 -106
  86. data/app/views/kaui/admin_allowed_users/_form.html.erb +19 -0
  87. data/app/views/kaui/admin_allowed_users/index.html.erb +35 -18
  88. data/app/views/kaui/admin_allowed_users/new.html.erb +9 -21
  89. data/app/views/kaui/admin_allowed_users/show.html.erb +42 -50
  90. data/app/views/kaui/admin_tenants/_form.html.erb +25 -0
  91. data/app/views/kaui/admin_tenants/_tenants_table.html.erb +27 -0
  92. data/app/views/kaui/admin_tenants/index.html.erb +14 -23
  93. data/app/views/kaui/admin_tenants/new.html.erb +8 -37
  94. data/app/views/kaui/admin_tenants/show.html.erb +128 -113
  95. data/app/views/kaui/bundle_tags/_form.html.erb +20 -28
  96. data/app/views/kaui/bundle_tags/_form_bar.html.erb +21 -0
  97. data/app/views/kaui/bundle_tags/edit.html.erb +9 -4
  98. data/app/views/kaui/bundles/index.html.erb +76 -29
  99. data/app/views/kaui/bundles/transfer.html.erb +28 -28
  100. data/app/views/kaui/chargebacks/_form.html.erb +31 -29
  101. data/app/views/kaui/chargebacks/new.html.erb +9 -4
  102. data/app/views/kaui/charges/_form.html.erb +35 -59
  103. data/app/views/kaui/charges/new.html.erb +9 -4
  104. data/app/views/kaui/credits/_form.html.erb +32 -59
  105. data/app/views/kaui/credits/new.html.erb +9 -4
  106. data/app/views/kaui/custom_fields/_form.html.erb +31 -0
  107. data/app/views/kaui/custom_fields/index.html.erb +33 -20
  108. data/app/views/kaui/custom_fields/new.html.erb +10 -0
  109. data/app/views/kaui/home/index.html.erb +12 -9
  110. data/app/views/kaui/invoice_items/_edit_form.html.erb +30 -0
  111. data/app/views/kaui/invoice_items/edit.html.erb +10 -91
  112. data/app/views/kaui/invoices/_invoice_table.html.erb +113 -0
  113. data/app/views/kaui/invoices/index.html.erb +31 -22
  114. data/app/views/kaui/invoices/show.html.erb +77 -91
  115. data/app/views/kaui/layouts/kaui_account_navbar.html.erb +11 -0
  116. data/app/views/kaui/layouts/kaui_application.html.erb +14 -53
  117. data/app/views/kaui/layouts/kaui_flash.html.erb +17 -0
  118. data/app/views/kaui/layouts/kaui_footer.html.erb +2 -0
  119. data/app/views/kaui/layouts/kaui_header.html.erb +17 -0
  120. data/app/views/kaui/layouts/kaui_navbar.html.erb +75 -0
  121. data/app/views/kaui/payment_methods/_form.html.erb +26 -23
  122. data/app/views/kaui/payment_methods/_new_creditcard_payment_method.html.erb +46 -41
  123. data/app/views/kaui/payment_methods/_payment_methods_details_table.html.erb +25 -0
  124. data/app/views/kaui/payment_methods/_payment_methods_table.html.erb +50 -52
  125. data/app/views/kaui/payment_methods/new.html.erb +9 -4
  126. data/app/views/kaui/payments/_form.html.erb +55 -0
  127. data/app/views/kaui/payments/_payment_table.html.erb +117 -0
  128. data/app/views/kaui/payments/index.html.erb +31 -22
  129. data/app/views/kaui/payments/new.html.erb +9 -92
  130. data/app/views/kaui/payments/show.html.erb +38 -2
  131. data/app/views/kaui/refunds/_form.html.erb +240 -0
  132. data/app/views/kaui/refunds/new.html.erb +8 -280
  133. data/app/views/kaui/registrations/_form.html.erb +19 -0
  134. data/app/views/kaui/registrations/new.html.erb +10 -0
  135. data/app/views/kaui/sessions/_form.html.erb +19 -0
  136. data/app/views/kaui/sessions/new.html.erb +7 -18
  137. data/app/views/kaui/subscriptions/_edit_form.html.erb +26 -0
  138. data/app/views/kaui/subscriptions/_form.html.erb +34 -31
  139. data/app/views/kaui/subscriptions/_subscriptions_table.html.erb +37 -24
  140. data/app/views/kaui/subscriptions/edit.html.erb +10 -30
  141. data/app/views/kaui/subscriptions/new.html.erb +14 -11
  142. data/app/views/kaui/tag_definitions/_form.html.erb +14 -11
  143. data/app/views/kaui/tag_definitions/index.html.erb +56 -30
  144. data/app/views/kaui/tag_definitions/new.html.erb +9 -2
  145. data/app/views/kaui/tags/_tags_table.html.erb +7 -10
  146. data/app/views/kaui/tags/index.html.erb +29 -20
  147. data/app/views/kaui/tenants/_form.html.erb +13 -0
  148. data/app/views/kaui/tenants/index.html.erb +9 -16
  149. data/app/views/kaui/transactions/_form.html.erb +47 -67
  150. data/app/views/kaui/transactions/new.html.erb +9 -2
  151. data/config/initializers/killbill_registerable.rb +4 -0
  152. data/config/routes.rb +88 -93
  153. data/kaui.gemspec +11 -2
  154. data/lib/kaui/engine.rb +6 -4
  155. data/lib/kaui/version.rb +1 -1
  156. data/lib/kaui.rb +24 -1
  157. data/test/dummy/config/application.rb +2 -0
  158. data/test/dummy/config/database.yml +6 -3
  159. data/test/dummy/config/initializers/killbill_client.rb +0 -2
  160. data/test/fixtures/catalog-v1.xml +74 -0
  161. data/test/fixtures/catalog_translation_fr-v1.properties +1 -0
  162. data/test/fixtures/invoice_template-v1.html +100 -0
  163. data/test/fixtures/invoice_translation_fr-v1.properties +23 -0
  164. data/test/fixtures/overdue-v1.xml +49 -0
  165. data/test/fixtures/stripe.yml +2 -0
  166. data/test/functional/kaui/account_emails_controller_test.rb +35 -8
  167. data/test/functional/kaui/account_tags_controller_test.rb +8 -8
  168. data/test/functional/kaui/account_timelines_controller_test.rb +6 -7
  169. data/test/functional/kaui/accounts_controller_test.rb +72 -10
  170. data/test/functional/kaui/admin_allowed_users_controller_test.rb +6 -5
  171. data/test/functional/kaui/admin_tenants_controller_test.rb +104 -48
  172. data/test/functional/kaui/bundle_tags_controller_test.rb +14 -9
  173. data/test/functional/kaui/bundles_controller_test.rb +59 -23
  174. data/test/functional/kaui/chargebacks_controller_test.rb +29 -7
  175. data/test/functional/kaui/charges_controller_test.rb +31 -10
  176. data/test/functional/kaui/credits_controller_test.rb +25 -6
  177. data/test/functional/kaui/custom_fields_controller_test.rb +25 -1
  178. data/test/functional/kaui/functional_test_helper_nosetup.rb +6 -4
  179. data/test/functional/kaui/home_controller_test.rb +24 -0
  180. data/test/functional/kaui/invoice_items_controller_test.rb +56 -8
  181. data/test/functional/kaui/invoices_controller_test.rb +27 -18
  182. data/test/functional/kaui/payment_methods_controller_test.rb +2 -22
  183. data/test/functional/kaui/payments_controller_test.rb +8 -3
  184. data/test/functional/kaui/refunds_controller_test.rb +40 -21
  185. data/test/functional/kaui/subscriptions_controller_test.rb +77 -24
  186. data/test/functional/kaui/tag_definitions_controller_test.rb +1 -7
  187. data/test/functional/kaui/tags_controller_test.rb +1 -1
  188. data/test/functional/kaui/tenants_controller_test.rb +9 -9
  189. data/test/functional/kaui/transactions_controller_test.rb +41 -16
  190. data/test/integration/kaui/integration_test_helper.rb +0 -1
  191. data/test/integration/kaui/navigation_test.rb +4 -6
  192. data/test/test_helper.rb +2 -0
  193. metadata +155 -28
  194. data/Gemfile.lock +0 -210
  195. data/app/assets/stylesheets/bootstrap_and_overrides.css +0 -7
  196. data/app/assets/stylesheets/datatables.scss +0 -14
  197. data/app/assets/stylesheets/layout.scss +0 -19
  198. data/app/views/kaui/account_emails/show.html.erb +0 -25
  199. data/app/views/kaui/account_tags/_account_tags_table.html.erb +0 -32
  200. data/app/views/kaui/account_tags/show.html.erb +0 -6
  201. data/app/views/kaui/account_timelines/index.html.erb +0 -14
  202. data/app/views/kaui/bundle_tags/_bundle_tags_table.html.erb +0 -31
  203. data/app/views/kaui/bundle_tags/show.html.erb +0 -6
  204. data/app/views/kaui/bundles/show.html.erb +0 -18
  205. data/app/views/kaui/payment_methods/index.html.erb +0 -30
  206. data/app/views/kaui/payment_methods/show.html.erb +0 -3
  207. data/app/views/kaui/payments/_payments_table.html.erb +0 -41
  208. data/app/views/kaui/subscriptions/index.html.erb +0 -15
  209. data/app/views/kaui/subscriptions/show.html.erb +0 -33
  210. data/app/views/kaui/tag_definitions/show.html.erb +0 -15
  211. data/vendor/assets/images/img/glyphicons-halflings-white.png +0 -0
  212. data/vendor/assets/images/img/glyphicons-halflings.png +0 -0
  213. data/vendor/assets/stylesheets/css/bootstrap-datepicker.cd46d38.css +0 -274
@@ -0,0 +1,538 @@
1
+ /*
2
+ * Basic & Common
3
+ */
4
+ @import url(https://fonts.googleapis.com/css?family=Lato:400,700,900,300);
5
+
6
+ body {
7
+ background: #f9f9f9;
8
+ animation: all 0.5s;
9
+ font-family: "Lato", sans-serif;
10
+ color: rgb(119, 119, 119);
11
+ padding-bottom: 50px;
12
+ }
13
+
14
+ h1, h2, h3 {
15
+ margin: 0 0 20px;
16
+ font-family: "Lato", sans-serif;
17
+ }
18
+
19
+ h1 {
20
+ font-size: 18px;
21
+ color: #e44c3a;
22
+ text-transform: capitalize;
23
+ line-height: 1.333;
24
+ padding: 0 30px 10px;
25
+ border-bottom: 1px solid #ccc;
26
+ font-weight: 700;
27
+ }
28
+
29
+ h2 {
30
+ font-size: 20px;
31
+ color: rgb(49, 49, 49);
32
+ line-height: 1.5;
33
+ text-align: center;
34
+ }
35
+
36
+ h3 {
37
+ font-size: 16px;
38
+ color: rgb(49, 49, 49);
39
+ line-height: 1.5;
40
+ text-align: center;
41
+ }
42
+
43
+ p {
44
+ font-size: 14px;
45
+ color: #999;
46
+ line-height: 20px;
47
+ text-align: left;
48
+ margin: 0 0 20px;
49
+ font-weight: 700;
50
+
51
+ span {
52
+ font-size: 14px;
53
+ margin: 0 10px;
54
+ }
55
+
56
+ &.title-align {
57
+ padding-left: 30px;
58
+ }
59
+ }
60
+
61
+ a {
62
+ color: #00919d;
63
+ transition: all 0.3s;
64
+
65
+ &:hover {
66
+ text-decoration: none;
67
+ color: darken(#00919d, 10%);
68
+ }
69
+
70
+ //fa-times highly associated with delete
71
+ .fa-times {
72
+ color: #e44c3a;
73
+
74
+ &:hover {
75
+ color: darken(#e44c3a, 10%);
76
+ }
77
+ }
78
+ }
79
+
80
+ small {
81
+ font-size: 14px;
82
+ display: inline-block;
83
+ text-transform: uppercase;
84
+ }
85
+
86
+ span {
87
+ &.success, &.fail {
88
+ display: inline-block;
89
+ font-size: 14px;
90
+ color: #fff;
91
+ font-weight: 400;
92
+ padding: 0px 10px;
93
+ background-color: #df4232;
94
+ }
95
+
96
+ &.success {
97
+ background-color: #5eca8f;
98
+ }
99
+
100
+ &.label {
101
+ font-size: 14px;
102
+ line-height: 20px;
103
+ padding: 0 5px;
104
+ display: inline-block;
105
+ font-weight: normal;
106
+ color: rgb(119, 119, 119);
107
+
108
+ &.label-success, &.label-danger {
109
+ color: #fff;
110
+ }
111
+ }
112
+ }
113
+
114
+ input, textarea, select {
115
+ border: 1px solid #cccccc;
116
+ border-radius: 0;
117
+ background: #fff;
118
+ line-height: 28px;
119
+ height: 30px;
120
+ font-size: 14px;
121
+ padding: 0 5px;
122
+ outline-color: #7dc7cd;
123
+
124
+ &::-webkit-input-placeholder {
125
+ color: #aaaaaa;
126
+ font-weight: strong;
127
+ font-style: italic;
128
+ }
129
+
130
+ &:-moz-placeholder {
131
+ /* Firefox 18- */
132
+ color: #aaaaaa;
133
+ font-weight: strong;
134
+ font-style: italic;
135
+ }
136
+
137
+ &::-moz-placeholder {
138
+ /* Firefox 19+ */
139
+ color: #aaaaaa;
140
+ font-weight: strong;
141
+ font-style: italic;
142
+ }
143
+
144
+ &:-ms-input-placeholder {
145
+ color: #aaaaaa;
146
+ font-weight: strong;
147
+ font-style: italic;
148
+ }
149
+ }
150
+
151
+ input[type=radio], input[type=checkbox] {
152
+ height: 15px;
153
+ line-height: 30px;
154
+ }
155
+
156
+ textarea {
157
+ line-height: 16px;
158
+ }
159
+
160
+ button, input[type="submit"] {
161
+ background: #00919d;
162
+ color: #fff;
163
+ text-transform: uppercase;
164
+ font-size: 12px;
165
+ padding: 10px 30px;
166
+ border-radius: 14px;
167
+ line-height: 12px;
168
+ border: 0;
169
+ transition: all 0.5s;
170
+
171
+ &:hover {
172
+ background: darken(#00919d, 10%);
173
+ color: #fff;
174
+ }
175
+ }
176
+
177
+ label {
178
+ cursor: pointer;
179
+ font-size: 100%;
180
+ color: #585858;
181
+ text-transform: none;
182
+ font-weight: normal;
183
+ }
184
+
185
+ hr {
186
+ border-color: #ccc;
187
+ }
188
+
189
+ table {
190
+ width: 100%;
191
+ font-size: 14px;
192
+ font-weight: 300;
193
+ border: 1px solid #f3f3f3;
194
+ padding: 0 60px;
195
+
196
+ @media (@phone) {
197
+ padding: 0 5px;
198
+ }
199
+
200
+ th {
201
+ background: #f3f3f3;
202
+ color: #989898;
203
+ font-size: 14px;
204
+ font-weight: 700;
205
+ text-transform: uppercase;
206
+ padding: 10px 20px;
207
+
208
+ @media (@phone) {
209
+ padding: 5px;
210
+ word-break: break-word;
211
+ }
212
+ }
213
+
214
+ tr {
215
+ border-bottom: 1px solid #f3f3f3;
216
+
217
+ &:last-of-type {
218
+ border: 0;
219
+ }
220
+ }
221
+
222
+ td {
223
+ padding: 20px;
224
+
225
+ @media (@phone) {
226
+ padding: 5px;
227
+ word-break: break-word;
228
+ }
229
+ }
230
+
231
+ &.mobile-data {
232
+ > span {
233
+ display: none;
234
+ }
235
+
236
+ @media (@phone) {
237
+ padding: 0;
238
+ display: block;
239
+ line-height: 0;
240
+ position: relative;
241
+ font-size: 0;
242
+ margin-bottom: 20px;
243
+
244
+ > span {
245
+ display: block;
246
+ font-size: 40px;
247
+ position: absolute;
248
+ right: 0;
249
+ bottom: -40px;
250
+ cursor: pointer;
251
+ color: #ccc;
252
+ z-index: 10;
253
+
254
+ &.left {
255
+ right: auto;
256
+ left: 0;
257
+ }
258
+
259
+ &.center {
260
+ font-size: 20px;
261
+ text-align: center;
262
+ width: 100%;
263
+ bottom: -20px;
264
+ z-index: 5;
265
+ }
266
+ }
267
+
268
+ tbody {
269
+ display: inline-block;
270
+ font-size: 0;
271
+ width: 50%;
272
+ }
273
+
274
+ thead {
275
+ display: inline-block;
276
+ width: 50%;
277
+ }
278
+
279
+ tr {
280
+ display: none;
281
+ line-height: initial;
282
+ width: 100%;
283
+ }
284
+
285
+ tr:first-of-type {
286
+ display: inline-block;
287
+
288
+ th, td {
289
+ width: 100% !important;
290
+ box-sizing: border-box;
291
+ }
292
+ }
293
+
294
+ td, th {
295
+ padding: 5px;
296
+ display: block;
297
+ width: 100%;
298
+ word-break: break-word;
299
+ }
300
+ }
301
+ }
302
+
303
+ &.transparent {
304
+ border: 0;
305
+ background-color: transparent;
306
+
307
+ th, td, tr {
308
+ border: 0;
309
+ background-color: transparent;
310
+ }
311
+
312
+ th {
313
+ font-weight: 700;
314
+ text-transform: none;
315
+ color: #585858 ;
316
+ }
317
+
318
+ th, td {
319
+ padding: 5px;
320
+
321
+ @media (@phone) {
322
+ padding: 2px;
323
+ font-size: 10px;
324
+ }
325
+ }
326
+
327
+ td {
328
+ font-weight: normal;
329
+ color: #777777;
330
+ }
331
+ }
332
+ }
333
+
334
+ table.transparent {
335
+ margin-bottom: 30px;
336
+
337
+ @media (@phone) {
338
+ th {
339
+ width: 40%;
340
+ word-break: break-all;
341
+ }
342
+
343
+ td {
344
+ width: 60%;
345
+ word-break: break-all;
346
+ }
347
+ }
348
+ }
349
+
350
+ table.subtitle {
351
+ margin-bottom: 10px;
352
+ th, td {
353
+ padding-left: 0 !important;
354
+ }
355
+ }
356
+
357
+ .container {
358
+ max-width: 1200px;
359
+ width: 100%;
360
+ margin: 0 auto;
361
+ }
362
+
363
+ .text-uppercase {
364
+ text-transform: uppercase;
365
+ }
366
+
367
+ .text-capitalize {
368
+ text-transform: capitalize;
369
+ }
370
+
371
+ .column-block {
372
+ padding: 30px 15px;
373
+ border-radius: 20px;
374
+ border: 1px solid #ccc;
375
+ background: #fff;
376
+ width: 100%;
377
+ margin-bottom: 50px;
378
+
379
+ &.square {
380
+ border-radius: 0;
381
+ box-shadow: 1px 3px 1px rgba(0, 0, 0, .11);
382
+ border: 0;
383
+ }
384
+ }
385
+
386
+ .info-wrapper {
387
+ border: 1px solid #ccc;
388
+ }
389
+
390
+ .fix-position {
391
+ padding-left: 45px;
392
+
393
+ @media (@phone) {
394
+ padding-left: 15px;
395
+ }
396
+ }
397
+
398
+ > .row {
399
+ > .col-md-5 {
400
+ @media (@phone) {
401
+ padding: 0 15px 0 25px;
402
+ }
403
+ }
404
+ }
405
+
406
+ .toggler {
407
+ border-bottom: 1px solid #ddd;
408
+ padding: 0 25px;
409
+ font-size: 14px;
410
+ line-height: 50px;
411
+ max-height: 50px;
412
+ overflow: hidden;
413
+ transition: all 0.5s;
414
+
415
+ @media (@phone) {
416
+ padding: 0 10px;
417
+ }
418
+
419
+ &:last-of-type {
420
+ border: 0;
421
+ }
422
+
423
+ &:hover {
424
+ background-color: #f9f9f9;
425
+ }
426
+
427
+ &.toggled {
428
+ background-color: #f9f9f9;
429
+ max-height: 1500px;
430
+
431
+ .first-line {
432
+ font-weight: 900;
433
+
434
+ > .fa-caret-down {
435
+ display: none;
436
+ }
437
+
438
+ > .fa-caret-up {
439
+ display: inline-block;
440
+ }
441
+ }
442
+
443
+ }
444
+
445
+ .fa-star {
446
+ color: #00919d;
447
+ }
448
+
449
+ .first-line {
450
+ cursor: pointer;
451
+
452
+ @media (@phone) {
453
+ font-size: 12px;
454
+ }
455
+
456
+ > .fa-caret-down {
457
+ float: right;
458
+ margin-left: 30px;
459
+ display: inline-block;
460
+ line-height: 50px;
461
+ color: #999;
462
+ }
463
+
464
+ > .fa-caret-up {
465
+ float: right;
466
+ margin-left: 30px;
467
+ display: none;
468
+ line-height: 50px;
469
+ color: #999;
470
+ }
471
+
472
+ a {
473
+ float: right;
474
+ margin-left: 30px;
475
+
476
+ &.default-payment-method, &.non-default-payment-method {
477
+ float: left;
478
+ margin-left: 0;
479
+ margin-right: 10px;
480
+ }
481
+ }
482
+ }
483
+
484
+ .expires {
485
+ float: right;
486
+
487
+ @media (@phone) {
488
+ display: none;
489
+ }
490
+ }
491
+
492
+ .toggle {
493
+ .actions {
494
+ margin: 0 -25px;
495
+ padding: 0 25px;
496
+ text-align: center;
497
+ border-bottom: 1px solid #ccc;
498
+ margin-bottom: 30px;
499
+
500
+ @media (@phone) {
501
+ margin: 0 -10px;
502
+ padding: 0 10px;
503
+ }
504
+
505
+ a {
506
+ margin: 0 20px;
507
+ text-transform: uppercase;
508
+ font-size: 12px;
509
+
510
+ i {
511
+ margin: 0 5px 0 0;
512
+ }
513
+
514
+ @media (@phone) {
515
+ width: 32%;
516
+ display: inline-block;
517
+ text-align: center;
518
+ margin: 0;
519
+ font-size: 10px;
520
+ }
521
+ }
522
+ }
523
+
524
+ table {
525
+ line-height: initial;
526
+ margin: 0 0 30px;
527
+ }
528
+ }
529
+ }
530
+
531
+ .filter-select {
532
+ margin: 10px 20px 30px 0;
533
+ }
534
+
535
+ hr.breathe {
536
+ margin-top: 45px;
537
+ margin-bottom: 45px;
538
+ }
@@ -0,0 +1,75 @@
1
+ .search {
2
+ table {
3
+ font-weight: 400;
4
+
5
+ th, td {
6
+ &:first-of-type {
7
+ padding-left: 60px;
8
+
9
+ @media (@phone) {
10
+ padding: 5px;
11
+ }
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ table.dataTable {
18
+ padding: 0;
19
+ }
20
+
21
+ table.dataTable thead th {
22
+ position: relative;
23
+ }
24
+
25
+ table.dataTable thead th,
26
+ table.dataTable tbody td {
27
+ vertical-align: middle;
28
+ }
29
+
30
+ table.dataTable thead th.sorting:after,
31
+ table.dataTable thead th.sorting_asc:after,
32
+ table.dataTable thead th.sorting_desc:after {
33
+ content: '' !important;
34
+ }
35
+
36
+ table.dataTable {
37
+ margin-top: 0 !important;
38
+ margin-bottom: 0 !important;
39
+
40
+ @media (@phone) {
41
+ margin-bottom: 30px !important;
42
+ }
43
+ }
44
+
45
+ table.dataTable thead th,
46
+ table.dataTable thead td {
47
+ font-size: 12px;
48
+ border-bottom: 0;
49
+ }
50
+
51
+ table.dataTable.no-footer {
52
+ border-bottom: 1px solid #dddddd;
53
+ }
54
+
55
+ .info-wrapper table.dataTable.no-footer {
56
+ border-bottom: 0;
57
+ }
58
+
59
+ #invoice-table tbody tr {
60
+ border-bottom: 1px solid #dddddd;
61
+ }
62
+
63
+ #accounts-table {
64
+ @media (@phone) {
65
+ width: 100% !important;
66
+ }
67
+ }
68
+
69
+ table.dataTable.table-condensed thead > tr > th {
70
+ border-right: 1px solid #c9c9c9;
71
+
72
+ &:last-of-type {
73
+ border-right: 0;
74
+ }
75
+ }