ama_layout 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.simplecov +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +146 -0
- data/Rakefile +2 -0
- data/ama_layout.gemspec +33 -0
- data/app/assets/images/AMA-Logo.png +0 -0
- data/app/assets/images/alberta-blur.jpg +0 -0
- data/app/assets/images/footer-racetrack-big.png +0 -0
- data/app/assets/javascripts/ama_layout/ama_layout_namespace.js.coffee +1 -0
- data/app/assets/javascripts/ama_layout/desktop/drop_down.js.coffee +46 -0
- data/app/assets/javascripts/ama_layout/desktop/foundation-namespace.coffee +2 -0
- data/app/assets/javascripts/ama_layout/desktop/foundation-ready.js.coffee +2 -0
- data/app/assets/javascripts/ama_layout/desktop/header_menu.coffee +3 -0
- data/app/assets/javascripts/ama_layout/desktop/index.js +9 -0
- data/app/assets/javascripts/ama_layout/desktop/ready.js.coffee +3 -0
- data/app/assets/javascripts/ama_layout/desktop/sticky-footer.coffee +16 -0
- data/app/assets/javascripts/ama_layout/desktop/toggle_menu.js.coffee +8 -0
- data/app/assets/javascripts/ama_layout/mobile/index.js +4 -0
- data/app/assets/javascripts/ama_layout/mobile/mobile_menu.js.coffee +11 -0
- data/app/assets/javascripts/ama_layout/mobile/ready.js.coffee +2 -0
- data/app/assets/javascripts/ama_layout/mobile/tablesaw.stackonly.js +277 -0
- data/app/assets/stylesheets/ama_layout/application.scss +10 -0
- data/app/assets/stylesheets/ama_layout/foundation_and_overrides.scss +1486 -0
- data/app/assets/stylesheets/ama_layout/layout/base-styles.scss +60 -0
- data/app/assets/stylesheets/ama_layout/layout/helper-classes.scss +342 -0
- data/app/assets/stylesheets/ama_layout/layout/index.scss +3 -0
- data/app/assets/stylesheets/ama_layout/layout/variables.scss +32 -0
- data/app/assets/stylesheets/ama_layout/layout_components/accordions.scss +24 -0
- data/app/assets/stylesheets/ama_layout/layout_components/blue-boxes.scss +32 -0
- data/app/assets/stylesheets/ama_layout/layout_components/error-messages.scss +9 -0
- data/app/assets/stylesheets/ama_layout/layout_components/error-page.scss +25 -0
- data/app/assets/stylesheets/ama_layout/layout_components/forms.scss +189 -0
- data/app/assets/stylesheets/ama_layout/layout_components/index.scss +8 -0
- data/app/assets/stylesheets/ama_layout/layout_components/responsive-table.scss +175 -0
- data/app/assets/stylesheets/ama_layout/layout_components/sidebar.scss +170 -0
- data/app/assets/stylesheets/ama_layout/layout_components/siteheader.scss +14 -0
- data/app/assets/stylesheets/ama_layout/media_queries/index.scss +3 -0
- data/app/assets/stylesheets/ama_layout/media_queries/mobile-and-tablet.scss +14 -0
- data/app/assets/stylesheets/ama_layout/media_queries/mobile.scss +69 -0
- data/app/assets/stylesheets/ama_layout/media_queries/tablet.scss +13 -0
- data/app/assets/stylesheets/ama_layout/old-ie.scss +74 -0
- data/app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons-block.eot +0 -0
- data/app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons-block.scss +50 -0
- data/app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons-block.svg +982 -0
- data/app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons-block.ttf +0 -0
- data/app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons-block.woff +0 -0
- data/app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons.js +84 -0
- data/app/helpers/ama_layout_content_helper.rb +56 -0
- data/app/helpers/ama_layout_path_helper.rb +69 -0
- data/app/views/ama_layout/_alert.html.erb +3 -0
- data/app/views/ama_layout/_applogo.html.erb +3 -0
- data/app/views/ama_layout/_custom_nav_links.html.erb +0 -0
- data/app/views/ama_layout/_custom_sidebar.html.erb +1 -0
- data/app/views/ama_layout/_footer.html.erb +2 -0
- data/app/views/ama_layout/_main_nav_item.html.erb +7 -0
- data/app/views/ama_layout/_main_top_nav_item.html.erb +5 -0
- data/app/views/ama_layout/_notice.html.erb +5 -0
- data/app/views/ama_layout/_notices.html.erb +2 -0
- data/app/views/ama_layout/_sidebar.html.erb +11 -0
- data/app/views/ama_layout/_siteheader.html.erb +32 -0
- data/app/views/ama_layout/_sub_nav.html.erb +3 -0
- data/app/views/ama_layout/_sub_nav_item.html.erb +3 -0
- data/app/views/ama_layout/_top_nav.html.erb +12 -0
- data/app/views/ama_layout/_top_sub_nav.html.erb +3 -0
- data/app/views/ama_layout/_top_sub_nav_item.html.erb +4 -0
- data/lib/ama_layout.rb +19 -0
- data/lib/ama_layout/decorators/moneris_decorator.rb +9 -0
- data/lib/ama_layout/decorators/navigation_decorator.rb +24 -0
- data/lib/ama_layout/decorators/navigation_item_decorator.rb +30 -0
- data/lib/ama_layout/moneris.rb +12 -0
- data/lib/ama_layout/moneris/textbox.txt +61 -0
- data/lib/ama_layout/navigation.rb +33 -0
- data/lib/ama_layout/navigation.yml +66 -0
- data/lib/ama_layout/navigation_item.rb +21 -0
- data/lib/ama_layout/version.rb +3 -0
- data/spec/helpers/ama_layout_content_helper_spec.rb +131 -0
- data/spec/helpers/ama_layout_path_helper_spec.rb +117 -0
- data/spec/internal/config/database.yml +3 -0
- data/spec/internal/config/routes.rb +3 -0
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/db/schema.rb +3 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +25 -0
- metadata +325 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
/* ============== Base Page Layout Styles ================ */
|
2
|
+
html, body{
|
3
|
+
height: auto !important;
|
4
|
+
}
|
5
|
+
|
6
|
+
html{
|
7
|
+
background: image-url('alberta-blur.jpg') no-repeat center center fixed;
|
8
|
+
-webkit-background-size: cover;
|
9
|
+
-moz-background-size: cover;
|
10
|
+
-o-background-size: cover;
|
11
|
+
background-size: cover;
|
12
|
+
}
|
13
|
+
|
14
|
+
body{
|
15
|
+
background: none;
|
16
|
+
}
|
17
|
+
|
18
|
+
footer{
|
19
|
+
background: image-url('footer-racetrack-big.png') no-repeat center 0;
|
20
|
+
height: 200px;
|
21
|
+
margin-top: $base-margin*12;
|
22
|
+
}
|
23
|
+
|
24
|
+
/* ============== Base Typography Styles ================ */
|
25
|
+
h1, h2, h3, h4, h5, h6, p{
|
26
|
+
font-family: $font-family-sans-serif;
|
27
|
+
margin-bottom: 0.2em;
|
28
|
+
margin-bottom: 0.2rem; //this is so headers have equal padding on bottom and top
|
29
|
+
}
|
30
|
+
|
31
|
+
h4{
|
32
|
+
margin-top: $base-margin*4;
|
33
|
+
margin-bottom: $base-margin*2;
|
34
|
+
}
|
35
|
+
|
36
|
+
label{
|
37
|
+
font-family: $font-family-sans-serif;
|
38
|
+
color: $charcoal;
|
39
|
+
}
|
40
|
+
|
41
|
+
p, li{
|
42
|
+
font-size: $base-font-size*0.875;
|
43
|
+
color: $charcoal;
|
44
|
+
font-weight: 200;
|
45
|
+
font-family: $font-family-sans-serif;
|
46
|
+
}
|
47
|
+
|
48
|
+
a{
|
49
|
+
text-decoration: underline;
|
50
|
+
color: $secondary-color;
|
51
|
+
font-size: $base-font-size*0.875;
|
52
|
+
}
|
53
|
+
|
54
|
+
hr{
|
55
|
+
margin: $base-margin 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
small{
|
59
|
+
font-size: 80%;
|
60
|
+
}
|
@@ -0,0 +1,342 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
1. Main Layout Elements
|
4
|
+
2. Panels
|
5
|
+
3. Positioning
|
6
|
+
4. Margins
|
7
|
+
5. Padding
|
8
|
+
6. Background & Text Colours
|
9
|
+
7. Lists
|
10
|
+
8. Links
|
11
|
+
9. Buttons
|
12
|
+
10. Typography
|
13
|
+
|
14
|
+
*/
|
15
|
+
|
16
|
+
/* ==================== 1. Main Layout Elements ==================== */
|
17
|
+
.main-wrapper{
|
18
|
+
margin: $base-margin*4 auto;
|
19
|
+
}
|
20
|
+
|
21
|
+
.page-wrapper{
|
22
|
+
border: $base-border;
|
23
|
+
background-color: $white;
|
24
|
+
}
|
25
|
+
|
26
|
+
.page-title{
|
27
|
+
background: $ash;
|
28
|
+
border-bottom: $base-border;
|
29
|
+
padding: $base-padding 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
.page-steps{
|
33
|
+
text-align: right;
|
34
|
+
}
|
35
|
+
|
36
|
+
.content-block{
|
37
|
+
margin-bottom: $base-margin*4;
|
38
|
+
background: $white;
|
39
|
+
border: $base-border;
|
40
|
+
}
|
41
|
+
|
42
|
+
.content-block-bottom{
|
43
|
+
margin-top: $base-margin*8;
|
44
|
+
}
|
45
|
+
|
46
|
+
.image-callout{
|
47
|
+
border: $base-border;
|
48
|
+
}
|
49
|
+
|
50
|
+
.fullwidth{
|
51
|
+
width: 100% !important;
|
52
|
+
}
|
53
|
+
|
54
|
+
/* ==================== 2. Panels ==================== */
|
55
|
+
.panel-box{
|
56
|
+
padding: $base-padding*4;
|
57
|
+
|
58
|
+
h4, p{
|
59
|
+
color: $white;
|
60
|
+
margin-top: 0;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.panel-box-confirmation{
|
65
|
+
background: $green;
|
66
|
+
}
|
67
|
+
|
68
|
+
.panel-box-error{
|
69
|
+
background: $brand-red;
|
70
|
+
}
|
71
|
+
|
72
|
+
.panel-title{
|
73
|
+
@extend .page-title;
|
74
|
+
border: 0px;
|
75
|
+
padding: $base-padding*2;
|
76
|
+
|
77
|
+
h5{
|
78
|
+
color: $jet;
|
79
|
+
padding-left: $base-padding*2;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
/* ==================== 3. Positioning ==================== */
|
84
|
+
.left{
|
85
|
+
float: left !important;
|
86
|
+
}
|
87
|
+
|
88
|
+
.right{
|
89
|
+
float: right !important;
|
90
|
+
}
|
91
|
+
|
92
|
+
.center{
|
93
|
+
margin-left: auto;
|
94
|
+
margin-right: auto;
|
95
|
+
}
|
96
|
+
|
97
|
+
.block{
|
98
|
+
display: block !important;
|
99
|
+
}
|
100
|
+
|
101
|
+
.inline{
|
102
|
+
display: inline !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
.inline-block{
|
106
|
+
display: inline-block !important;
|
107
|
+
}
|
108
|
+
|
109
|
+
.text-left{
|
110
|
+
text-align: left !important;
|
111
|
+
}
|
112
|
+
|
113
|
+
.text-center{
|
114
|
+
text-align: center !important;
|
115
|
+
}
|
116
|
+
|
117
|
+
.text-right{
|
118
|
+
text-align: right !important;
|
119
|
+
}
|
120
|
+
|
121
|
+
/* ==================== 4. Margins ==================== */
|
122
|
+
.m1{
|
123
|
+
margin: $base-margin*4 !important;
|
124
|
+
}
|
125
|
+
|
126
|
+
.mt1{
|
127
|
+
margin-top: $base-margin*4 !important;
|
128
|
+
}
|
129
|
+
|
130
|
+
.mr1{
|
131
|
+
margin-right: $base-margin*4 !important;
|
132
|
+
}
|
133
|
+
|
134
|
+
.mb1{
|
135
|
+
margin-bottom: $base-margin*4 !important;
|
136
|
+
}
|
137
|
+
|
138
|
+
.ml1{
|
139
|
+
margin-left: $base-margin*4 !important;
|
140
|
+
}
|
141
|
+
|
142
|
+
.m0{
|
143
|
+
margin: 0 !important;
|
144
|
+
}
|
145
|
+
|
146
|
+
.mt0{
|
147
|
+
margin-top: 0 !important;
|
148
|
+
}
|
149
|
+
|
150
|
+
.mr0{
|
151
|
+
margin-right: 0px !important;
|
152
|
+
}
|
153
|
+
|
154
|
+
.mb0{
|
155
|
+
margin-bottom: 0 !important;
|
156
|
+
}
|
157
|
+
|
158
|
+
.ml0{
|
159
|
+
margin-left: 0px !important;
|
160
|
+
}
|
161
|
+
|
162
|
+
/* ==================== 5. Padding ==================== */
|
163
|
+
.p1{
|
164
|
+
padding: $base-padding*4;
|
165
|
+
}
|
166
|
+
|
167
|
+
.pt1 {
|
168
|
+
padding-top: $base-margin*4 !important;
|
169
|
+
}
|
170
|
+
|
171
|
+
.pr1 {
|
172
|
+
padding-right: $base-margin*4 !important;
|
173
|
+
}
|
174
|
+
|
175
|
+
.pb1 {
|
176
|
+
padding-bottom: $base-margin*4 !important;
|
177
|
+
}
|
178
|
+
|
179
|
+
.pl1 {
|
180
|
+
padding-left: $base-margin*4 !important;
|
181
|
+
}
|
182
|
+
|
183
|
+
.p0{
|
184
|
+
padding: 0 !important;
|
185
|
+
}
|
186
|
+
|
187
|
+
.pt0 {
|
188
|
+
padding-top: 0 !important;
|
189
|
+
}
|
190
|
+
|
191
|
+
.pr0 {
|
192
|
+
padding-right: 0 !important;
|
193
|
+
}
|
194
|
+
|
195
|
+
.pb0 {
|
196
|
+
padding-bottom :0 !important;
|
197
|
+
}
|
198
|
+
|
199
|
+
.pl0 {
|
200
|
+
padding-left: 0 !important;
|
201
|
+
}
|
202
|
+
|
203
|
+
.bb0{
|
204
|
+
border-bottom: 0px !important;
|
205
|
+
}
|
206
|
+
|
207
|
+
/* ==================== 6. Background Colours ==================== */
|
208
|
+
.whitebg{
|
209
|
+
background-color: $white;
|
210
|
+
}
|
211
|
+
|
212
|
+
.greybg{
|
213
|
+
background-color: $stone;
|
214
|
+
}
|
215
|
+
|
216
|
+
.insurance-blue-bg{
|
217
|
+
background-color: $brand-blue-insurance;
|
218
|
+
}
|
219
|
+
|
220
|
+
.light-blue-bg{
|
221
|
+
background: $brand-blue-light;
|
222
|
+
}
|
223
|
+
|
224
|
+
.dark-blue-bg{
|
225
|
+
background: $brand-blue-dark;
|
226
|
+
}
|
227
|
+
|
228
|
+
.rewards-green-bg{
|
229
|
+
background-color: $brand-green;
|
230
|
+
}
|
231
|
+
|
232
|
+
// On a coloured background, the child links should be white
|
233
|
+
.insurance-blue-bg a,
|
234
|
+
.light-blue-bg a,
|
235
|
+
.rewards-green-bg a,
|
236
|
+
.dark-blue-bg a{
|
237
|
+
color: $white;
|
238
|
+
}
|
239
|
+
|
240
|
+
.white-trans{
|
241
|
+
background-color: $white;
|
242
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
|
243
|
+
background-color: rgba(255,255,255,0.6);
|
244
|
+
}
|
245
|
+
|
246
|
+
/* ==================== 7. Lists ==================== */
|
247
|
+
.lined-list{
|
248
|
+
list-style: none;
|
249
|
+
margin: 0;
|
250
|
+
|
251
|
+
li{
|
252
|
+
padding: $base-padding*3 $base-padding*2 $base-padding*2 $base-padding*2;
|
253
|
+
border-bottom: $base-border;
|
254
|
+
|
255
|
+
.table-value{
|
256
|
+
float: right;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
|
261
|
+
.no-bullets{
|
262
|
+
list-style-type: none;
|
263
|
+
}
|
264
|
+
|
265
|
+
/* ==================== 8. Links ==================== */
|
266
|
+
.multiline-link{
|
267
|
+
line-height: 1.3rem !important;
|
268
|
+
}
|
269
|
+
|
270
|
+
/* ==================== 9. Buttons ==================== */
|
271
|
+
.base-button{
|
272
|
+
@extend .radius;
|
273
|
+
@extend .small;
|
274
|
+
color: $white;
|
275
|
+
}
|
276
|
+
.emphasized, .emphasized:visited{
|
277
|
+
@extend .base-button;
|
278
|
+
background: $secondary-color;
|
279
|
+
&:hover, &:active, &:focus{
|
280
|
+
background-color: lighten($secondary-color, 10%);
|
281
|
+
}
|
282
|
+
}
|
283
|
+
button.disabled, button[disabled], .button.disabled, .button[disabled]{
|
284
|
+
background-color: lighten($secondary-color, 10%);
|
285
|
+
border-color: none;
|
286
|
+
&:hover, &:active, &:focus{
|
287
|
+
background-color: lighten($secondary-color, 10%);
|
288
|
+
border-color: none;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
.de-emphasized, .de-emphasized:visited{
|
292
|
+
@extend .base-button;
|
293
|
+
background: $slate;
|
294
|
+
&:hover, &:active, &:focus{
|
295
|
+
background-color: lighten($slate, 10%);
|
296
|
+
}
|
297
|
+
}
|
298
|
+
.red-btn{
|
299
|
+
background: $brand-red;
|
300
|
+
&:hover, &:active, &:focus{
|
301
|
+
background-color: lighten($brand-red, 10%);
|
302
|
+
}
|
303
|
+
}
|
304
|
+
.green-btn, .green-btn:visited{
|
305
|
+
@extend .base-button;
|
306
|
+
background: $brand-green;
|
307
|
+
&:hover, &:active, &:focus{
|
308
|
+
background-color: lighten($brand-green, 10%);
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
/* ==================== 10. Typography ==================== */
|
313
|
+
.white-text{
|
314
|
+
color: $white;
|
315
|
+
}
|
316
|
+
|
317
|
+
.white-micetype{
|
318
|
+
color: $white;
|
319
|
+
font-size: 80%;
|
320
|
+
}
|
321
|
+
|
322
|
+
.text-shadow{
|
323
|
+
filter: Shadow(Color=#656565, Direction=130, Strength=1);
|
324
|
+
text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
|
325
|
+
}
|
326
|
+
|
327
|
+
.strike-through{
|
328
|
+
text-decoration: line-through;
|
329
|
+
color: $black;
|
330
|
+
}
|
331
|
+
|
332
|
+
.uppercase-title{
|
333
|
+
font-size: $base-font-size*0.875;
|
334
|
+
font-weight: normal;
|
335
|
+
color: $slate;
|
336
|
+
text-transform: uppercase;
|
337
|
+
padding: $base-padding*2 $base-padding*0 $base-padding*2 $base-padding*2;
|
338
|
+
}
|
339
|
+
|
340
|
+
.uppercase{
|
341
|
+
text-transform: uppercase;
|
342
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/* Colours */
|
2
|
+
$brand-red: #da291c;
|
3
|
+
$white: #ffffff;
|
4
|
+
$green: #3fae60;
|
5
|
+
$brand-green: #78be20; //Rewards Green
|
6
|
+
$brand-blue-insurance:#00a3e0;
|
7
|
+
// Blue tones - ordered from lightest to darkest
|
8
|
+
$sky: #e2f4fc;
|
9
|
+
$ocean: #8cceec;
|
10
|
+
$brand-blue-light: #00539b;
|
11
|
+
$brand-blue-dark: #00205b;
|
12
|
+
// Grey tones - ordered from lightest to darkest
|
13
|
+
$ash: #f7f7f7;
|
14
|
+
$stone: #eeeeee;
|
15
|
+
$smoke: #cccccc;
|
16
|
+
$slate: #838383;
|
17
|
+
$charcoal: #656565;
|
18
|
+
$jet: #323232;
|
19
|
+
$black: #000000;
|
20
|
+
// For foundation
|
21
|
+
$primary-color: $brand-blue-dark;
|
22
|
+
$secondary-color: $brand-blue-light;
|
23
|
+
// Fonts
|
24
|
+
$font-family-sans-serif: "Open Sans", Helvetica, Arial, sans-serif;
|
25
|
+
$base-font-size: 1rem;
|
26
|
+
// Spacing
|
27
|
+
$base-margin: 5px;
|
28
|
+
$base-padding: 5px;
|
29
|
+
// Borders
|
30
|
+
$base-border: 1px solid $smoke;
|
31
|
+
//Radius
|
32
|
+
$base-radius: 3px;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.asset-link{
|
2
|
+
min-height: 50px;
|
3
|
+
background: $brand-blue-light !important;
|
4
|
+
margin-top: $base-margin*3;
|
5
|
+
text-decoration: none;
|
6
|
+
display: block;
|
7
|
+
|
8
|
+
h3,
|
9
|
+
h5{
|
10
|
+
color: $white;
|
11
|
+
font-size: $base-font-size*1.4;
|
12
|
+
line-height: 21px;
|
13
|
+
float: left;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.accordion-icon{
|
18
|
+
width: 16px;
|
19
|
+
height: 16px;
|
20
|
+
display: block;
|
21
|
+
float: right;
|
22
|
+
color: $white;
|
23
|
+
margin-top: $base-margin;
|
24
|
+
}
|