-
Notifications
You must be signed in to change notification settings - Fork 1
/
embedded-css.html
158 lines (131 loc) · 4.09 KB
/
embedded-css.html
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<style type="text/css">
/* Add responsive and pseudo class stlyes here. Then, after inlining your email, embed this style sheet in the head, along with the Windows Mobile and Outlook '07, '10 conditional comments
* DON'T FORGET TO REMOVE ALL COMMENTS!!! (except for conditional comments)
======================================
* Never leave any comments anywhere in the email when you send it. */
/* RESET
----------- */
#outlook a {
padding: 0;
}
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
/* Fix Outlook 07, 10 Padding issue */
table td {
border-collapse: collapse;
}
/* End RESET */
/* link pseudo classes (limited client support), "yshortcuts" fixes Yahoo! link styling */
a:hover,
a:focus,
span.yshortcuts:hover,
span.yshortcuts:focus {
color: orange !important; /* or whatever your want */
}
a:active,
span.yshortcuts:active {
color: red !important; /* or whatever your want */
}
a:visited,
span.yshortcuts:visited {
color: purple !important; /* or whatever your want */
}
h1 a:hover, h1 a:focus,
h2 a:hover, h2 a:focus,
h3 a:hover, h3 a:focus,
h4 a:hover, h4 a:focus,
h5 a:hover, h5 a:focus,
h6 a:hover, h6 a:focus {
color: orange !important; /* or whatever your want */
}
h1 a:active,
h2 a:active,
h3 a:active,
h4 a:active,
h5 a:active,
h6 a:active {
color: red !important; /* or whatever your want */
}
h1 a:visited,
h2 a:visited,
h3 a:visited,
h4 a:visited,
h5 a:visited,
h6 a:visited {
color: purple !important; /* or whatever your want */
}
/* MOBILE TARGETING
*********************** */
@media only screen and (max-device-width: 480px) {
/* Part one of controlling phone number linking for mobile. */
a[href^="tel"],
a[href^="sms"] {
text-decoration: none;
color: #003399; /* or whatever your want */
pointer-events: none;
cursor: default;
}
.mobile_link a[href^="tel"],
.mobile_link a[href^="sms"] {
text-decoration: default;
color: #003399 !important; /* or whatever your want */
pointer-events: auto;
cursor: default;
}
}
/* More Specific Targeting
---------------------------- */
/* iPad (tablets, smaller screens, etc) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
/* repeating for the iPad */
a[href^="tel"],
a[href^="sms"] {
text-decoration: none;
color: #003399; /* or whatever your want */
pointer-events: none;
cursor: default;
}
.mobile_link a[href^="tel"],
.mobile_link a[href^="sms"] {
text-decoration: default;
color: #003399 !important; /* or whatever your want */
pointer-events: auto;
cursor: default;
}
}
/* iPhone 4g styles */
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
}
/* Android targeting
----------------------- */
/* low density (ldpi) Android layouts */
@media only screen and (-webkit-device-pixel-ratio:.75){
}
/* Medium density (mdpi) Android layouts */
@media only screen and (-webkit-device-pixel-ratio:1){
}
/* High density (hdpi) Android layouts */
@media only screen and (-webkit-device-pixel-ratio:1.5){
}
</style>
<!-- Target Windows Mobile
=================================== -->
<!--[if IEMobile 7]>
<style type="text/css">
</style>
<![endif]-->
<!-- Target Outlook 2007 and 2010
===================================== -->
<!--[if gte mso 9]>
<style>
</style>
<![endif]-->