Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed Nov 2, 2014
1 parent af36043 commit 7a33f09
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def compile_html(file, fileout)
puts "#{w[:message]} (#{w[:level]}) may not render properly in #{w[:clients]}"
end

# transform strange characters
out.gsub!('%3C%25', '<%')
out.gsub!('%25%3E', '%>')

File.open(fileout, 'w') {|file| file.puts out}
out
end
Expand All @@ -38,6 +42,10 @@ def embed_responsive_css(file, fileout)
html.gsub!('href="/', 'href="')
html.gsub!('url(', 'url(' + BASE_URL)

# transform strange characters
html.gsub!('<%', '%3C%25')
html.gsub!('%>', '%25%3E')

# embed responsive stylesheet into html
css = '<style data-premailer="ignore" type="text/css">' + "\n"
css += File.read(File.join('css', 'responsive.css'))
Expand Down
4 changes: 4 additions & 0 deletions css/responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@
margin: 0 auto;
display: block;
}

body[yahoo] .mobile-full-width {
width: 100% !important;
}
}

@media only screen and (min-device-pixel-ratio: 2) { {
Expand Down
30 changes: 26 additions & 4 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ table {
margin: 30px 0;
}

.blankcell .boxtable:last-child, .blankcell .twocolstable:last-child {
margin-bottom: 15px;
}

.boxcell {
border: 1px solid #ededed;
border-radius: 20px;
Expand All @@ -143,6 +139,14 @@ table {
margin: 30px 0;
}

.blankcell .boxtable:first-child, .blankcell .twocolstable:first-child {
margin-top: 0;
}

.blankcell .boxtable:last-child, .blankcell .twocolstable:last-child {
margin-bottom: 0;
}

.twocolscell {
width: 260px;
}
Expand All @@ -157,6 +161,11 @@ table.maintable table.nomargin {
border-bottom-color: #bbb;
}

.twocolscell.nomargin:first-child {
padding-right: 0;
width: 260px;
}

.twocolscell p:last-child {
margin-bottom: 0;
}
Expand Down Expand Up @@ -218,6 +227,15 @@ p {
font-size: 14px;
}

p.apple {
-webkit-font-smoothing: antialiased;
font-family: 'Myriad Set Pro', 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
}

small {
font-size: 10px;
}

a, a:visited {
text-decoration: none;
font-weight: bold;
Expand All @@ -244,6 +262,10 @@ hr {
border-bottom: 1px solid #bcbcbc;
}

.blankcell p.followus:first-child {
margin-top: 0;
}

.followus img {
margin-top: -4px;
margin-left: 10px;
Expand Down

0 comments on commit 7a33f09

Please sign in to comment.