ama_css 0.0.1

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 (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,181 @@
1
+ .container-fixed{
2
+ @include outer-container;
3
+ }
4
+ .container-fluid{
5
+ @include outer-container;
6
+ @include media($mobile) {
7
+ @include span-columns(6);
8
+ }
9
+ @include media($smalldesk){
10
+ padding:0 $base-padding;
11
+ }
12
+ }
13
+ /*grid*/
14
+ .layout-side{
15
+ @include span-columns(2);
16
+ margin-bottom:$base-margin;
17
+ @include media($mobile) {
18
+ @include span-columns(6);
19
+ }
20
+ }
21
+
22
+ .layout-middle{
23
+ @include span-columns(8);
24
+ @include media($mobile) {
25
+ @include span-columns(6);
26
+ }
27
+ }
28
+ .layout-full{
29
+ @include outer-container;
30
+ @include span-columns(12);
31
+ @include omega;
32
+ }
33
+ .inner-half{
34
+ @include span-columns(6);
35
+ @extend %clearance;
36
+ @include media($mobile) {
37
+ @include span-columns(3);
38
+ }
39
+ }
40
+ .inner-quarter{
41
+ @include span-columns(3);
42
+ @extend %clearance;
43
+ }
44
+ .inner-quarter-3{
45
+ @include span-columns(9);
46
+ @extend %clearance;
47
+ }
48
+ .inner-full{
49
+ @include span-columns(12);
50
+ @include omega;
51
+ @extend %clearance;
52
+ @include media($mobile) {
53
+ @include span-columns(6);
54
+ }
55
+ }
56
+
57
+ .grid-1{
58
+ @include span-columns(1);
59
+ @extend %clearance;
60
+ }
61
+ .grid-2{
62
+ @include span-columns(2);
63
+ @extend %clearance;
64
+ }
65
+ .grid-3{
66
+ @include span-columns(3);
67
+ @extend %clearance;
68
+ }
69
+ .grid-4{
70
+ @include span-columns(4 of 12);
71
+ @extend %clearance;
72
+ }
73
+ .grid-5{
74
+ @include span-columns(5);
75
+ @extend %clearance;
76
+ }
77
+ .grid-6{
78
+ @include span-columns(6);
79
+ @extend %clearance;
80
+ }
81
+ .grid-7{
82
+ @include span-columns(7);
83
+ @extend %clearance;
84
+ }
85
+ .grid-8{
86
+ @include span-columns(8);
87
+ @extend %clearance;
88
+ }
89
+ .grid-9{
90
+ @include span-columns(9);
91
+ @extend %clearance;
92
+ }
93
+ .grid-10{
94
+ @include span-columns(10);
95
+ @extend %clearance;
96
+ }
97
+ .grid-11{
98
+ @include span-columns(11);
99
+ @extend %clearance;
100
+ }
101
+ .grid-12,.grid-full{
102
+ @include outer-container;
103
+ @include span-columns(12);
104
+ @include omega;
105
+ }
106
+ .grid-full{
107
+ float:none;
108
+ }
109
+ .grid-12{
110
+ @extend %clearance;
111
+ }
112
+ %clearance{
113
+ margin-bottom:$base-margin;
114
+ @include media($mobile) {
115
+ margin-bottom:$base-margin/2;
116
+ }
117
+ }
118
+ .no-clearance{
119
+ margin-bottom:0;
120
+ padding-bottom:0;
121
+ }
122
+ %padding-all{
123
+ padding:$base-padding;
124
+ }
125
+ %margin-all{
126
+ margin:$base-margin;
127
+ }
128
+ .omega{
129
+ /*last col*/
130
+ @include omega;
131
+ }
132
+ .alpha{
133
+ /*first col*/
134
+ clear:both;
135
+ zoom:1;
136
+ }
137
+ .align-left { text-align: left; }
138
+ .align-right { text-align: right; }
139
+ .left{
140
+ float: left;
141
+ }
142
+ .right{
143
+ float: right;
144
+ }
145
+ .center {
146
+ text-align: center;
147
+ }
148
+ .middle{
149
+ margin-left:auto;
150
+ margin-right:auto;
151
+ float:none;
152
+ &:last-child{
153
+ margin-right:auto;
154
+ }
155
+ }
156
+ .vertical-middle {
157
+ vertical-align: middle;
158
+ }
159
+ .inline{
160
+ display:inline-block;
161
+ }
162
+ .grid-1,.grid-5,.grid-7,.grid-11,.grid-12,.grid-full,.collapse{
163
+ /*100% width in 6 col grid for mobile - grids 2,3,4,6,10,9,8 don't collapse unless .collapse added to tag*/
164
+ @include media($mobile) {
165
+ @include span-columns(6);
166
+ margin-right:0;
167
+ }
168
+ }
169
+ .col{
170
+ display:table-cell;
171
+ }
172
+ .row{
173
+ padding:$base-padding/2 0;
174
+ }
175
+ .divide{
176
+ border-bottom:1px solid #ddd;
177
+ padding-bottom:$base-padding;
178
+ }
179
+ .clearfix{
180
+ @include clearfix();
181
+ }
@@ -0,0 +1,140 @@
1
+ label{
2
+ margin: 0 $base-margin/5 $base-margin/5 0;
3
+ }
4
+
5
+ // our version of simpleform doesn't support per item (checkbox + label) css
6
+ label.collection_radio_buttons, label.inline {
7
+ display: inline;
8
+ padding-left: 5px;
9
+ }
10
+
11
+ .control{
12
+ display:block;
13
+ margin-bottom:$base-margin;
14
+ }
15
+
16
+ .actions{
17
+ margin:$base-margin/2 0;
18
+ }
19
+
20
+ .action-link{
21
+ margin-top:$base-margin/2;
22
+ }
23
+
24
+ .control.inline{
25
+ @extend %clearfix;
26
+ label{ display:inline-block;
27
+ margin: 0 $base-margin/2 $base-margin/5 0;
28
+ }
29
+ input{
30
+ margin: 0 $base-margin/5;
31
+ }
32
+ }
33
+
34
+ .control.inline-strict {
35
+ display: inline;
36
+ }
37
+
38
+ .control-button{
39
+ margin-top:$base-margin;
40
+ }
41
+
42
+ .controls.inline-form{
43
+ @extend %clearfix;
44
+ .control,button{
45
+ display:inline-block;
46
+ margin:0 $base-margin/5 $base-margin/5 0;
47
+ vertical-align:bottom;
48
+ input[type=text],input[type=email]{
49
+ float:none;
50
+ display:block;
51
+ width:100%;
52
+ }
53
+
54
+ }
55
+ @include media($mobile) {
56
+ .control{
57
+ width:100%;
58
+ margin-bottom:$base-margin/2;
59
+ display:block;
60
+ width:100%;
61
+ }
62
+ }
63
+ }
64
+
65
+ /* buttons */
66
+ button, .button{
67
+ @extend %boxRadius-small;
68
+ border: 0;
69
+ padding: $base-padding/2;
70
+ text-align: center;
71
+ background-color: $color-ama-red;
72
+ color: $color-white;
73
+ @include button-coloring($color-ama-red);
74
+ @include media($mobile) {
75
+ width:100%;
76
+ }
77
+ }
78
+
79
+ .button:active, .button:focus{
80
+ background:#333;
81
+ color:$color-white;
82
+ @include media($mobile) {
83
+ width:100%;
84
+ }
85
+ }
86
+
87
+ .button-danger{
88
+ @extend %bg-red;
89
+ @include button-coloring($color-red);
90
+ }
91
+
92
+ .button-neutral{
93
+ @extend %bg-blue;
94
+ @include button-coloring($color-blue);
95
+ }
96
+
97
+ .button-success{
98
+ @extend %bg-green;
99
+ @include button-coloring($color-green);
100
+ }
101
+
102
+ .button-theme{
103
+ @extend .color-primary;
104
+ @include button-coloring($color-primary);
105
+ }
106
+
107
+ .button-small{
108
+ @extend %boxRadius-small;
109
+ padding:$base-padding/5;
110
+ font-size:.9em;
111
+ }
112
+
113
+ .button a, .button li{
114
+ color: $color-white;
115
+ }
116
+
117
+ /* inputs/form elements */
118
+ input.input-stretch{ width:100%; }
119
+ input.input-large{ width:90%; }
120
+ input.input-medium{ width:75%; }
121
+ input.input-short{ width:40%; }
122
+ input.input-small{ width:30px; }
123
+ input.input-large, input.input-medium {
124
+ @include media($mobile) {
125
+ @include span-columns(6);
126
+ width:100%;
127
+ float:none;
128
+ }
129
+ }
130
+
131
+ fieldset, .fieldset{
132
+ @include clearfix();
133
+ }
134
+
135
+ .module_section {
136
+ margin-top: $base-margin;
137
+ border:1px solid $color-border;
138
+ @extend %boxRadius-big;
139
+ padding: $base-padding/2 $base-padding;
140
+ }
@@ -0,0 +1,36 @@
1
+ .login.front{
2
+ display:block;
3
+ background-color: $color-primary;
4
+ color: $color-white;
5
+ @extend %boxRadius-big;
6
+
7
+ }
8
+ .users .login.front{
9
+ display:block;
10
+ }
11
+ .login.front label, .login.front a, .login.front p, .login.front.error {
12
+ color: $color-white;
13
+ }
14
+ .login.front input[type=text]{
15
+ border:none;
16
+ }
17
+ .login-reveal{
18
+ display:none;
19
+ }
20
+ .users .login-reveal{
21
+ display:none;
22
+ }
23
+ .resetpw{
24
+ display:inline-block;
25
+ padding-bottom:$base-padding/2;
26
+ }
27
+ .login-hybrid .control span{
28
+ margin-right: 30px;
29
+ display:inline-block;
30
+ }
31
+ .login-hybrid span.error {
32
+ width: 100%;
33
+ }
34
+ .create_account {
35
+ display: none;
36
+ }
@@ -0,0 +1,353 @@
1
+ /* sections */
2
+ .header,.footer{
3
+ @extend %clearance;
4
+ }
5
+ .header{
6
+ background:$color-primary;
7
+ -webkit-border-radius: 0 0 $box-radius-big $box-radius-big;
8
+ -moz-border-radius:0 0 $box-radius-big $box-radius-big;
9
+ border-radius: 0 0 $box-radius-big $box-radius-big;
10
+ }
11
+ .footer{
12
+ text-align:left;
13
+ margin-top:$base-margin;
14
+ }
15
+ /*components*/
16
+ .inner{
17
+ @extend %padding-all;
18
+ }
19
+ .outer{
20
+ @extend %margin-all;
21
+ }
22
+ .box{
23
+ @include boxRadius(big);
24
+ padding: $base-padding / 2;
25
+ }
26
+ .widget{
27
+ @extend .box;
28
+ }
29
+ .widget.outline{
30
+ border: $color-border $base-border-thickness solid;
31
+ padding:0;
32
+ overflow:hidden;
33
+ h4{
34
+ margin-top:0;
35
+ -webkit-border-radius: 0 0 $box-radius-big 0;
36
+ -moz-border-radius: 0 0 $box-radius-big 0;
37
+ border-radius: 0 0 $box-radius-big 0;
38
+ padding:$base-padding/2;
39
+ color:$color-white;
40
+ background-color:$color-primary;
41
+ width:20em;
42
+ margin-bottom:0;
43
+ }
44
+ }
45
+ .widget.filled{
46
+ background-color: lighten($color-primary,70);
47
+ }
48
+
49
+ .login.front{
50
+ display:block;
51
+ background-color: $color-primary;
52
+ color: $color-white;
53
+ @extend %boxRadius-big;
54
+ @include media($mobile) {
55
+ display:none;
56
+ background:none;
57
+ h4{
58
+ display:none;
59
+ }
60
+ }
61
+ }
62
+ .users .login.front{
63
+ display:block;
64
+ @include media($mobile) {
65
+ h5{
66
+ background:$color-primary;
67
+ padding:$base-padding;
68
+ @include boxRadius(big);
69
+ }
70
+ }
71
+ }
72
+ .login.front label, .login.front a, .login.front p, .login.front.error {
73
+ color: $color-white;
74
+ @include media($mobile) {
75
+ color:$color-primary;
76
+ }
77
+ }
78
+ .login.front input[type=text]{
79
+ border:none;
80
+ }
81
+ .login-reveal{
82
+ display:none;
83
+ @include media($mobile) {
84
+ display:inline;
85
+ }
86
+ }
87
+ .users .login-reveal{
88
+ display:none;
89
+ }
90
+ .resetpw{
91
+ display:inline-block;
92
+ padding-bottom:$base-padding/2;
93
+ }
94
+ .login-hybrid .control span{
95
+ margin-right: 30px;
96
+ display:inline-block;
97
+ }
98
+ .login-hybrid span.error {
99
+ width: 100%;
100
+ }
101
+ .logo{
102
+ margin:0 0 0 $base-margin;
103
+ img{
104
+ padding-top:$base-padding/4;
105
+ }
106
+ @include media($smalldesk){
107
+ text-align:center;
108
+ float:left;
109
+ img{
110
+ max-width:5em;
111
+ }
112
+ }
113
+ @include media($mobile){
114
+ text-align:left;
115
+ width:auto;
116
+ }
117
+ }
118
+ .applogo{
119
+ @include clearfix();
120
+ a{ text-decoration:none;}
121
+ h2{ font-size:1.2em; margin:$base-margin/2 0;}
122
+ }
123
+ .waiting{
124
+ margin:$base-margin 0;
125
+ }
126
+
127
+ /*content*/
128
+ .icons-banner-front{
129
+ @include clearfix();
130
+ font-size:4em;
131
+ text-align:center;
132
+ padding:$base-padding;
133
+ width:auto;
134
+ line-height:1.3em;
135
+ @include media($mobile) {
136
+ font-size:2.5em;
137
+ }
138
+ }
139
+ .banner-front{
140
+ margin-bottom: 0;
141
+ @include media($mobile) {
142
+ background-color:$color-primary;
143
+ padding:$base-padding;
144
+ * {
145
+ color:white;
146
+ }
147
+ }
148
+ }
149
+ .content-front{
150
+ @include media($mobile) {
151
+ margin-top:$base-margin*2;
152
+ }
153
+ }
154
+ .ad-container{
155
+ @include clearfix();
156
+ }
157
+ .placeholder-img{
158
+ height:auto;
159
+ display:block;
160
+ width:32%;
161
+ float:left;
162
+ @include omega;
163
+ }
164
+ .placeholder-img img{
165
+ max-width:100%;
166
+ }
167
+
168
+ /*tabs*/
169
+ .tab.hide { display: none; }
170
+ .tab.show { display: block; }
171
+ .tab-show{ font-weight: bold;}
172
+ /*errors and messages*/
173
+ .error { display: block; }
174
+ .error.inline { display: inline-block; }
175
+ .error, .error_notification, .error_notification a { color: lighten($color-red, 14%); }
176
+ .login.front .error { color: lighten($color-red, 35%); }
177
+ .button-bar .error { background: none; color: $color-red; }
178
+ .error.button-bar-last-span.selected { box-shadow: none; }
179
+
180
+ .notice{ display:block; }
181
+ .notice, .notice_notification, .notice_notification a { color: $color-green; }
182
+
183
+ .error_notification{ @include notification($color-red); }
184
+ .notice_notification{ @include notification($color-green); }
185
+
186
+ p.error_notification:before { @include notification-icon('\2639'); }
187
+ p.notice_notification:before { @include notification-icon('\263B'); }
188
+
189
+ /* Receipt */
190
+ .cart-receipt{
191
+ border:1px solid $color-light;
192
+ @extend %boxRadius-big;
193
+ overflow:hidden;
194
+ td{
195
+ padding:$base-padding/2;
196
+ vertical-align:bottom;
197
+ }
198
+ tr{
199
+ border-bottom:1px solid;
200
+ }
201
+ tr:last{
202
+ border-bottom:none;
203
+ }
204
+ h5{
205
+ margin-top:0;
206
+ }
207
+ a{
208
+ text-decoration:none;
209
+ }
210
+ @include media($mobile) {
211
+ table{
212
+ width:100%;
213
+ }
214
+ .print_link{
215
+ display:none;
216
+ }
217
+ }
218
+ }
219
+ .member-primary, .member-assoc{
220
+ border:1px solid $color-light;
221
+ @extend %boxRadius-big;
222
+ overflow:hidden;
223
+ .inner{
224
+ padding:$base-padding/4;
225
+ }
226
+ }
227
+ .member-primary[class*="grid"], .member-assoc[class*="grid"]{
228
+ margin-right:$base-margin/2;
229
+ }
230
+
231
+ .progress-receipt{
232
+ h5{
233
+ margin-bottom:$base-margin/4;
234
+ color:$color-dark;
235
+ }
236
+ }
237
+ .upsell-receipt{
238
+ padding-top:$base-padding*1.5;
239
+ border-top:1px solid $color-light;
240
+ }
241
+
242
+ /* Pointers */
243
+ #add_associates, #remove_associates, .button-bar, .button-bar label, { cursor: pointer; }
244
+
245
+ /* UI effects */
246
+ #nowloading { display: inline; position: relative; left: 40px; }
247
+ .spinner { display: inline; top: 15px; left: 15px; }
248
+
249
+ /* CAA Dollars History */
250
+ .caa-dollars-table { width: 100%; }
251
+ .caa-dollars-table thead td { font-size: 1.25em; font-weight: bold; }
252
+ .caa-dollars-table tbody td { border-top: 1px solid $color-superlight; }
253
+
254
+ /* Welcome */
255
+ .welcome{
256
+ @extend %boxRadius-big;
257
+ background:$color-white;
258
+ border:$base-border-thickness $color-border solid;
259
+ @include clearfix();
260
+ padding: 0 $base-padding $base-padding;
261
+ position:relative;
262
+ overflow:hidden;
263
+ header{
264
+ position:absolute;
265
+ top:0; right:0;
266
+ .logo{
267
+ padding:$base-padding/2 0 0 $base-padding/2 ;
268
+ }
269
+ }
270
+ .logo img{
271
+ max-width:80%;
272
+ }
273
+ }
274
+ .welcome-images{
275
+ overflow:hidden;
276
+ line-height:0;
277
+ }
278
+ .welcome-content{
279
+ @include clearfix();
280
+ padding-top:$base-padding;
281
+ .progress-container{
282
+ margin-bottom:$base-margin/2;
283
+ }
284
+ }
285
+ .close-button{
286
+ cursor:pointer;
287
+ position:absolute;
288
+ top:$base-margin;
289
+ right:$base-margin;
290
+ font-size:1.3em;
291
+ }
292
+ /* Print Card */
293
+ .member-card{
294
+ width:308px;
295
+ height:216px;
296
+ position:relative;
297
+ }
298
+ .card-front{
299
+ background:url(asset-path("membership-cards/temporary/front.png")) no-repeat;
300
+ }
301
+ .card-back{
302
+ background:url(asset-path("membership-cards/temporary/back.png")) no-repeat;
303
+ }
304
+ .card-hd{
305
+ font-size:8px;
306
+ color:#000;
307
+ text-transform:uppercase;
308
+ }
309
+ .card-data{
310
+ font-family: 'Times New Roman', serif;
311
+ color:#000;
312
+ font-weight:bold;
313
+ }
314
+ .card-hd, .card-data{
315
+ position:absolute;
316
+ }
317
+ .card-clubcode{
318
+ left:50px; top:70px;
319
+ }
320
+ .card-memnum{
321
+ left:115px; top:70px;
322
+ }
323
+ .card-membershipnum{
324
+ font-size:22px;
325
+ left:35px;top:95px;
326
+ }
327
+ .card-exp{
328
+ left:50px;top:124px;
329
+ }
330
+ .card-expdate{
331
+ font-size:12px;
332
+ left:85px;top:136px;
333
+ }
334
+ .card-name{
335
+ font-size:17px;
336
+ left:25px;top:156px;
337
+ }
338
+
339
+ /* FAQ */
340
+ #faq {margin-left: ($base-margin * 1.25); }
341
+ #faq dt { cursor: pointer; line-height: 1.25em; }
342
+ #faq dt:before { @include faq-icon('\002B'); }
343
+ #faq dt.expanded:before { @include faq-icon('\002D'); }
344
+
345
+ /* Member info */
346
+ ul.member-info {
347
+ margin-left:0;
348
+ li {
349
+ list-style:none;
350
+ margin:0;
351
+ padding:0;
352
+ }
353
+ }