Merge pull request #468 from 8n-tech/master

Fixed some styling issues with the latest update.
This commit is contained in:
Fredrick Brennan 2015-04-19 10:56:02 -04:00
commit 1f4fd1398f
2 changed files with 12 additions and 5 deletions

View File

@ -2274,7 +2274,7 @@ function markup(&$body, $track_cites = false, $op = false) {
$tracked_cites = array_unique($tracked_cites, SORT_REGULAR); $tracked_cites = array_unique($tracked_cites, SORT_REGULAR);
$body = preg_replace("/^\s*&gt;.*$/m", '<span class="quote">$0</span>', $body); //$body = preg_replace("/^\s*&gt;.*$/m", '<span class="quote">$0</span>', $body);
if ($config['strip_superfluous_returns']) if ($config['strip_superfluous_returns'])
$body = preg_replace('/\s+$/', '', $body); $body = preg_replace('/\s+$/', '', $body);
@ -2291,7 +2291,14 @@ function markup(&$body, $track_cites = false, $op = false) {
$paragraphDirection = "empty"; $paragraphDirection = "empty";
} }
$bodyNew .= "<p class=\"body-line {$paragraphDirection}\">" . $paragraph . "</p>"; if (strpos($paragraph, "&gt;")===0) {
$quoteClass = "quote";
}
else {
$quoteClass = "";
}
$bodyNew .= "<p class=\"body-line {$paragraphDirection} {$quoteClass}\">" . $paragraph . "</p>";
} }
$body = $bodyNew; $body = $bodyNew;

View File

@ -399,7 +399,7 @@ div.post div.body {
div.post.reply { div.post.reply {
background: #D6DAF0; background: #D6DAF0;
margin: 0.2em 4px; margin: 0.2em 4px;
padding: 0.2em 0.3em 0.5em 0.6em; padding: 0.5em 0.3em 0.5em 0.6em;
border-width: 1px; border-width: 1px;
border-style: none solid solid none; border-style: none solid solid none;
border-color: #B7C5D9; border-color: #B7C5D9;
@ -436,7 +436,7 @@ span.trip {
color: #228854; color: #228854;
} }
span.quote { .quote {
color: #789922; color: #789922;
} }
@ -1039,7 +1039,7 @@ span.pln {
display: block; display: block;
width: 100%; width: 100%;
padding: 0; padding: 0;
margin: 0; margin: 0 0 0 0;
text-align: center; text-align: center;
} }
#logo-link { #logo-link {