am-commons 0.0.1 → 0.0.3

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/am-commons-0.0.1.gem +0 -0
  3. data/lib/am-commons/version.rb +1 -1
  4. data/package.json +1 -1
  5. data/stylesheets/_am-commons.scss +1 -2
  6. data/stylesheets/am-commons/_am-american-flags.scss +93 -0
  7. data/stylesheets/am-commons/_am-components.scss +1767 -0
  8. data/stylesheets/am-commons/_am-footer.scss +102 -0
  9. data/stylesheets/am-commons/_am-header.scss +160 -0
  10. data/stylesheets/am-commons/_am-icons-definition.scss +616 -0
  11. data/stylesheets/am-commons/_am-icons.scss +57 -0
  12. data/stylesheets/am-commons/_am-main-menu.scss +243 -0
  13. data/stylesheets/am-commons/_am-print.scss +35 -0
  14. data/stylesheets/am-commons/_am-social-menu.scss +34 -0
  15. data/stylesheets/am-commons/_am-sprite-splash.scss +109 -0
  16. data/stylesheets/am-commons/_am-utils.scss +249 -0
  17. data/stylesheets/am-commons/_am-variables.scss +69 -0
  18. data/stylesheets/am-commons/_epp-grid.scss +1395 -0
  19. data/stylesheets/am-commons/_epp-mixins.scss +38 -0
  20. data/stylesheets/am-commons/_epp-pixelator.scss +352 -0
  21. data/stylesheets/am-commons/_epp-utils.scss +1230 -0
  22. data/stylesheets/am-commons/_fonts.scss +156 -0
  23. data/stylesheets/am-commons/am-airlines.scss +74 -0
  24. data/stylesheets/am-commons/am-checkout.scss +258 -0
  25. data/stylesheets/am-commons/am-common.scss +19 -0
  26. data/stylesheets/am-commons/am-flights-result.scss +2404 -0
  27. data/stylesheets/am-commons/am-flights-resultv2.scss +390 -0
  28. data/stylesheets/am-commons/am-not-found.scss +74 -0
  29. data/stylesheets/am-commons/am.scss +16 -0
  30. data/stylesheets/am-commons/epp-visual-help.scss +36 -0
  31. data/stylesheets/am-commons/epp.scss +12 -0
  32. data/stylesheets/am-commons/flight-result-searchbox.scss +69 -0
  33. metadata +29 -8
  34. data/stylesheets/am-commons/_am.scss +0 -5
  35. data/stylesheets/am-commons/_components.scss +0 -1
  36. data/stylesheets/am-commons/_utils.scss +0 -5
  37. data/stylesheets/am-commons/am/_variables.scss +0 -0
  38. data/stylesheets/am-commons/components/_example.scss +0 -0
  39. data/stylesheets/am-commons/utils/_example.scss +0 -0
@@ -0,0 +1,38 @@
1
+ @mixin font-rem($fontweight:null, $fontsize:null, $lineheight:null, $fontfamily:null) {
2
+
3
+ @if $fontfamily !=null {
4
+ font-family: $fontfamily;
5
+ }
6
+
7
+ @if $lineheight !=null {
8
+ line-height: $lineheight;
9
+ line-height: ($lineheight / 16px) * 1rem;
10
+ }
11
+
12
+ @if $fontsize !=null {
13
+ font-size: $fontsize;
14
+ font-size: ($fontsize / 16px) * 1rem;
15
+ }
16
+
17
+ @if $fontweight !=null {
18
+ font-weight: $fontweight;
19
+ }
20
+ }
21
+
22
+ @mixin respond-to($media) {
23
+ @if $media == ph {
24
+ @media only screen and (max-width:767px) {
25
+ @content;
26
+ }
27
+ }
28
+ @else if $media == tb {
29
+ @media only screen and (min-width:768px) and (max-width:1151px) {
30
+ @content;
31
+ }
32
+ }
33
+ @else if $media == dt {
34
+ @media only screen and (min-width:1152px) {
35
+ @content;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,352 @@
1
+ //---------------------------------\\
2
+ //----------Table of Content-------\\
3
+ //---------------------------------\\
4
+
5
+ // 1 Reset
6
+ // 2 pixelator
7
+
8
+ @import "compass/css3/";
9
+ @import "epp-mixins";
10
+
11
+ //---------------------------------\\
12
+ //--------------Reset--------------\\
13
+ //---------------------------------\\
14
+
15
+ *{
16
+ margin: 0;
17
+ padding: 0;
18
+ }
19
+
20
+ //---------------------------------\\
21
+ //------------Pixelator------------\\
22
+ //---------------------------------\\
23
+
24
+ html {
25
+ font-family: sans-serif;
26
+ font-size:16px;
27
+ line-height: 1.5rem;
28
+ height: 100%;
29
+ -webkit-text-size-adjust: 100%;
30
+ -ms-text-size-adjust: 100%;
31
+ -webkit-font-smoothing: antialiased;
32
+ -moz-osx-font-smoothing: grayscale;
33
+ }
34
+ body{
35
+ height:100%;
36
+ margin:0;
37
+ padding:0;
38
+ @include font-rem(null,16px,24px,sans-serif);
39
+ }
40
+ audio,
41
+ canvas,
42
+ video {
43
+ display: inline-block;
44
+ }
45
+ audio:not([controls]) {
46
+ display: none;
47
+ height: 0;
48
+ }
49
+ a{
50
+
51
+ &:link {
52
+ text-decoration: none;
53
+ }
54
+ &:visited {
55
+ text-decoration: line-through;
56
+ }
57
+ &:hover {
58
+ text-decoration: underline;
59
+ }
60
+ &:active {
61
+ text-decoration: underline;
62
+ }
63
+ }
64
+ abbr{
65
+ text-decoration:none;
66
+ border-bottom: 1px dotted;
67
+ }
68
+ address{
69
+ margin-bottom:8px;
70
+ }
71
+ article{
72
+ display: block;
73
+ }
74
+ aside{
75
+ display: block;
76
+ }
77
+ b{
78
+ font-weight:bold;
79
+ }
80
+ blockquote{
81
+ padding:24px;
82
+ font-style: italic;
83
+ @include font-rem(normal,16px,32px,serif);
84
+ margin-bottom:8px;
85
+ }
86
+ button{
87
+ height:32px;
88
+ border:0 none;
89
+ padding:0 8px;
90
+ vertical-align:top;
91
+ @include font-rem(normal,16px,24px,sans-serif);
92
+ @include appearance (none);
93
+ @include border-radius(2px);
94
+ @include box-sizing(border-box);
95
+ &:focus{
96
+ outline:0 none;
97
+ }
98
+ }
99
+ caption{
100
+ @include font-rem(null,12px,24px,null);
101
+ }
102
+ code{
103
+ white-space: normal;
104
+ margin-bottom:8px;
105
+ display: inline-table;
106
+ vertical-align: top;
107
+ @include font-rem(normal,16px,24px,monospace);
108
+ }
109
+ details{
110
+ display: block;
111
+ }
112
+ dfn{
113
+ font-style: italic;
114
+ }
115
+ dl{
116
+ margin-bottom:8px;
117
+ }
118
+ dt{
119
+ margin-left:8px;
120
+ @include font-rem(null,16px,24px,null);
121
+ }
122
+ dd{
123
+ margin:0 0 8px 8px;
124
+ font-style: italic;
125
+ @include font-rem(null,16px,24px,null);
126
+ }
127
+ em{
128
+ font-style: italic;
129
+ }
130
+ fieldset{
131
+ border:1px solid;
132
+ margin: -1px 0 0 0;
133
+ padding: 8px;
134
+ margin-bottom:8px;
135
+ @include border-radius (4px);
136
+ }
137
+ figcaption{
138
+ display: block;
139
+ margin-bottom: 8px;
140
+ font-style: italic;
141
+ @include font-rem(null,12px,24px,null);
142
+ }
143
+ figure{
144
+ display: block;
145
+ }
146
+ form{
147
+
148
+ }
149
+ footer{
150
+ display: block;
151
+ }
152
+ hr{
153
+ background: #888;
154
+ background: rgba(0,0,0,0.2);
155
+ border: 0 none;
156
+ height: 1px;
157
+ margin: 8px 0 7px 0;
158
+ }
159
+ h1{
160
+ margin-bottom:8px;
161
+ @include font-rem(bold,64px,72px,null);
162
+ }
163
+ h2{
164
+ margin-bottom:8px;
165
+ @include font-rem(bold,48px,64px,null);
166
+ }
167
+ h3{
168
+ margin-bottom:8px;
169
+ @include font-rem(bold,40px,48px,null);
170
+ }
171
+ h4{
172
+ margin-bottom:8px;
173
+ @include font-rem(bold,32px,40px,null);
174
+ }
175
+ h5{
176
+ margin-bottom:8px;
177
+ @include font-rem(bold,24px,32px,null);
178
+ }
179
+ h6{
180
+ margin-bottom:8px;
181
+ @include font-rem(bold,16px,24px,null);
182
+ }
183
+ header{
184
+ display: block;
185
+ }
186
+ i{
187
+ font-style: italic;
188
+ }
189
+ img{
190
+ border:0 none;
191
+ outline:0 none;
192
+ vertical-align: top;
193
+ }
194
+ input[type="text"], input[type="search"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], input[type="datetime"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime-local"]{
195
+ border:1px solid;
196
+ background:#fff;
197
+ height:32px;
198
+ padding:4px 8px;
199
+ vertical-align:top;
200
+ @include font-rem(null,16px,24px,sans-serif);
201
+ @include appearance (none);
202
+ @include border-radius(2px);
203
+ @include box-sizing(border-box);
204
+ }
205
+ input[type="button"], input[type="submit"], input[type="reset"]{
206
+ border:0 none;
207
+ height:32px;
208
+ padding:0 8px;
209
+ vertical-align:top;
210
+ @include font-rem(null,16px,24px,sans-serif);
211
+ @include appearance (none);
212
+ @include border-radius(2px);
213
+ @include box-sizing(border-box);
214
+ }
215
+ input[type="color"]{
216
+ background: #fff;
217
+ border:1px solid;
218
+ height:32px;
219
+ padding:0 2px;
220
+ vertical-align:top;
221
+ @include font-rem(null,16px,24px,sans-serif);
222
+ @include appearance (none);
223
+ @include border-radius(2px);
224
+ @include box-sizing(border-box);
225
+ }
226
+ input[type="range"]{
227
+ height:32px;
228
+ }
229
+ label{
230
+ clear:both;
231
+ display:block;
232
+ @include font-rem(null,16px,24px,null);
233
+ }
234
+ legend{
235
+ @include font-rem(null,16px,24px,null);
236
+ }
237
+ li{
238
+ margin-left:8px;
239
+ }
240
+ main{
241
+ display: block;
242
+ }
243
+ nav{
244
+ display: block;
245
+ }
246
+ ol{
247
+ @include font-rem(null, 16px,24px);
248
+ list-style-position: inside;
249
+ margin-bottom:8px;
250
+ }
251
+ option{
252
+ background:#fff;
253
+ padding:8px;
254
+ }
255
+ p{
256
+ @include font-rem(null,16px,24px,null);
257
+ margin-bottom:8px;
258
+ &:last-child{
259
+ margin-bottom:0;
260
+ }
261
+ }
262
+ pre{
263
+ @include font-rem(null,16px,24px,monospace);
264
+ white-space: pre-wrap;
265
+ margin-bottom:8px;
266
+ }
267
+ section{
268
+ display: block;
269
+ }
270
+ strong{
271
+ font-weight:bold;
272
+ vertical-align: top;
273
+ }
274
+ select{
275
+ height:32px;
276
+ border:1px solid;
277
+ background:#fff;
278
+ padding: 0 0 0 8px;
279
+ vertical-align:top;
280
+ @include font-rem(null,16px,24px,null);
281
+ @include border-radius(2px);
282
+ @include box-sizing(border-box);
283
+ }
284
+ small{
285
+ font-size:75%;
286
+ vertical-align: baseline;
287
+ }
288
+ sub{
289
+ @include font-rem(null,12px,12px,null);
290
+ vertical-align: sub;
291
+ height: 10px;
292
+ display: inline-block;
293
+ }
294
+ summary {
295
+ display: block;
296
+ }
297
+ sup{
298
+ @include font-rem(null,12px,12px,null);
299
+ vertical-align: top;
300
+ height: 10px;
301
+ display: inline-block;
302
+ }
303
+ table{
304
+ background-color: white;
305
+ border-top: 1px solid #AFAFAF;
306
+ border-right: 1px solid #AFAFAF;
307
+ border-bottom: 0 none;
308
+ border-left: 1px solid #AFAFAF;
309
+ border-spacing: 8px;
310
+ border-collapse: collapse;
311
+ margin-bottom:8px;
312
+ width:100%;
313
+ }
314
+ tr{
315
+ th{
316
+ border-bottom: 1px solid #C3C3C3;
317
+ border-right: 1px solid #C3C3C3;
318
+ padding:8px 8px 7px 8px;
319
+ &:last-child{
320
+ border-right: 0 none;
321
+ }
322
+ }
323
+ td{
324
+ border-bottom: 1px solid #C3C3C3;
325
+ border-right: 1px solid #C3C3C3;
326
+ padding:8px 8px 7px 8px;
327
+ &:last-child{
328
+ border-right: 0 none;
329
+ }
330
+ }
331
+ }
332
+ textarea{
333
+ height:128px;
334
+ border:1px solid;
335
+ background:#fff;
336
+ padding:8px;
337
+ resize:none;
338
+ vertical-align:top;
339
+ width:100%;
340
+ @include font-rem(null,16px,24px,null);
341
+ @include appearance (none);
342
+ @include border-radius(2px);
343
+ @include box-sizing(border-box);
344
+ }
345
+ u{
346
+ text-decoration:underline;
347
+ }
348
+ ul{
349
+ @include font-rem(null,16px,24px,null);
350
+ list-style-position: inside;
351
+ margin-bottom:8px;
352
+ }