foundation_emails 2.1.0.1 → 2.2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -13
- data/lib/foundation_emails/version.rb +1 -1
- data/pkg/foundation_emails-2.1.0.1.gem +0 -0
- data/vendor/assets/stylesheets/foundation-emails/_global.scss +0 -1
- data/vendor/assets/stylesheets/foundation-emails/components/_alignment.scss +30 -39
- data/vendor/assets/stylesheets/foundation-emails/components/_code.scss +0 -0
- data/vendor/assets/stylesheets/foundation-emails/components/_media-query.scss +28 -6
- data/vendor/assets/stylesheets/foundation-emails/components/_menu.scss +2 -3
- data/vendor/assets/stylesheets/foundation-emails/components/_typography.scss +28 -13
- data/vendor/assets/stylesheets/foundation-emails/components/_visibility.scss +8 -9
- data/vendor/assets/stylesheets/foundation-emails/grid/_grid.scss +28 -4
- data/vendor/assets/stylesheets/foundation-emails/settings/_settings.scss +2 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c578a50c9bfadcac4e68d5865aed1c8ae9679ec2
|
4
|
+
data.tar.gz: 94a3b620c7623bec9b038e0ed2bef4f28c09c48c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cf1ee1b1ea0ec42f223e8831eb7d338eb72f0cd068e3a9f399c0810696e5fb7998f15f7947fdbb7798fb100e8360940bb71ec97bae5cb9e27e1dbe888700d05
|
7
|
+
data.tar.gz: 675bcafba0c21306506d0a4d6f34df70a153ca8c899530be728799dfc4bd5aed648e5594f40ec5e7afabe821be1664b0aa933e59cf37132ffcfd960a03507426
|
data/README.md
CHANGED
@@ -1,26 +1,30 @@
|
|
1
|
-
#
|
1
|
+
# foundation_emails
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/foundation_emails.svg)](https://badge.fury.io/rb/foundation_emails)
|
4
|
+
|
5
|
+
**foundation_emails** is a gem that enables you to use Foundation for Emails assets within a Rails project.
|
2
6
|
|
3
7
|
Foundation for Emails (previously known as Ink) is a framework for creating responsive HTML emails that work in any email client — even Outlook. Our HTML/CSS components have been tested across every major email client to ensure consistency.
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
7
|
-
Add
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'foundation_emails'
|
11
|
-
```
|
11
|
+
1. Add the following line to your Gemfile:
|
12
12
|
|
13
|
-
|
13
|
+
```ruby
|
14
|
+
gem 'foundation_emails'
|
15
|
+
```
|
14
16
|
|
15
|
-
|
17
|
+
2. Then execute:
|
16
18
|
|
17
|
-
|
19
|
+
```bash
|
20
|
+
bundle install
|
21
|
+
```
|
18
22
|
|
19
|
-
|
23
|
+
3. Import Foundation for Emails in your `application.scss`:
|
20
24
|
|
21
|
-
```scss
|
22
|
-
|
23
|
-
```
|
25
|
+
```scss
|
26
|
+
@import "foundation-emails";
|
27
|
+
```
|
24
28
|
|
25
29
|
## License
|
26
30
|
|
Binary file
|
@@ -6,39 +6,28 @@
|
|
6
6
|
/// @group alignment
|
7
7
|
////
|
8
8
|
|
9
|
-
table
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
9
|
+
table,
|
10
|
+
th,
|
11
|
+
td,
|
12
|
+
h1,
|
13
|
+
h2,
|
14
|
+
h3,
|
15
|
+
h4,
|
16
|
+
h5,
|
17
|
+
h6,
|
18
|
+
p,
|
19
|
+
span {
|
20
|
+
&.text-center {
|
21
|
+
text-align: center;
|
22
|
+
}
|
21
23
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
h4.text-left,
|
26
|
-
h5.text-left,
|
27
|
-
h6.text-left,
|
28
|
-
p.text-left,
|
29
|
-
span.text-left {
|
30
|
-
text-align: left;
|
31
|
-
}
|
24
|
+
&.text-left {
|
25
|
+
text-align: left;
|
26
|
+
}
|
32
27
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
h4.text-right,
|
37
|
-
h5.text-right,
|
38
|
-
h6.text-right,
|
39
|
-
p.text-right,
|
40
|
-
span.text-right {
|
41
|
-
text-align: right;
|
28
|
+
&.text-right {
|
29
|
+
text-align: right;
|
30
|
+
}
|
42
31
|
}
|
43
32
|
|
44
33
|
span.text-center {
|
@@ -77,7 +66,7 @@ img.float-right {
|
|
77
66
|
text-align: right;
|
78
67
|
}
|
79
68
|
|
80
|
-
img.float-center,
|
69
|
+
img.float-center,
|
81
70
|
img.text-center {
|
82
71
|
margin: 0 auto;
|
83
72
|
Margin: 0 auto;
|
@@ -85,13 +74,15 @@ img.text-center {
|
|
85
74
|
text-align: center;
|
86
75
|
}
|
87
76
|
|
88
|
-
table
|
89
|
-
td
|
90
|
-
th
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
77
|
+
table,
|
78
|
+
td,
|
79
|
+
th {
|
80
|
+
&.float-center {
|
81
|
+
margin: 0 auto;
|
82
|
+
Margin: 0 auto;
|
83
|
+
float: none;
|
84
|
+
text-align: center;
|
85
|
+
}
|
95
86
|
}
|
96
87
|
|
97
88
|
|
File without changes
|
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
@media only screen and (max-width: #{$global-breakpoint}) {
|
10
10
|
table.body img {
|
11
|
-
width: auto
|
12
|
-
height: auto
|
11
|
+
width: auto;
|
12
|
+
height: auto;
|
13
13
|
}
|
14
14
|
|
15
15
|
table.body center {
|
@@ -30,7 +30,7 @@
|
|
30
30
|
box-sizing: border-box;
|
31
31
|
padding-left: $global-gutter !important;
|
32
32
|
padding-right: $global-gutter !important;
|
33
|
-
|
33
|
+
|
34
34
|
// Nested columns won't double the padding
|
35
35
|
.column,
|
36
36
|
.columns {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
@for $i from 1 through ($grid-column-count - 1) {
|
71
71
|
table.body td.small-offset-#{$i},
|
72
72
|
table.body th.small-offset-#{$i} {
|
73
|
-
|
73
|
+
//1.5 takes in effect a whole empty cell.
|
74
74
|
margin-left: -zf-grid-calc-pct($i, $grid-column-count) !important;
|
75
75
|
Margin-left: -zf-grid-calc-pct($i, $grid-column-count) !important;
|
76
76
|
}
|
@@ -94,14 +94,15 @@
|
|
94
94
|
//menu
|
95
95
|
table.menu {
|
96
96
|
width: 100% !important;
|
97
|
-
|
97
|
+
|
98
98
|
td,
|
99
99
|
th {
|
100
100
|
width: auto !important;
|
101
101
|
display: inline-block !important;
|
102
102
|
}
|
103
103
|
|
104
|
-
&.vertical,
|
104
|
+
&.vertical,
|
105
|
+
&.small-vertical {
|
105
106
|
td,
|
106
107
|
th {
|
107
108
|
display: block !important;
|
@@ -113,5 +114,26 @@
|
|
113
114
|
table.menu[align="center"] {
|
114
115
|
width: auto !important;
|
115
116
|
}
|
117
|
+
|
118
|
+
// expands buttons for small only
|
119
|
+
table.button.small-expand,
|
120
|
+
table.button.small-expanded {
|
121
|
+
width: 100% !important;
|
122
|
+
|
123
|
+
table {
|
124
|
+
width: 100%;
|
125
|
+
|
126
|
+
a {
|
127
|
+
text-align: center !important;
|
128
|
+
width: 100% !important;
|
129
|
+
padding-left: 0 !important;
|
130
|
+
padding-right: 0 !important;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
center {
|
135
|
+
min-width: 0;
|
136
|
+
}
|
137
|
+
}
|
116
138
|
}
|
117
139
|
|
@@ -18,17 +18,16 @@ $menu-item-gutter: 10px !default;
|
|
18
18
|
/// @type Color
|
19
19
|
$menu-item-color: $primary-color !default;
|
20
20
|
|
21
|
-
|
22
21
|
table.menu {
|
23
22
|
width: $global-width;
|
24
23
|
|
25
24
|
td.menu-item,
|
26
|
-
th.menu-item{
|
25
|
+
th.menu-item {
|
27
26
|
padding: $menu-item-padding;
|
28
27
|
padding-right: $menu-item-gutter;
|
29
28
|
|
30
29
|
a {
|
31
|
-
color: $menu-item-color;
|
30
|
+
color: $menu-item-color;
|
32
31
|
}
|
33
32
|
}
|
34
33
|
}
|
@@ -120,7 +120,7 @@ $hr-width: $global-width !default;
|
|
120
120
|
|
121
121
|
/// Default border for a divider.
|
122
122
|
/// @type List
|
123
|
-
$hr-border: 1px solid $
|
123
|
+
$hr-border: 1px solid $black !default;
|
124
124
|
|
125
125
|
/// Default margin for a divider.
|
126
126
|
/// @type Number | List
|
@@ -297,17 +297,20 @@ pre {
|
|
297
297
|
}
|
298
298
|
|
299
299
|
// Horizontal rule
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
300
|
+
table.hr {
|
301
|
+
width: 100%;
|
302
|
+
|
303
|
+
th {
|
304
|
+
height: 0;
|
305
|
+
max-width: $hr-width;
|
306
|
+
border-top: 0;
|
307
|
+
border-right: 0;
|
308
|
+
border-bottom: $hr-border;
|
309
|
+
border-left: 0;
|
310
|
+
margin: $hr-margin;
|
311
|
+
Margin: $hr-margin;
|
312
|
+
clear: both;
|
313
|
+
}
|
311
314
|
}
|
312
315
|
|
313
316
|
// Use to style a large number to display a statistic
|
@@ -321,4 +324,16 @@ hr {
|
|
321
324
|
}
|
322
325
|
}
|
323
326
|
|
324
|
-
|
327
|
+
// preheader styles
|
328
|
+
span.preheader {
|
329
|
+
display: none !important;
|
330
|
+
visibility: hidden;
|
331
|
+
mso-hide: all !important;
|
332
|
+
font-size: 1px;
|
333
|
+
color: $body-background; // needs to match background color of it's container
|
334
|
+
line-height: 1px;
|
335
|
+
max-height: 0px;
|
336
|
+
max-width: 0px;
|
337
|
+
opacity: 0;
|
338
|
+
overflow: hidden;
|
339
|
+
}
|
@@ -8,26 +8,25 @@
|
|
8
8
|
|
9
9
|
.hide-for-large {
|
10
10
|
display: none !important;
|
11
|
-
|
12
|
-
|
13
|
-
overflow:hidden;
|
11
|
+
mso-hide: all; // hide selected elements in Outlook 2007-2013
|
12
|
+
overflow: hidden;
|
14
13
|
max-height: 0;
|
15
14
|
font-size: 0;
|
16
15
|
width: 0;
|
17
|
-
line-height: 0;
|
16
|
+
line-height: 0;
|
18
17
|
|
19
18
|
@media only screen and (max-width: #{$global-breakpoint}) {
|
20
19
|
display: block !important;
|
21
20
|
width: auto !important;
|
22
21
|
overflow: visible !important;
|
23
|
-
max-height: none !important;
|
22
|
+
max-height: none !important;
|
24
23
|
font-size: inherit !important;
|
25
24
|
line-height: inherit !important;
|
26
25
|
}
|
27
26
|
}
|
28
27
|
|
29
28
|
table.body table.container .hide-for-large * {
|
30
|
-
mso-hide:all; // hide selected elements in Outlook 2007-2013
|
29
|
+
mso-hide: all; // hide selected elements in Outlook 2007-2013
|
31
30
|
}
|
32
31
|
|
33
32
|
table.body table.container .hide-for-large,
|
@@ -48,9 +47,9 @@ table.body table.container .callout-inner.hide-for-large {
|
|
48
47
|
table.body table.container .show-for-large {
|
49
48
|
@media only screen and (max-width: #{$global-breakpoint}) {
|
50
49
|
display: none !important;
|
51
|
-
width:0;
|
52
|
-
mso-hide:all; // hide selected elements in Outlook 2007-2013
|
53
|
-
overflow:hidden;
|
50
|
+
width: 0;
|
51
|
+
mso-hide: all; // hide selected elements in Outlook 2007-2013
|
52
|
+
overflow: hidden;
|
54
53
|
}
|
55
54
|
}
|
56
55
|
|
@@ -14,6 +14,10 @@ $grid-column-count: 12 !default;
|
|
14
14
|
/// @type Number
|
15
15
|
$column-padding-bottom: $global-padding !default;
|
16
16
|
|
17
|
+
/// Default border radius for the container. Use a px value
|
18
|
+
/// @type Number
|
19
|
+
$container-radius: 0 !default;
|
20
|
+
|
17
21
|
//For viewing email in browser
|
18
22
|
@media only screen {
|
19
23
|
html {
|
@@ -42,6 +46,13 @@ table {
|
|
42
46
|
width: 100%;
|
43
47
|
position: relative;
|
44
48
|
}
|
49
|
+
|
50
|
+
&.spacer {
|
51
|
+
width: 100%;
|
52
|
+
td {
|
53
|
+
mso-line-height-rule: exactly;
|
54
|
+
}
|
55
|
+
}
|
45
56
|
}
|
46
57
|
|
47
58
|
table.container table.row {
|
@@ -56,6 +67,17 @@ th.column {
|
|
56
67
|
Margin: 0 auto;
|
57
68
|
padding-left: $global-gutter;
|
58
69
|
padding-bottom: $column-padding-bottom;
|
70
|
+
|
71
|
+
// Prevents Nested columns from double the padding
|
72
|
+
.column,
|
73
|
+
.columns {
|
74
|
+
padding-left: 0 !important;
|
75
|
+
padding-right: 0 !important;
|
76
|
+
|
77
|
+
center {
|
78
|
+
min-width: none !important;
|
79
|
+
}
|
80
|
+
}
|
59
81
|
}
|
60
82
|
|
61
83
|
td.columns.last,
|
@@ -110,16 +132,12 @@ th.column {
|
|
110
132
|
width: -zf-grid-calc-px($i, $grid-column-count, $global-width) + ($global-gutter * 1.5);
|
111
133
|
}
|
112
134
|
}
|
113
|
-
}
|
114
135
|
|
115
|
-
@for $i from 1 through $grid-column-count {
|
116
136
|
td.large-#{$i} center,
|
117
137
|
th.large-#{$i} center {
|
118
138
|
min-width: -zf-grid-calc-px($i, $grid-column-count, $global-width) - ($global-gutter * 2);
|
119
139
|
}
|
120
|
-
}
|
121
140
|
|
122
|
-
@for $i from 1 through $grid-column-count {
|
123
141
|
.body .columns td.large-#{$i},
|
124
142
|
.body .column td.large-#{$i},
|
125
143
|
.body .columns th.large-#{$i},
|
@@ -146,3 +164,9 @@ th.expander {
|
|
146
164
|
width: 0;
|
147
165
|
padding: 0 !important;
|
148
166
|
}
|
167
|
+
|
168
|
+
// adds radius to container
|
169
|
+
table.container.radius {
|
170
|
+
border-radius: $container-radius;
|
171
|
+
border-collapse: separate;
|
172
|
+
}
|
@@ -43,6 +43,7 @@ $global-breakpoint: $global-width + $global-gutter;
|
|
43
43
|
|
44
44
|
$grid-column-count: 12;
|
45
45
|
$column-padding-bottom: $global-padding;
|
46
|
+
$container-radius: 0;
|
46
47
|
|
47
48
|
// 3. Block Grid
|
48
49
|
// -------------
|
@@ -81,7 +82,7 @@ $subheader-font-weight: $global-font-weight;
|
|
81
82
|
$subheader-margin-top: 4px;
|
82
83
|
$subheader-margin-bottom: 8px;
|
83
84
|
$hr-width: $global-width;
|
84
|
-
$hr-border: 1px solid $
|
85
|
+
$hr-border: 1px solid $black;
|
85
86
|
$hr-margin: 20px auto;
|
86
87
|
$anchor-text-decoration: none;
|
87
88
|
$anchor-color: $primary-color;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foundation_emails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ZURB
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,12 +70,14 @@ files:
|
|
70
70
|
- lib/foundation_emails.rb
|
71
71
|
- lib/foundation_emails/engine.rb
|
72
72
|
- lib/foundation_emails/version.rb
|
73
|
+
- pkg/foundation_emails-2.1.0.1.gem
|
73
74
|
- pkg/foundation_emails-2.1.0.gem
|
74
75
|
- vendor/assets/stylesheets/_foundation-emails.scss
|
75
76
|
- vendor/assets/stylesheets/foundation-emails/_global.scss
|
76
77
|
- vendor/assets/stylesheets/foundation-emails/components/_alignment.scss
|
77
78
|
- vendor/assets/stylesheets/foundation-emails/components/_button.scss
|
78
79
|
- vendor/assets/stylesheets/foundation-emails/components/_callout.scss
|
80
|
+
- vendor/assets/stylesheets/foundation-emails/components/_code.scss
|
79
81
|
- vendor/assets/stylesheets/foundation-emails/components/_media-query.scss
|
80
82
|
- vendor/assets/stylesheets/foundation-emails/components/_menu.scss
|
81
83
|
- vendor/assets/stylesheets/foundation-emails/components/_normalize.scss
|