@energycap/components 0.26.3 → 0.26.4-email-css-improvements.20211112-1403

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.
@@ -0,0 +1 @@
1
+ *,*::before,*::after{box-sizing:border-box}html{background-color:#fff}body{margin:0 auto;width:37.5rem;max-width:100%;padding:2rem 0;font-size:.875rem;font-weight:400;color:#1a1a23;line-height:1.2;font-family:Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI","Oxygen","Ubuntu","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;text-align:left}[tabindex="-1"]:focus{outline:0 !important}main{padding:2rem 1.5rem}main+footer{padding:1.5rem 1.5rem 0;border-top:1px solid rgba(26,26,35,.18);font-size:.625rem;color:rgba(26,26,35,.66)}h1,h2,h3,h4,h5,h6,p,ol,ul{margin-top:0;margin-bottom:1rem}h1,h2{font-size:1.25rem;line-height:1.5rem}h3,h4{font-size:1rem;line-height:1.5rem}h5,h6{font-size:.75rem;line-height:1rem;text-transform:uppercase;color:rgba(26,26,35,.66)}h1,h3,h5{font-weight:bold}h2,h4,h6{font-weight:normal}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}b,strong{font-weight:bolder}a{color:#0084a9;text-decoration:none;background-color:transparent}a:hover{text-decoration:underline}a:focus{outline:#0084a9 solid .125rem;outline-offset:.125rem;border-radius:.125rem}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}a.button,a.cta{display:inline-block;margin-right:.5rem;margin-bottom:.5rem}a.button{line-height:2rem;padding:0 1rem;border:1px solid rgba(26,26,35,.18);color:rgba(26,26,35,.66)}a.cta{line-height:3rem;padding:0 1.5rem;background-color:#17303b;color:#d8e902;min-width:11rem;text-align:center;border-radius:.25rem}img{max-width:100%}hr{box-sizing:content-box;height:0;border-bottom:0;overflow:visible;margin:1rem 0;border-color:rgba(26,26,35,.18)}.banner{margin-left:-1.5rem;margin-right:-1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-underline{text-decoration:underline}.ec-app-icon,.ec-logo{background-size:contain;background-repeat:no-repeat;height:2rem;margin-bottom:2.5rem;margin-left:-0.25rem;display:block}.ec-logo{max-width:100%}.ec-app-icon{height:3rem}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.26.3",
3
+ "version": "0.26.4-email-css-improvements.20211112-1403",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="38" height="38" fill="none" viewBox="0 0 38 38">
2
+ <rect width="38" height="38" fill="#fff" rx="19"/>
3
+ <g clip-path="url(#clip0_760_479)">
4
+ <path fill="#A0AD39" d="M25.125 11.351H12.752v3.138h12.373V11.35zM25.125 23.612H12.752v3.137h12.373v-3.137zM21.06 17.482h-8.308v3.137h8.308v-3.137zM18.889 6.514c3.833 0 7.26 1.725 9.562 4.436l2.572-1.826A15.656 15.656 0 0018.89 3.376c-4.888 0-9.262 2.24-12.135 5.748l2.572 1.826c2.303-2.71 5.729-4.436 9.563-4.436z"/>
5
+ <path fill="#17303B" d="M28.457 27.176c-2.303 2.71-5.728 4.436-9.562 4.436-3.834 0-7.26-1.726-9.562-4.436l.012-.007c-1.857-2.19-3-5.007-3-8.106 0-1.97.465-3.821 1.275-5.484L5.022 11.74a15.62 15.62 0 00-1.813 7.323c0 3.77 1.336 7.228 3.551 9.932a15.657 15.657 0 0012.135 5.748c4.888 0 9.261-2.24 12.135-5.748l-2.573-1.82z"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_760_479">
9
+ <path fill="#fff" d="M0 0h28.235v32H0z" transform="translate(2.882 3)"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="480" height="70" fill="none" viewBox="0 0 480 70">
2
+ <path fill="#fff" d="M0 0h480v69.874H0z"/>
3
+ <g clip-path="url(#clip0_760_500)">
4
+ <path fill="#1C2C36" d="M16.55 54.268V39.315H42.32v-7.457H16.55v-14.99h28.936V9.263H8v52.61h38.504v-7.605H16.55zM92.6 9.264v37.204L62.67 9.264h-6.93v52.61h8.563V24.67l29.942 37.204h6.918V9.264h-8.562zM168.922 16.869h11.874c4.477 0 7.936.957 10.267 2.833 2.318 1.877 3.446 4.527 3.446 8.084 0 3.557-1.128 6.219-3.446 8.12-2.331 1.901-5.778 2.87-10.255 2.87h-11.874V16.87h-.012zm23.183 27.44c3.373-1.325 6.023-3.35 7.912-6.035 2.024-2.883 3.054-6.404 3.054-10.476 0-5.74-1.999-10.316-5.949-13.615-3.913-3.263-9.322-4.92-16.105-4.92H160.36v52.61h8.562V46.235h12.095c.735 0 1.717-.036 2.931-.123l11.064 15.763h9.494l-12.401-17.565zM305.029 9.264l-16.18 26.532-16.105-26.532h-9.286l20.89 34.26v18.35h8.488V43.67l20.877-34.407h-8.684zM401.211 41.929H380.91l10.156-23.06 10.145 23.06zm-6.099-32.665h-8.057l-23.822 52.61h8.905l5.656-12.843h26.517l5.656 12.843h9.054l-23.909-52.61M459.743 27.786c0 3.557-1.127 6.207-3.447 8.083-2.329 1.877-5.777 2.834-10.265 2.834h-11.876V16.869h11.876c4.488 0 7.936.957 10.265 2.834 2.332 1.876 3.447 4.526 3.447 8.083zm2.627-13.604c-3.915-3.262-9.323-4.918-16.107-4.918h-20.657v52.61h8.562V46.308h12.095c6.771 0 12.192-1.656 16.107-4.919 3.949-3.287 5.947-7.863 5.947-13.615-.012-5.729-2.01-10.304-5.947-13.592zM236.374 34.14v7.875h13.665v9.101c-3.251 2.012-7.078 3.018-11.407 3.018-3.742 0-7.152-.834-10.145-2.49-2.993-1.644-5.36-3.95-7.053-6.845-1.693-2.895-2.551-6.182-2.551-9.764 0-3.63.858-6.942 2.551-9.837 1.693-2.895 4.06-5.189 7.053-6.808 2.993-1.632 6.428-2.453 10.218-2.453 5.618 0 10.488 1.938 14.45 5.765l.429.417 5.372-5.373-.392-.429c-2.404-2.65-5.348-4.686-8.758-6.047-3.398-1.362-7.237-2.06-11.395-2.06-5.299 0-10.145 1.152-14.389 3.446-4.256 2.294-7.642 5.52-10.046 9.604-2.417 4.085-3.643 8.721-3.643 13.788 0 5.066 1.226 9.702 3.643 13.75 2.416 4.06 5.777 7.286 10.009 9.593 4.22 2.306 9.028 3.483 14.291 3.483 3.716 0 7.322-.577 10.745-1.717 3.422-1.14 6.477-2.81 9.065-4.944l.221-.184V34.14h-21.933"/>
5
+ <path fill="#96B224" d="M110.399 9.239h39.731v7.949h-39.731V9.239M110.399 53.925h40.761v7.95h-40.761v-7.95zM110.399 31.576h26.422v7.949h-26.422v-7.949z"/>
6
+ <path fill="#1C2C36" d="M340.736 53.974c-10.488 0-19.013-8.537-19.013-19.037 0-2.392.465-4.673 1.277-6.795l-7.067-5.005a26.225 26.225 0 00-2.796 11.8c0 14.855 12.378 26.937 27.599 26.937 7.434 0 14.18-2.883 19.148-7.568l-6.87-4.87c-3.311 2.821-7.592 4.538-12.278 4.538"/>
7
+ <path fill="#96B224" d="M340.736 15.9c6 0 11.346 2.796 14.83 7.151l6.796-4.82C357.307 11.998 349.495 8 340.736 8c-8.757 0-16.572 4.01-21.627 10.23l6.796 4.82c3.485-4.354 8.834-7.151 14.831-7.151"/>
8
+ <path fill="#1C2C36" d="M467.849 56.276c.276-.219.412-.526.412-.922s-.136-.701-.412-.916c-.275-.213-.666-.32-1.164-.32h-1.379v2.486h1.379c.498 0 .889-.109 1.164-.328zm1.103.281a1.902 1.902 0 01-.969.72l1.421 2.204h-1.078l-1.297-2H465.322v2h-1.063v-6.254h2.503c.781 0 1.4.193 1.852.579.453.385.682.901.682 1.548 0 .468-.118.87-.344 1.203zm-.049 3.972a4.661 4.661 0 001.728-1.751 4.85 4.85 0 00.635-2.455c0-.897-.208-1.71-.62-2.44a4.498 4.498 0 00-1.703-1.72c-.725-.416-1.54-.625-2.447-.625-.895 0-1.713.214-2.447.641a4.652 4.652 0 00-1.729 1.744 4.862 4.862 0 00-.625 2.431c0 .886.21 1.697.625 2.432a4.667 4.667 0 001.72 1.743 4.713 4.713 0 002.425.641c.895 0 1.71-.213 2.438-.641zm.399-8.976c.84.48 1.499 1.14 1.979 1.979.48.839.719 1.77.719 2.79a5.525 5.525 0 01-.734 2.807 5.44 5.44 0 01-2.001 2.01 5.479 5.479 0 01-2.8.735c-1.022 0-1.952-.245-2.791-.735a5.364 5.364 0 01-1.985-2.002 5.47 5.47 0 01-.728-2.783 5.47 5.47 0 01.728-2.783 5.364 5.364 0 011.991-2.002c.846-.49 1.784-.735 2.816-.735 1.031 0 1.967.24 2.806.72"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_760_500">
12
+ <path fill="#fff" d="M0 0h464v53.874H0z" transform="translate(8 8)"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,163 @@
1
+ @import '../variables';
2
+
3
+ @mixin body {
4
+ font-size: .875rem;
5
+ font-weight: 400;
6
+ color: $ec-color-text-primary-dark;
7
+ line-height: 1.2;
8
+ font-family: $ec-font-family;
9
+ text-align: left;
10
+ }
11
+
12
+ @mixin content {
13
+ h1, h2, h3, h4, h5, h6, p, ol, ul {
14
+ margin-top: 0;
15
+ margin-bottom: 1rem;
16
+ }
17
+
18
+ h1, h2 {
19
+ font-size: 1.25rem;
20
+ line-height: 1.5rem;
21
+ }
22
+
23
+ h3, h4 {
24
+ font-size: 1rem;
25
+ line-height: 1.5rem;
26
+ }
27
+
28
+ h5, h6 {
29
+ font-size: .75rem;
30
+ line-height: 1rem;
31
+ text-transform: uppercase;
32
+ color: $ec-color-text-secondary-dark;
33
+ }
34
+
35
+ h1, h3, h5 {
36
+ font-weight: bold;
37
+ }
38
+
39
+ h2, h4, h6 {
40
+ font-weight: normal;
41
+ }
42
+
43
+ ol ol,
44
+ ul ul,
45
+ ol ul,
46
+ ul ol {
47
+ margin-bottom: 0;
48
+ }
49
+
50
+ b,
51
+ strong {
52
+ font-weight: bolder;
53
+ }
54
+
55
+ a {
56
+ color: $ec-color-link;
57
+ text-decoration: none;
58
+ background-color: transparent;
59
+ }
60
+
61
+ a:hover {
62
+ text-decoration: underline;
63
+ }
64
+
65
+ a:focus {
66
+ outline: $ec-color-link solid .125rem;
67
+ outline-offset: .125rem;
68
+ border-radius: .125rem;
69
+ }
70
+
71
+ a:not([href]):not([tabindex]) {
72
+ color: inherit;
73
+ text-decoration: none;
74
+ }
75
+
76
+ a:not([href]):not([tabindex]),
77
+ a:not([href]):not([tabindex]):focus {
78
+ color: inherit;
79
+ text-decoration: none;
80
+ }
81
+
82
+ a:not([href]):not([tabindex]):focus {
83
+ outline: 0;
84
+ }
85
+
86
+ a.button,
87
+ a.cta {
88
+ display: inline-block;
89
+ margin-right: .5rem;
90
+ margin-bottom: .5rem;
91
+ }
92
+
93
+ a.button {
94
+ line-height: 2rem;
95
+ padding: 0 1rem;
96
+ border: 1px solid $ec-border-color-default;
97
+ color: $ec-color-text-secondary-dark;
98
+ }
99
+
100
+ a.cta {
101
+ line-height: 3rem;
102
+ padding: 0 1.5rem;
103
+ background-color: #17303B;
104
+ color: #D8E902;
105
+ min-width: 11rem;
106
+ text-align: center;
107
+ border-radius: .25rem;
108
+ }
109
+
110
+ img {
111
+ max-width: 100%;
112
+ }
113
+
114
+ hr {
115
+ box-sizing: content-box;
116
+ height: 0;
117
+ border-bottom: 0;
118
+ overflow: visible;
119
+ margin: 1rem 0;
120
+ border-color: $ec-border-color-default;
121
+ }
122
+
123
+ .banner {
124
+ margin-left: -1.5rem;
125
+ margin-right: -1.5rem;
126
+ }
127
+
128
+ .text-left {
129
+ text-align: left;
130
+ }
131
+
132
+ .text-center {
133
+ text-align: center;
134
+ }
135
+
136
+ .text-right {
137
+ text-align: right;
138
+ }
139
+
140
+ .text-underline {
141
+ text-decoration: underline;
142
+ }
143
+ }
144
+
145
+ @mixin logos {
146
+ .ec-app-icon,
147
+ .ec-logo {
148
+ background-size: contain;
149
+ background-repeat: no-repeat;
150
+ height: 2rem;
151
+ margin-bottom: 2.5rem;
152
+ margin-left: -.25rem; // negative offset to account for white background so image works in dark mode. This keeps the left side aligned with the rest of the email content
153
+ display: block;
154
+ }
155
+
156
+ .ec-logo {
157
+ max-width: 100%;
158
+ }
159
+
160
+ .ec-app-icon {
161
+ height: 3rem;
162
+ }
163
+ }
@@ -0,0 +1,58 @@
1
+ /** Standalone styles for energycap application emails. Include the generated css (dist/components/energycap-email.min.css) in a style element in the head of the email document. */
2
+ @import 'email-base';
3
+
4
+ *,
5
+ *::before,
6
+ *::after {
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ html {
11
+ background-color: #fff;
12
+ }
13
+
14
+ body {
15
+ margin: 0 auto;
16
+ width: 37.5rem;
17
+ max-width: 100%;
18
+ padding: 2rem 0;
19
+ @include body;
20
+ }
21
+
22
+ [tabindex="-1"]:focus {
23
+ outline: 0 !important;
24
+ }
25
+
26
+ main {
27
+ padding: 2rem 1.5rem;
28
+ }
29
+
30
+ main + footer {
31
+ padding: 1.5rem 1.5rem 0;
32
+ border-top: 1px solid $ec-border-color-default;
33
+ font-size: $ec-font-size-tiny;
34
+ color: $ec-color-text-secondary-dark;
35
+ }
36
+
37
+ @include content;
38
+ @include logos;
39
+
40
+ // @media screen and (max-width: 20rem) {
41
+ // html {
42
+ // background-color: $ec-color-bg-content;
43
+ // }
44
+
45
+ // body {
46
+ // padding-top: 0;
47
+ // padding-bottom: 3rem;
48
+ // }
49
+
50
+ // main {
51
+ // box-shadow: none;
52
+ // border-radius: 0;
53
+ // }
54
+
55
+ // main + footer {
56
+ // border-top: 1px solid $ec-border-color-default;
57
+ // }
58
+ // }