padma-assets 0.1.32 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/abilities/general_ability.rb +2 -1
  3. data/app/assets/javascripts/bootstrap-multiselect.js +1401 -0
  4. data/app/assets/javascripts/bootstrap.min.js +12 -0
  5. data/app/assets/javascripts/jquery-2.1.4.min.js +4 -0
  6. data/app/assets/javascripts/jquery-iframe-transport.js +156 -0
  7. data/app/assets/javascripts/jquery-tmpl-min.js +1 -0
  8. data/app/assets/javascripts/jquery.common.js +12 -0
  9. data/app/assets/javascripts/jquery.iframe-transport.js +156 -0
  10. data/app/assets/javascripts/jquery.postmessage-transport.js +108 -0
  11. data/app/assets/javascripts/jquery.rest_in_place.js +233 -0
  12. data/app/assets/javascripts/jquery.stickyheader.js +7 -5
  13. data/app/assets/javascripts/jquery.tipsy.js +243 -0
  14. data/app/assets/javascripts/jquery.xdr-transport.js +76 -0
  15. data/app/assets/javascripts/padma-assets.js +14 -2
  16. data/app/assets/stylesheets/bootstrap-multiselect.css +1 -0
  17. data/app/assets/stylesheets/common/custom.scss +1611 -0
  18. data/app/assets/stylesheets/common/ui.css.scss +488 -0
  19. data/app/assets/stylesheets/common/variables.scss +68 -0
  20. data/app/assets/stylesheets/custom/colors.css.scss +13 -0
  21. data/app/assets/stylesheets/custom/form.css.scss +37 -0
  22. data/app/assets/stylesheets/custom/tabs.scss +7 -0
  23. data/app/assets/stylesheets/header.css.erb +8 -148
  24. data/app/assets/stylesheets/header.scss +364 -0
  25. data/app/assets/stylesheets/layout_application.css +0 -5
  26. data/app/assets/stylesheets/layout_users.css +29 -28
  27. data/app/assets/stylesheets/pm-modal.scss +15 -9
  28. data/app/views/layouts/_header.html.erb +24 -20
  29. data/app/views/layouts/_lists_list.html.erb +39 -25
  30. data/app/views/layouts/_module_box.html.erb +70 -58
  31. metadata +21 -7
  32. data/app/assets/stylesheets/button.css.scss +0 -344
  33. data/app/assets/stylesheets/padma-accounts.scss +0 -3
  34. data/app/assets/stylesheets/reset.css +0 -102
  35. data/app/assets/stylesheets/tables.css.scss +0 -154
  36. data/app/views/layouts/_alpha_lists_list.html.erb +0 -46
@@ -0,0 +1,488 @@
1
+ // Import colors-ui
2
+ @import "../custom/colors";
3
+ @import "variables";
4
+
5
+ // Declare new variables
6
+ $font-headers-bold: Gotham-Bold, Helvetica, sans-serif;
7
+ $font-headers-medium: Gotham-Medium, Helvetica, sans-serif;
8
+
9
+ body {
10
+ color: $text-color;
11
+ font: {
12
+ family: $font-family-base;
13
+ }
14
+ }
15
+
16
+ a {
17
+ color: $link-color;
18
+ &:hover {
19
+ color: darken($link-color, 5%);
20
+ }
21
+ &:active,
22
+ &:focus {
23
+ color: darken($linkcolor, 10%);
24
+ }
25
+ }
26
+
27
+ h1,
28
+ h2 {
29
+ font-family: $font-headers-bold;
30
+ margin: 10px 0;
31
+ &:first-child {
32
+ margin-top: 0;
33
+ }
34
+ }
35
+
36
+ h5 {
37
+ font-family: $font-headers-medium;
38
+ }
39
+
40
+ h1 {
41
+ color: $basicblue;
42
+ font: {
43
+ size: 28px;
44
+ }
45
+ }
46
+
47
+ h2 {
48
+ font: {
49
+ size: 20px;
50
+ }
51
+ }
52
+
53
+ h3 {
54
+ font-weight: normal;
55
+ font-size: 100%;
56
+ color: #000;
57
+ }
58
+
59
+ h4 {
60
+ font: {
61
+ size: 14px;
62
+ }
63
+ }
64
+
65
+ h2,
66
+ h3,
67
+ h4,
68
+ h5 {
69
+ color: $basicgrey;
70
+ }
71
+
72
+ code {
73
+ white-space: pre-wrap;
74
+ }
75
+
76
+ p {
77
+ &:last-child {
78
+ margin-bottom: 0;
79
+ }
80
+ }
81
+
82
+ // Layout
83
+ .container {
84
+ max-width: 1200px;
85
+ width: 100%;
86
+ }
87
+
88
+ // Labels
89
+ // ======= Revisar
90
+ .label {
91
+ cursor: default;
92
+ .close {
93
+ float: none;
94
+ font: {
95
+ size: 16px;
96
+ }
97
+ line-height: normal;
98
+ position: relative;
99
+ top: 1px;
100
+ }
101
+ }
102
+
103
+ $color-funnel-content: #4d4d4d;
104
+ // Funnel
105
+ .funnel,
106
+ .funnel-nav-item {
107
+ display: -webkit-box;
108
+ display: -webkit-flex;
109
+ display: -ms-flexbox;
110
+ display: flex;
111
+ -webkit-box-orient: horizontal;
112
+ -webkit-box-direction: normal;
113
+ -webkit-flex-direction: row;
114
+ -ms-flex-direction: row;
115
+ flex-direction: row;
116
+ position: relative;
117
+ -webkit-user-select: none;
118
+ -moz-user-select: none;
119
+ -ms-user-select: none;
120
+ user-select: none;
121
+ }
122
+
123
+ .funnel-nav {
124
+ background-color: #fff;;
125
+ border-radius: 2px;
126
+ margin-bottom: 15px;
127
+ }
128
+
129
+ .funnel-nav-item {
130
+ -webkit-box-align: center;
131
+ -webkit-align-items: center;
132
+ -ms-flex-align: center;
133
+ align-items: center;
134
+ background-color: $bg-panel;
135
+ margin: 0 .5em 0 1em;
136
+ overflow: initial;
137
+ width: 25%;
138
+ //@for $i from 1 through 4 {
139
+ //&:nth-child(#{$i}) {
140
+ // background-color: darken($bg-panel, (15% * $i));
141
+ // &:before {
142
+ // border-color: darken($bg-panel, (15% * $i)) darken($bg-panel, (15% * $i)) darken($bg-panel, (15% * $i)) transparent;
143
+ // }
144
+ // &:after {
145
+ // border-left-color: darken($bg-panel, (15% * $i));
146
+ // }
147
+ // &:hover {
148
+ // background-color: darken($bg-panel, (10% * $i));
149
+ // &:before {
150
+ // border-color: darken($bg-panel, (10% * $i)) darken($bg-panel, (10% * $i)) darken($bg-panel, (10% * $i)) transparent;
151
+ // }
152
+ // &:after {
153
+ // border-left-color: darken($bg-panel, (10% * $i));
154
+ // }
155
+ // }
156
+ //}
157
+ //}
158
+ &:before {
159
+ bottom: 0;
160
+ content: "";
161
+ position: absolute;
162
+ top: 0;
163
+ border-width: 33.5px 0 33.5px 1em;
164
+ border-style: solid;
165
+ border-color: $bg-panel $bg-panel $bg-panel transparent;
166
+ left: -1em;
167
+ }
168
+ &:after {
169
+ content: "";
170
+ position: absolute;
171
+ top: 0;
172
+ border-top: 33.5px solid transparent;
173
+ border-bottom: 33.5px solid transparent;
174
+ border-left: 1em solid $bg-panel;
175
+ right: -1em;
176
+ }
177
+ &:first-child {
178
+ margin-left: 0;
179
+ &:before {
180
+ display: none;
181
+ }
182
+ }
183
+ &.active,
184
+ &.active:hover {
185
+ background-color: #fff;
186
+ &:before {
187
+ border-color: #fff #fff #fff transparent;
188
+ }
189
+ &:after {
190
+ border-left-color: #fff;
191
+ }
192
+ .funnel-value,
193
+ .funnel-content:before,
194
+ .funnel-content a {
195
+ color: #8c8c8c;
196
+ }
197
+ }
198
+ .funnel-value {
199
+ color: #949494;
200
+ -webkit-box-flex: 0;
201
+ -webkit-flex: none;
202
+ -ms-flex: none;
203
+ flex: none;
204
+ font: {
205
+ size: 36px;
206
+ }
207
+ margin-left: 20px;
208
+ }
209
+ .funnel-content {
210
+ -webkit-box-flex: 1;
211
+ -webkit-flex: 1;
212
+ -moz-box-flex: 1;
213
+ -ms-flex: 1;
214
+ flex: 1;
215
+ overflow: hidden;
216
+ }
217
+ }
218
+
219
+ .funnel-content {
220
+ position: relative;
221
+ $h: 20px;
222
+ &:before {
223
+ color: $color-funnel-content;
224
+ content: '|';
225
+ height: $h;
226
+ left: 5px;
227
+ margin-top: - ($h / 2);
228
+ position: absolute;
229
+ top: 50%;
230
+ }
231
+ a {
232
+ color: $color-funnel-content;
233
+ display: block;
234
+ overflow: hidden;
235
+ padding: 23.5px 30px 23.5px 15px;
236
+ text-overflow: ellipsis;
237
+ white-space: nowrap;
238
+ &:hover,
239
+ &:focus {
240
+ text-decoration: none;
241
+ }
242
+ }
243
+ }
244
+
245
+ @mixin offset-margin($margin, $value){
246
+ margin-#{$margin}: $value;
247
+ }
248
+
249
+ @for $i from 1 through 10 {
250
+ @each $margin in top, bottom {
251
+
252
+ .margin-#{$margin}-#{$i}0{
253
+ @include offset-margin($margin, 10px * $i)
254
+ }
255
+
256
+ }
257
+ }
258
+
259
+ .no-margin {
260
+ margin: 0;
261
+ }
262
+
263
+ .no-padding {
264
+ padding: 0;
265
+ }
266
+
267
+ .not-set {
268
+ color: $gray-light;
269
+ font: {
270
+ size: $font-size-base-sm;
271
+ style: italic;
272
+ weight: normal;
273
+ }
274
+ }
275
+
276
+ // Custom buttons
277
+ .btn-original {
278
+ background-color: transparent;
279
+ border: none;
280
+ color: $gray-dark;
281
+ cursor: pointer;
282
+ display: inline-block;
283
+ font: {
284
+ style: normal;
285
+ weight: normal;
286
+ }
287
+ outline: 0;
288
+ text-align: center;
289
+ -webkit-user-select: none;
290
+ -moz-user-select: none;
291
+ -ms-user-select: none;
292
+ -user-select: none;
293
+ vertical-align: middle;
294
+ word-wrap: normal;
295
+ }
296
+
297
+ .with-icon {
298
+ font: {
299
+ size: $font-size-base-sm;
300
+ }
301
+ height: 33px;
302
+ line-height: 33px;
303
+ padding: 0 1rem;
304
+ }
305
+
306
+ // Custom colors
307
+
308
+ // Typography
309
+ .bold {
310
+ font-weight: bold;
311
+ }
312
+
313
+ .uppercase {
314
+ text-transform: uppercase;
315
+ }
316
+
317
+ .not-allowed {
318
+ cursor: not-allowed;
319
+ }
320
+
321
+ // Dl horizontal flex
322
+ .dl-horizontal-flex {
323
+ display: -webkit-box;
324
+ display: -webkit-flex;
325
+ display: -ms-flexbox;
326
+ display: flex;
327
+ margin-bottom: 15px;
328
+ dt {
329
+ -webkit-box-flex: 0;
330
+ -webkit-flex: none;
331
+ -ms-flex: none;
332
+ flex: none;
333
+ }
334
+ dd {
335
+ -webkit-box-flex: 1;
336
+ -webkit-flex: 1;
337
+ -moz-box-flex: 1;
338
+ -ms-flex: 1;
339
+ flex: 1;
340
+ padding-left: 10px;
341
+ }
342
+ }
343
+
344
+ // Card
345
+ // Declare new variables for Card
346
+ $card-body-bg: #ebebeb;
347
+ $card-body-font-color: #4d4d4d;
348
+ $card-default-border-top: #999;
349
+ $card-primary-border-top: #16acf2;
350
+
351
+ .card {
352
+ background-color: $card-body-bg;
353
+ border-top: 4px solid transparent;
354
+ margin-bottom: 10px;
355
+ position: relative;
356
+ }
357
+
358
+ .card-default {
359
+ border-top-color: $card-default-border-top;
360
+ }
361
+
362
+ .card-primary {
363
+ border-top-color: $card-primary-border-top;
364
+ }
365
+
366
+ .card-title {
367
+ display: block;
368
+ font: {
369
+ size: 12px;
370
+ weight: bold;
371
+ }
372
+ margin: 0 0 5px;
373
+ overflow: hidden;
374
+ padding: 5px 5px 0;
375
+ text-overflow: ellipsis;
376
+ text-transform: uppercase;
377
+ white-space: nowrap;
378
+ @supports (display: -webkit-box) {
379
+ display: -webkit-box;
380
+ -webkit-box-orient: vertical;
381
+ -webkit-line-clamp: 2;
382
+ white-space: normal;
383
+ }
384
+ }
385
+
386
+ .card-body {
387
+ color: $card-body-font-color;
388
+ font: {
389
+ family: $font-family-sans-serif;
390
+ size: $font-size-base-sm;
391
+ }
392
+ min-height: 30px;
393
+ padding: 10px;
394
+ p {
395
+ &:last-child {
396
+ margin-bottom: 0;
397
+ }
398
+ }
399
+ }
400
+
401
+ .card-transparent {
402
+ background-color: transparent;
403
+ border: none;
404
+ }
405
+
406
+ // Filters
407
+ .formtastic {
408
+ li {
409
+ &.input {
410
+ display: table;
411
+ table-layout: fixed;
412
+ width: 100%;
413
+ + li.input {
414
+ margin-top: 10px;
415
+ }
416
+ &.hidden {
417
+ display: none;
418
+ }
419
+ }
420
+ &.select {
421
+ legend,
422
+ label {
423
+ &.label {
424
+ float: left;
425
+ }
426
+ }
427
+ > select {
428
+ display: inline-block;
429
+ vertical-align: middle;
430
+ width: auto;
431
+ }
432
+ }
433
+ }
434
+ legend,
435
+ label {
436
+ &.label {
437
+ border: none;
438
+ display: table-cell;
439
+ font: {
440
+ size: 14px;
441
+ weight: normal;
442
+ }
443
+ line-height: normal;
444
+ margin: 0;
445
+ padding: 4.5px 15px 4.5px 0;
446
+ text-align: right;
447
+ vertical-align: middle;
448
+ width: 35%;
449
+ }
450
+ }
451
+ legend.label {
452
+ float: left;
453
+ }
454
+ .fragments-group {
455
+ display: inline-block;
456
+ vertical-align: middle;
457
+ .fragment {
458
+ label {
459
+ display: none;
460
+ }
461
+ }
462
+ }
463
+ // checkbox
464
+ .choices-group {
465
+ .choice {
466
+ + .choice {
467
+ margin-left: 10px;
468
+ }
469
+ > label,
470
+ > legend {
471
+ border: none;
472
+ font: {
473
+ weight: normal;
474
+ }
475
+ margin: 0;
476
+ padding: 0;
477
+ }
478
+ input[type='checkbox'],
479
+ input[type='radio'] {
480
+ margin-right: 3px;
481
+ }
482
+ input[type='radio'] {
483
+ margin-top: 0;
484
+ position: static;
485
+ }
486
+ }
487
+ }
488
+ }
@@ -0,0 +1,68 @@
1
+ // Screens
2
+
3
+ // Screen small = tablet
4
+ $screen-sm: 768px !default;
5
+ $screen-sm-min: $screen-sm;
6
+
7
+ // Screen medium = desktop
8
+ $screen-md: 992px !default;
9
+ $screen-md-min: $screen-md;
10
+
11
+ // Screen lg = wide desktop
12
+ $screen-lg: 768px !default;
13
+ $screen-lg-min: $screen-lg;
14
+
15
+ // Colors
16
+ $gray-base: #000 !default;
17
+ $gray-darker: lighten($gray-base, 13.5%) !default; // #222
18
+ $gray-dark: lighten($gray-base, 20%) !default; // #333
19
+ $gray: lighten($gray-base, 33.5%) !default; // #555
20
+ $gray-light: lighten($gray-base, 46.7%) !default; // #777
21
+ $gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
22
+ $gray-font: #8c8c8c;
23
+ $color-link: #428bcA;
24
+
25
+ // Forms
26
+ $border-form-control: #ebebeb;
27
+ $bg-form-control-disabled: #f1f3f5;
28
+ $border-form-control-disabled: $bg-form-control-disabled;
29
+ $font-color-help-addon: #a7abb1;
30
+
31
+ // buttons
32
+ $bg-btn-primary: #1f9dd9; // button primary
33
+ $bg-btn-success: #5bbd72; // button success
34
+ $bg-btn-default: #ccc; // button default
35
+ $bg-btn-secondary: #ebebeb; // button secondary
36
+ $bg-btn-warning: #f0ad4e; // button warning
37
+ $bg-btn-danger: #d14836; // button danger
38
+
39
+ // Font
40
+ $font-family-sans-serif: Arial, sans-serif !default;
41
+ $font-family-base: $font-family-sans-serif;
42
+ $font-color-base: #4d4d4d;
43
+ $font-line-height-default: 1.42857143;
44
+ $font-line-height-xs: 1.5;
45
+ $padding-base-btn-default: 9px 25px;
46
+ $padding-base-btn-upper: 7.5px 12px;
47
+ $padding-base-btn-sm: 6px 12px;
48
+ $padding-base-btn-xs: 5px 10px;
49
+
50
+ // Color
51
+ $text-color: $gray-font;
52
+ $link-color: $color-link;
53
+
54
+ $font-size-base: 16px;
55
+ $font-size-base-md: ceil($font-size-base - 2); // 14px
56
+ $font-size-base-sm: ceil($font-size-base - 3); // 13px
57
+ $font-size-base-xs: ceil($font-size-base - 5); // 11px
58
+
59
+ // Background colors
60
+ $bg-panel: #ebebeb;
61
+ $bg-lightgrey: #f5f5f5;
62
+ $bg-table-footer: $bg-btn-secondary;
63
+
64
+ // Alerts
65
+ $bg-alert-success: $bg-btn-success;
66
+ $bg-alert-warning: #e4d045;
67
+ $bg-alert-danger: #d9534f;
68
+ $bg-alert-info: $bg-btn-primary;
@@ -0,0 +1,13 @@
1
+ // ** Variables - Colors ui
2
+ // -------------------------------------
3
+ $basicblue: #1f9dd9;
4
+ $basicgrey: #4d4d4d;
5
+ $lightgrey: #f2f2f2;
6
+ $linkcolor: #1f9dd9;
7
+ $bordergrey: #ebebeb;
8
+ $darkbgrey: #6f7b8a;
9
+ $error: #d9534f;
10
+ $warning: #e4d045;
11
+ $success: #5cb85c;
12
+ $lightblue: #1f9dd9;
13
+ $font-stack: Arial,sans-serif;
@@ -0,0 +1,37 @@
1
+ // Import colors-ui
2
+ @import "colors";
3
+
4
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
5
+ width:18px;
6
+ }
7
+
8
+ .form-label {
9
+ margin-top: 2px;
10
+ }
11
+
12
+ .edit-form select {
13
+ -moz-appearance: window;
14
+ -webkit-appearance: none;
15
+ -ms-appearance: none;
16
+ -o-appearance: none;
17
+ appearance: none;
18
+ background-color: transparent;
19
+
20
+ }
21
+
22
+ .contact_search_gender_input select:after {
23
+ margin:0 0 0 -42px;
24
+ }
25
+
26
+ #new_contact_search fieldset li.select:after {
27
+ display: inline-block;
28
+ position: relative;
29
+ right: 7%;
30
+ }
31
+
32
+
33
+ #new_contact_search li.select:after{
34
+ display: inline-block;
35
+ position: relative;
36
+ right: 8%;
37
+ }
@@ -0,0 +1,7 @@
1
+ @import "colors";
2
+ @import "../common/variables";
3
+
4
+ #users_article .tab-content {
5
+ height:220px;
6
+ overflow:scroll;
7
+ }