Skip to content

Commit 6efa577

Browse files
committed
Cleanup styles and update logo
1 parent f25fe0a commit 6efa577

File tree

9 files changed

+37
-37
lines changed

9 files changed

+37
-37
lines changed

src/css/scss/default/_buttons.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
width: 100%;
77

88
> tr > td {
9-
padding-bottom: 15px;
9+
padding-bottom: 16px;
1010
}
1111

1212
table {
@@ -19,17 +19,17 @@
1919
text-align: center;
2020
}
2121

22-
a{
22+
a {
2323
background-color: #ffffff;
2424
border: solid 1px $primary-color;
2525
border-radius: $btn-br;
2626
color: $primary-color;
2727
cursor: pointer;
2828
display: inline-block;
29-
font-size: 14px;
29+
font-size: 16px;
3030
font-weight: bold;
3131
margin: 0;
32-
padding: 12px 25px;
32+
padding: 12px 24px;
3333
text-decoration: none;
3434
text-transform: capitalize;
3535
}
@@ -42,7 +42,7 @@
4242
background-color: $primary-color;
4343
}
4444

45-
a{
45+
a {
4646
background-color: $primary-color;
4747
border-color: $primary-color;
4848
color: #ffffff;
@@ -56,7 +56,7 @@
5656
background-color: transparent;
5757
}
5858

59-
a{
59+
a {
6060
background-color: transparent;
6161
border-color: $primary-color;
6262
color: $primary-color;

src/css/scss/default/_config.scss

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,40 @@
22
CONFIGURE YOUR VARIABLES
33
------------------------------------- */
44

5-
$padding: 30px; // For consistent padding
6-
$grey: #f6f6f6; // Background color
5+
$padding: 24px; // For consistent padding
6+
$grey: #f4f5f6; // Background color
77
$width: 580px; // Width of the content area
8-
$br: 3px; // Border radius
9-
$btn-br: 5px; // Border radius
10-
$primary-color: #348eda; // Primary color for buttons and links
11-
$font-color: #111111; // Default font color
8+
$br: 8px; // Border radius
9+
$btn-br: 4px; // Border radius
10+
$primary-color: #0867ec; // Primary color for buttons and links
11+
$font-color: #161f33; // Default font color
1212

1313
// Typography
1414
// -------
1515

1616
$body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
1717
$body-font-weight: 400 !default;
18-
$body-font-size: 14px !default;
19-
$body-font-color: #555 !default;
18+
$body-font-size: 16px !default;
19+
$body-font-color: $font-color !default;
2020
$body-line-height: 1.6 !default;
2121

2222
// Notices
2323
// -------
2424

25-
$notice-color-info: #3d88ce !default;
26-
$notice-color-success: #81ad22 !default;
27-
$notice-color-warning: #c6a121 !default;
28-
$notice-color-danger: #be2c2c !default;
25+
$notice-color-info: #0867ec !default;
26+
$notice-color-success: #00aa55 !default;
27+
$notice-color-warning: #f39c12 !default;
28+
$notice-color-danger: #d51507 !default;
2929

30-
$notice-border-radius: 6px !default;
30+
$notice-border-radius: 4px !default;
3131
$notice-font-size: $body-font-size !default;
3232
$notice-font-weight: $body-font-weight !default;
3333
$notice-line-height: $body-line-height !default;
3434
$notice-padding: 8px 12px !default;
35-
$notice-margin: 10px 0 !default;
35+
$notice-margin: 8px 0 !default;
3636

3737
// Dividers
3838
// --------
3939

40-
$divider-margin: 20px 0 !default;
41-
$divider-color: #ccc !default;
40+
$divider-margin: 24px 0 !default;
41+
$divider-color: #eaebed !default;

src/css/scss/default/_global.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ html {
2222
body {
2323
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
2424
-webkit-font-smoothing: antialiased;
25-
font-size: 14px;
25+
font-size: 16px;
2626
height: 100% !important;
2727
line-height: 1.6em;
2828
margin: 0;
@@ -41,7 +41,7 @@ table {
4141

4242
td {
4343
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
44-
font-size: 14px;
44+
font-size: 16px;
4545
vertical-align: top;
4646
}
4747
}

src/css/scss/default/_layout.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body{
1616
display: block;
1717
Margin: 0 auto !important; /* makes it centered */
1818
max-width: $width;
19-
padding: 10px;
19+
padding: 8px;
2020
width: auto !important;
2121
width: $width;
2222
}
@@ -26,7 +26,7 @@ body{
2626
display: block;
2727
margin: 0 auto;
2828
max-width: $width;
29-
padding: 10px;
29+
padding: 8px;
3030
}
3131

3232

@@ -51,8 +51,8 @@ body{
5151
}
5252

5353
.header {
54-
margin-bottom: $padding;
55-
margin-top: ($padding - 10);
54+
margin-bottom: $padding/2;
55+
margin-top: $padding/2;
5656
width: 100%;
5757
}
5858

@@ -66,6 +66,6 @@ body{
6666
}
6767

6868
td {
69-
padding: 20px 0;
69+
padding: 24px 0;
7070
}
7171
}

src/css/scss/default/_notices.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
@mixin create-notice($color) {
66
td {
77
background: lighten($color, 44%);
8-
border: 1px solid lighten($color, 30%);
8+
border: 1px solid $color;
99
border-radius: $notice-border-radius;
10-
color: darken($color, 10%);
10+
color: darken($color, 20%);
1111
padding: $notice-padding;
1212
}
1313
}

src/css/scss/default/_type.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ h4 {
1111
font-weight: 400;
1212
line-height: 1.4em;
1313
margin: 0;
14-
margin-bottom: 30px;
14+
margin-bottom: 24px;
1515
}
1616

1717
h1 {
@@ -26,22 +26,22 @@ h3 {
2626
font-size: 18px;
2727
}
2828
h4 {
29-
font-size: 14px;
29+
font-size: 16px;
3030
font-weight:500;
3131
}
3232

3333
p,
3434
ul,
3535
ol {
3636
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
37-
font-size: 14px;
37+
font-size: 16px;
3838
font-weight: normal;
3939
margin: 0;
40-
margin-bottom: 15px;
40+
margin-bottom: 16px;
4141

4242
li {
4343
list-style-position: inside;
44-
margin-left: 5px;
44+
margin-left: 4px;
4545
}
4646
}
4747

src/emails/branded.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ subject: Branded transaction email example
77
<table>
88
<tr>
99
<td class="align-center">
10-
<a href="http://www.mailgun.com"><img src="../src/img/mailgun.png" height="50" alt="Mailgun"></a>
10+
<a href="https://htmlemail.io"><img src="../src/img/logo.png" width="40" height="40" alt="HTML Email"></a>
1111
</td>
1212
</tr>
1313
</table>

src/img/logo.png

971 Bytes
Loading

src/img/mailgun.png

-6.73 KB
Binary file not shown.

0 commit comments

Comments
 (0)