Commit ba07fa07 authored by Phil Hughes's avatar Phil Hughes

Changed CSS for emails to be mostly single class selectors

parent 050e4848
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// preference): plain class selectors, type (element name) selectors, or // preference): plain class selectors, type (element name) selectors, or
// explicit child selectors. // explicit child selectors.
table.code { .code {
font-family: monospace; font-family: monospace;
font-size: $code_font_size; font-size: $code_font_size;
-premailer-cellpadding: 0; -premailer-cellpadding: 0;
...@@ -20,34 +20,16 @@ table.code { ...@@ -20,34 +20,16 @@ table.code {
tr { tr {
line-height: $code_line_height; line-height: $code_line_height;
} }
.diff-line-num {
padding: 0 5px;
text-align: right;
max-width: 50px;
width: 35px;
border-right-width: 1px;
border-right-style: solid;
}
.line_content {
white-space: pre;
}
} }
.line-numbers, .diff-line-num { .diff-line-num {
background-color: $background-color; padding: 0 5px;
} text-align: right;
max-width: 50px;
.diff-line-num, .diff-line-num a { width: 35px;
color: $black-transparent; color: $black-transparent;
}
pre.code, .diff-line-num {
border-right: 1px solid $table-border-gray; border-right: 1px solid $table-border-gray;
}
.diff-line-num {
&.old { &.old {
background-color: $line-number-old; background-color: $line-number-old;
border-right-color: $line-removed-dark; border-right-color: $line-removed-dark;
...@@ -60,12 +42,14 @@ pre.code, .diff-line-num { ...@@ -60,12 +42,14 @@ pre.code, .diff-line-num {
} }
.line_content { .line_content {
white-space: pre;
background-color: #fff; background-color: #fff;
&.old { &.old {
background-color: $line-removed; background-color: $line-removed;
> .line > span.idiff, > .line > span > span.idiff { > .line > span.idiff,
> .line > span > span.idiff {
background-color: $line-removed-dark; background-color: $line-removed-dark;
} }
} }
...@@ -73,7 +57,8 @@ pre.code, .diff-line-num { ...@@ -73,7 +57,8 @@ pre.code, .diff-line-num {
&.new { &.new {
background-color: $line-added; background-color: $line-added;
> .line > span.idiff, > .line > span > span.idiff { > .line > span.idiff,
> .line > span > span.idiff {
background-color: $line-added-dark; background-color: $line-added-dark;
} }
} }
...@@ -84,6 +69,10 @@ pre.code, .diff-line-num { ...@@ -84,6 +69,10 @@ pre.code, .diff-line-num {
} }
} }
.diff-line-num {
background-color: $background-color;
}
span.highlight_word { span.highlight_word {
background-color: #fafe3d !important; background-color: #fafe3d !important;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment