ama_css 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +29 -0
  7. data/Rakefile +1 -0
  8. data/ama_css.gemspec +25 -0
  9. data/app/assets/images/foundation/ama_logo.png +0 -0
  10. data/app/assets/images/foundation/bkg-utility-bar.gif +0 -0
  11. data/app/assets/images/foundation/btn-search.gif +0 -0
  12. data/app/assets/images/foundation/calendar.png +0 -0
  13. data/app/assets/images/foundation/exclamation.png +0 -0
  14. data/app/assets/images/foundation/lightbulb.png +0 -0
  15. data/app/assets/images/foundation/lightbulb_off.png +0 -0
  16. data/app/assets/images/foundation/lock.png +0 -0
  17. data/app/assets/javascripts/foundation/index.js +0 -0
  18. data/app/assets/stylesheets/foundation/_grid.settings.scss +10 -0
  19. data/app/assets/stylesheets/foundation/_variables.scss +136 -0
  20. data/app/assets/stylesheets/foundation/application.css.scss +18 -0
  21. data/app/assets/stylesheets/foundation/base/_elements.scss +129 -0
  22. data/app/assets/stylesheets/foundation/base/_icons-block.scss +46 -0
  23. data/app/assets/stylesheets/foundation/base/_icons-line.scss +46 -0
  24. data/app/assets/stylesheets/foundation/base/_icons-social.scss +63 -0
  25. data/app/assets/stylesheets/foundation/base/_normalize.scss +397 -0
  26. data/app/assets/stylesheets/foundation/index.css +0 -0
  27. data/app/assets/stylesheets/foundation/layout/components.scss +91 -0
  28. data/app/assets/stylesheets/foundation/layout/layout.scss +181 -0
  29. data/app/assets/stylesheets/foundation/modules/forms.scss +140 -0
  30. data/app/assets/stylesheets/foundation/modules/login.scss +36 -0
  31. data/app/assets/stylesheets/foundation/modules/module.css.scss +353 -0
  32. data/app/assets/stylesheets/foundation/modules/module.mobile.css.scss +550 -0
  33. data/app/assets/stylesheets/foundation/oauths.css.scss +3 -0
  34. data/app/assets/stylesheets/foundation/theme/theme.scss +65 -0
  35. data/lib/ama_css/version.rb +3 -0
  36. data/lib/ama_css.rb +8 -0
  37. metadata +136 -0
@@ -0,0 +1,550 @@
1
+ /*components*/
2
+ .inner{
3
+ padding:0 $base-padding*.25;
4
+ }
5
+ .box{
6
+ @include boxRadius(big);
7
+ padding: $base-padding / 2;
8
+ }
9
+ .widget{
10
+ @extend .box;
11
+ }
12
+ .widget.outline{
13
+ border: $color-border $base-border-thickness solid;
14
+ padding:0;
15
+ overflow:hidden;
16
+ h4{
17
+ margin-top:0;
18
+ -webkit-border-radius: 0 0 $box-radius-big 0;
19
+ -moz-border-radius: 0 0 $box-radius-big 0;
20
+ border-radius: 0 0 $box-radius-big 0;
21
+ padding:$base-padding/2;
22
+ color:$color-white;
23
+ background-color:$color-primary;
24
+ width:20em;
25
+ margin-bottom:0;
26
+ }
27
+ }
28
+ .widget.outline.receipt-renew{
29
+ padding:$base-padding;
30
+ }
31
+ .widget.filled{
32
+ background-color: lighten($color-primary,70);
33
+ }
34
+ footer{
35
+ margin-top:$base-margin;
36
+ }
37
+
38
+ /* Menus */
39
+ nav li{
40
+ list-style:none;
41
+ margin:0 0 1.2em 0;
42
+ padding:0;
43
+ }
44
+ nav ul{
45
+ margin-left:0;
46
+ }
47
+ .menu-hybrid{
48
+ position:absolute;
49
+ background-repeat:no-repeat;
50
+ background-position:right top;
51
+ width:16em;
52
+ cursor:pointer;
53
+ top:$base-margin;
54
+ right:$base-margin;
55
+ .menu{
56
+ display:none;
57
+ }
58
+ .menu li a{
59
+ display:inline-block;
60
+ padding-bottom:$base-padding/4;
61
+ color:$color-white;
62
+ }
63
+ .ss-icon{
64
+ font-size:2em;
65
+ }
66
+ .menu-profile, .menu-www{
67
+ padding:$base-padding/2;
68
+ -webkit-box-shadow: 1px 1px 2px rgba(50, 50, 50, 0.4);
69
+ -moz-box-shadow: 1px 1px 2px rgba(50, 50, 50, 0.4);
70
+ box-shadow: 1px 1px 2px rgba(50, 50, 50, 0.4);
71
+ @extend %boxRadius-small;
72
+ @extend .color-primary;
73
+ }
74
+ }
75
+ .menu-profile{
76
+ label{
77
+ color:$color-white;
78
+ }
79
+ }
80
+ .menu-hybrid.show{
81
+ height:auto;
82
+ z-index:100;
83
+ .menu{
84
+ display:block;
85
+ margin-bottom:$base-margin/4;
86
+ }
87
+ .ss-icon{
88
+ color:$color-white;
89
+ }
90
+ }
91
+ .menu-pricing{
92
+ text-align:right;
93
+ }
94
+
95
+ .applogo{
96
+ h2{
97
+ font-size:1.3em;
98
+ margin:0;
99
+ }
100
+ a{
101
+ text-decoration:none;
102
+ }
103
+ }
104
+ /* Forms */
105
+ label{
106
+ margin:0 $base-margin/5 $base-margin/5 0;
107
+ }
108
+ // our version of simpleform doesn't support per item (checkbox + label) css
109
+ label.collection_radio, label.inline, label[for=primary_membership_automatic_credit_card_renewal], label[for=primary_membership_electronic_billing],
110
+ label[for=promo_membership_automatic_credit_card_renewal], label[for=promo_membership_electronic_billing], label[for=renewal_electronic_billing],
111
+ label[for=renewal_automatic_credit_card_renewal] {
112
+ display: inline;
113
+ padding-left: 5px;
114
+ }
115
+ #profile_accumulate_caa_dollars{
116
+ width:100%;
117
+ }
118
+ .subscriptions label {
119
+ display: inline-block;
120
+ margin-left: $base-margin/4;
121
+ }
122
+
123
+ .control{
124
+ display:block;
125
+ margin-bottom:$base-margin/2;
126
+ }
127
+
128
+ .control.subscriptions {
129
+ display:block;
130
+ margin-top:$base-margin*1.2;
131
+ margin-bottom:0;
132
+ }
133
+
134
+ .control.inline{
135
+ @extend %clearfix;
136
+ label{ display:inline-block;
137
+ margin:0 $base-margin/2 $base-margin/5 0;
138
+ }
139
+ input{
140
+ margin:0 $base-margin/5;
141
+ }
142
+ }
143
+
144
+ .control.inline-strict {
145
+ display: inline;
146
+ }
147
+
148
+ .control-button{
149
+ margin-top:$base-margin;
150
+ }
151
+
152
+ .controls.inline-form{
153
+ @extend %clearfix;
154
+ .control,button{
155
+ display:inline-block;
156
+ margin:0 $base-margin/5 $base-margin/5 0;
157
+ vertical-align:bottom;
158
+ input[type=text],input[type=email]{
159
+ float:none;
160
+ display:block;
161
+ width:100%;
162
+ }
163
+ }
164
+ }
165
+
166
+ .actions {
167
+ margin:$base-margin 0;
168
+ }
169
+
170
+ /* Buttons */
171
+ @mixin button-coloring($color) {
172
+ background-color: darken($color,10);
173
+ }
174
+
175
+ button, .button, .button-small{
176
+ @extend %boxRadius-big;
177
+ border: 0;
178
+ padding: $base-padding/2;
179
+ text-align: center;
180
+ background-color: $color-ama-red;
181
+ color: $color-white;
182
+ width: 100%;
183
+ }
184
+ .button:active, .button:focus{
185
+ background:#333;
186
+ }
187
+ .button-danger{
188
+ @extend %bg-red;
189
+ &:active{ @include button-coloring($color-red); }
190
+ }
191
+ .button-neutral{
192
+ @extend %bg-blue;
193
+ &:active{ @include button-coloring($color-blue); }
194
+ }
195
+ .button-success{
196
+ @extend %bg-green;
197
+ &:active{ @include button-coloring($color-green); }
198
+ }
199
+ .button-theme{
200
+ @extend .color-primary;
201
+ &:active{ @include button-coloring($color-primary); }
202
+ }
203
+ .button-small{
204
+ padding: $base-padding/5;
205
+ font-size: .9em;
206
+ }
207
+ /* Inputs/form elements */
208
+ input.input-stretch{ width:100%;}
209
+ input.input-large{ width:100%}
210
+ input.input-medium{ width:100%;}
211
+ input.input-short{ width:50%;}
212
+ input.input-small{ width:15%;}
213
+
214
+ fieldset{
215
+ @include clearfix();
216
+ }
217
+
218
+ .associate .fieldset{
219
+ border:1px solid $color-border;
220
+ padding:$base-padding/2;
221
+ margin-bottom:$base-margin;
222
+ }
223
+
224
+ .module_section{
225
+ margin-top: $base-margin;
226
+ padding: $base-padding;
227
+ border: 1px solid $color-border;
228
+ @extend %boxRadius-big;
229
+ }
230
+ /* Content */
231
+
232
+ .pricing,.tab{
233
+ @include outer-container;
234
+ }
235
+ .pricing .col{
236
+ text-align:center;
237
+ }
238
+
239
+ .icons-banner-front{
240
+ font-size:3.5em;
241
+ padding:$base-padding $base-padding $base-padding 0;
242
+ width:auto;
243
+ line-height:1.3em;
244
+ }
245
+
246
+ /* Table - pricing */
247
+ .table-pricing{
248
+ padding:$base-padding 0;
249
+ @include outer-container;
250
+ }
251
+
252
+ .pricing-basic, .pricing-plus, .pricing-plusrv{
253
+ padding:0 $base-padding $base-padding;
254
+ @extend %boxRadius-small;
255
+ margin-bottom:$base-padding;
256
+ @include media($mobile) {
257
+ width:100%;
258
+ }
259
+ }
260
+ .table-pricing h3{
261
+ margin:0;
262
+ padding-top:$base-padding/2;
263
+ }
264
+ .table-pricing h6{
265
+ margin:0;
266
+ }
267
+ .table-pricing h5{
268
+ margin:$base-margin/2 auto;
269
+ color:$color-dark;
270
+ }
271
+ .price{
272
+ font-size:1.5em;
273
+ font-weight:bold;
274
+ }
275
+ .table-pricing span{
276
+ font-size:.8em;
277
+ }
278
+ .wrap-benefits{
279
+ margin:$base-margin/2;
280
+ @extend %boxRadius-small;
281
+ }
282
+ .wrap-coverage{
283
+ background-color:$color-white;
284
+ padding: $base-padding/2;
285
+ @extend %boxRadius-small;
286
+ }
287
+ .wrap-options{
288
+ padding: $base-padding/2 $base-padding $base-padding/2;
289
+ margin-top: $base-margin;
290
+ }
291
+ .table-pricing a.button{display:inline-block;}
292
+ .yes ,.yes a{
293
+ color:$color-green;
294
+ font-weight:bold;
295
+ }
296
+ .col{
297
+ background:$color-superlight;
298
+ }
299
+
300
+ /* Receipt */
301
+ .cart-receipt{
302
+ margin-top:$base-margin;
303
+ }
304
+ .cart-receipt table{
305
+ width:100%;
306
+ }
307
+ .cart-receipt td{
308
+ padding:$base-padding/2;
309
+ vertical-align:bottom;
310
+ }
311
+ .cart-receipt tr{
312
+ border-bottom:1px solid;
313
+ }
314
+ .cart-receipt tr:last{
315
+ border-bottom:none;
316
+ }
317
+ .member-primary, .member-assoc{
318
+ border:1px solid $color-light;
319
+ @extend %boxRadius-big;
320
+ .inner{
321
+ padding:$base-padding/4;
322
+ }
323
+ }
324
+ .cart-receipt, .member-primary, .member-assoc{
325
+ margin-bottom:$base-margin;
326
+ }
327
+ .progress-receipt{
328
+ h5{
329
+ margin-bottom:$base-margin/4;
330
+ color:$color-dark;
331
+ }
332
+ }
333
+ .progress-container{
334
+ @extend %boxRadius-small;
335
+ border:$base-border-thickness solid $color-medium;
336
+ background:$color-light;
337
+ @include clearfix();
338
+ }
339
+ .progress-bar{
340
+ float:left;
341
+ width:25%;
342
+ @extend %boxRadius-small;
343
+ height:$base-padding*1.5;
344
+ border-right:$color-medium 1px solid;
345
+ }
346
+ .progress-bar-default{
347
+ background:$color-superlight;
348
+ }
349
+ .progress-bar-done{
350
+ background:lighten($color-green,50);
351
+ }
352
+ .progress-bar-next{
353
+ background:lighten($color-blue,50);
354
+ }
355
+ .progress-bar-done{
356
+ span{
357
+ position:relative;
358
+ top:5px;
359
+ }
360
+ }
361
+ .progress-labels{
362
+ @include clearfix();
363
+ }
364
+ .progress-label{
365
+ float:left;
366
+ width:25%;
367
+ font-size:.88em;
368
+ padding:0 $base-padding/2;
369
+ color:$color-dark;
370
+ }
371
+ .progress-label-done, .progress-bar-done{
372
+ color:$color-green;
373
+ }
374
+ .progress-cta{
375
+ font-size:1.3em;
376
+ color:$color-blue;
377
+ }
378
+ .step{
379
+ @extend %boxRadius-small;
380
+ color:$color-white;
381
+ padding:3px 6px;
382
+ text-align:center;
383
+ }
384
+ .step.default{
385
+ background-color:$color-light;
386
+ color:$color-dark;
387
+ }
388
+ .step.next{
389
+ background-color:$color-blue;
390
+ }
391
+ .step.done{
392
+ background-color:$color-green;
393
+ }
394
+ .upsell-receipt{
395
+ padding:$base-padding/2 0;
396
+ margin:$base-margin/2 0;
397
+ border-top:$base-border-thickness dotted $color-light;
398
+ }
399
+
400
+ /* CAA Dollars History */
401
+ .caa-dollars-table { width: 100%; }
402
+ .caa-dollars-table thead td { font-size: 1.25em; font-weight: bold; }
403
+ .caa-dollars-table tbody td { border-top: 1px solid $color-superlight; }
404
+
405
+ /* Welcome */
406
+ .welcome{
407
+ @extend %boxRadius-big;
408
+ background:$color-white;
409
+ border:$base-border-thickness $color-border solid;
410
+ @include clearfix();
411
+ padding:$base-padding*2 $base-padding $base-padding;
412
+ position:relative;
413
+ overflow:hidden;
414
+ margin-bottom:$base-margin*2;
415
+ header{
416
+ position:absolute;
417
+ top:0; right:0;
418
+ .logo{
419
+ padding:$base-padding/2 0 0 $base-padding/2 ;
420
+ }
421
+ }
422
+ .logo img{
423
+ max-width:80%;
424
+ }
425
+ }
426
+ .close-button{
427
+ position:absolute;
428
+ right:$base-padding;
429
+ top:$base-padding;
430
+ cursor:pointer;
431
+ font-size:1.5em;
432
+ }
433
+ .welcome-images{
434
+ overflow:hidden;
435
+ border-radius:0 0 0 5px;
436
+ line-height:0;
437
+ }
438
+ .welcome-content{
439
+ @include clearfix();
440
+ .progress-container{
441
+ margin-bottom:$base-margin/2;
442
+ }
443
+ .widget{
444
+ width:100%;
445
+ }
446
+ }
447
+
448
+ .login.front{
449
+ display:none;
450
+ margin-bottom:$base-margin;
451
+ padding-bottom:$base-padding;
452
+ border-bottom:1px $color-border solid;
453
+ }
454
+ .users .login.front{
455
+ display:block;
456
+ }
457
+ .login-hybrid .control span{
458
+ margin-right: 30px;
459
+ display:inline-block;
460
+ }
461
+ .login-reveal{
462
+ display:inline-block;
463
+ margin-bottom:$base-margin;
464
+ }
465
+ .users .login-reveal{
466
+ display:none;
467
+ }
468
+ .banner-front{
469
+ background-color: $color-primary;
470
+ padding:$base-padding;
471
+ @extend %boxRadius-big;
472
+ }
473
+ .users .banner-front{
474
+ display:none;
475
+ }
476
+ .banner-front *{
477
+ color: $color-white;
478
+ }
479
+ .resetpw{
480
+ display:inline-block;
481
+ padding-bottom:$base-padding/2;
482
+ }
483
+ #create-form{
484
+ h5{
485
+ background:$color-primary;
486
+ padding:$base-padding;
487
+ @include boxRadius(big);
488
+ color:$color-white;
489
+ }
490
+ }
491
+
492
+ /*tabs*/
493
+ .tab.hide{ display:none; }
494
+ .tab.show{ display:block; }
495
+ .tab-control{ border:none; }
496
+
497
+ /*errors and messages*/
498
+ .error{ display:block; }
499
+ .error.inline{ display:inline-block; }
500
+
501
+ .error{ display:block; }
502
+ .error.inline{ display:inline-block; }
503
+ .error, .error_notification{ color: lighten($color-red, 14%); }
504
+ .login.front .error { color: lighten($color-red, 35%); }
505
+
506
+ .notice{ display: block; }
507
+ .notice, .notice_notification{ color: $color-green; }
508
+
509
+ @mixin notification($color) {
510
+ background:lighten($color, 65%);
511
+ border: 1px solid lighten($color, 20%);
512
+ margin: 0 0 ($base-margin) 0;
513
+ padding: ($base-padding / 4);
514
+ text-shadow: 0px 1px 0px rgba(255,255,255,0.5);
515
+ @extend %boxRadius-big;
516
+ }
517
+ .error_notification{ @include notification($color-red); }
518
+ .notice_notification{ @include notification($color-green); }
519
+
520
+ @mixin notification-icon($content) { content:$content; font-family: "SSSymbolicons"; vertical-align: middle; margin-right: 5px; }
521
+ p.error_notification:before { @include notification-icon('\2639'); }
522
+ p.notice_notification:before { @include notification-icon('\263B'); }
523
+
524
+ /* UI effects */
525
+ #nowloading { display: inline; position: relative; left: 40px; }
526
+ .spinner { display: inline; top: 15px; left: 15px; }
527
+
528
+ /* Member info */
529
+ ul.member-info {
530
+ margin-left:0;
531
+ li {
532
+ list-style:none;
533
+ margin:0;
534
+ padding:0;
535
+ }
536
+ }
537
+
538
+ .ad-container{
539
+ @include clearfix();
540
+ }
541
+ .placeholder-img{
542
+ height:auto;
543
+ display:block;
544
+ width:32%;
545
+ float:left;
546
+ @include omega;
547
+ }
548
+ .placeholder-img img{
549
+ max-width:80%;
550
+ }
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the Oauths controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,65 @@
1
+ .color-border { border: $color-border 1px solid; }
2
+ .color-background { background-color: $color-background; }
3
+ .color-background-alt { background-color: $color-background-alt; }
4
+ .color-background-alt2 { background-color: $color-background-alt2; }
5
+ .color-alert-background { background-color: $color-alert-bg}
6
+ .color-text { color: $color-text; }
7
+ %color-text{
8
+ @extend .color-text;
9
+ }
10
+ .color-text-alt { color: $color-text-alt; }
11
+ .color-text-alert { color: $color-text-alert; }
12
+ .color-text-callout { color: $color-text-callout; }
13
+ .color-text-highlight { background-color: $color-text-highlight; }
14
+ .color-alert-error { color: $color-text-alert; }
15
+ .color-text-green { color:$color-green; }
16
+ .color-text-red { color:$color-red; }
17
+ .color-text-blue { color:$color-blue; }
18
+
19
+ a { color: $color-text-alt; }
20
+ a.button,
21
+ a.button-small,
22
+ a.button:visited,
23
+ a.button-small:visited {
24
+ color: $color-white;
25
+ text-decoration: none;
26
+ }
27
+
28
+ .text-small{
29
+ font-size:.88em;
30
+ }
31
+
32
+ .color-primary{
33
+ background: $color-primary;
34
+ color: $color-white;
35
+ }
36
+ .color-secondary-a{
37
+ background: $color-secondary-a;
38
+ color: $color-white;
39
+ }
40
+ .color-secondary-b{
41
+ background: $color-secondary-b;
42
+ color: $color-white;
43
+ }
44
+ .color-complimentary{
45
+ background: $color-complimentary;
46
+ color: $color-white;
47
+ }
48
+
49
+ .color-superdark-text{ color: $color-superdark; color:$color-white;}
50
+ .color-superdark-bg{ background-color: $color-superdark; color:$color-white;}
51
+ .color-dark-text{ color: $color-dark; }
52
+ .color-dark-bg{ background-color: $color-dark; color:$color-white;}
53
+ .color-medium-text{ color: $color-medium; }
54
+ .color-medium-bg{ background-color: $color-medium; color:$color-white;}
55
+ .color-light-text{ color: $color-light; }
56
+ .color-light-bg{ background-color: $color-light; }
57
+ .color-superlight-text{ color: $color-superlight; }
58
+ .color-superlight-bg{ background-color: $color-superlight; }
59
+ .color-green, .color-success{ @extend %bg-green; color:$color-white;}
60
+ .color-blue, .color-neutral{ @extend %bg-blue; color:$color-white;}
61
+ .color-red, .color-danger{ @extend %bg-red; color:$color-white;}
62
+
63
+ %bg-red{ background-color:$color-red; }
64
+ %bg-blue{ background-color:$color-blue; }
65
+ %bg-green{ background-color:$color-green; }
@@ -0,0 +1,3 @@
1
+ module AmaCss
2
+ VERSION = "0.0.1"
3
+ end
data/lib/ama_css.rb ADDED
@@ -0,0 +1,8 @@
1
+ require "ama_css/version"
2
+ require "bourbon"
3
+ require "neat"
4
+
5
+ module AmaCss
6
+ class Engine < Rails::Engine
7
+ end
8
+ end