summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/mailer.scss
blob: f188b29a1138eb2b2e030ac83d16a753882e81bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@import 'framework/variables';

// Do not use 3-letter hex codes, bgcolor vs css background-color is problematic in emails
// See https://stackoverflow.com/questions/28551981/why-are-3-digit-hex-color-code-values-interpreted-differently-in-internet-explor
//
// stylelint-disable color-hex-length

$mailer-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
$mailer-text-color: #333;
$mailer-bg-color: #fafafa;
$mailer-link-color: #3777b0;
$mailer-link-muted-color: #333;
$mailer-line-cell-bg-color: #6b4fbb;
$mailer-wrapper-cell-bg-color: #fff;
$mailer-wrapper-cell-border-color: #ededed;
$mailer-header-footer-text-color: #5c5c5c;

body {
  margin: 0 !important;
  background-color: $mailer-bg-color;
  padding: 0;
  text-align: center;
  min-width: 640px;
  width: 100%;
  height: 100%;
  font-family: $mailer-font;
}

table#body {
  background-color: $mailer-bg-color;
  margin: 0;
  padding: 0;
  text-align: center;
  min-width: 640px;
  width: 100%;
}

a {
  color: $mailer-link-color;
  text-decoration: none;

  &.muted {
    color: $mailer-link-muted-color;
  }
}

.highlight {
  font-weight: 500;
}

tr td {
  font-family: $mailer-font;
}

tr.line td {
  font-family: $mailer-font;
  background-color: $mailer-line-cell-bg-color;
  height: 4px;
  font-size: 4px;
  line-height: 4px;
}

tr.header td,
tr.footer td,
td.footer-message {
  font-family: $mailer-font;
  padding: 25px 0;
  font-size: 13px;
  line-height: 1.6;
  color: $mailer-header-footer-text-color;
}

table.wrapper {
  width: 640px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;

  td.wrapper-cell {
    font-family: $mailer-font;
    background-color: $mailer-wrapper-cell-bg-color;
    text-align: left;
    padding: 18px 25px;
    border: 1px solid $mailer-wrapper-cell-border-color;
    border-radius: 3px;
    overflow: hidden;
  }
}

table.content {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;

  td.text-content {
    font-family: $mailer-font;
    color: $mailer-text-color;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    padding: 15px 5px;
    text-align: center;
  }
}

tr.footer td {
  img {
    display: block;
    margin: 0 auto 1em;
  }

  .mng-notif-link,
  .help-link {
    color: $mailer-link-color;
    text-decoration: none;
  }
}