1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-22 05:29:34 +01:00

Fixed some styling issues with the latest update.

#201 - Increased top padding of post blocks.
#458 - Fixed meme arrows.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
This commit is contained in:
8n-tech 2015-04-20 00:51:45 +10:00
parent 558152790d
commit 2c39452190
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);
$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'])
$body = preg_replace('/\s+$/', '', $body);
@ -2291,7 +2291,14 @@ function markup(&$body, $track_cites = false, $op = false) {
$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;

View File

@ -399,7 +399,7 @@ div.post div.body {
div.post.reply {
background: #D6DAF0;
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-style: none solid solid none;
border-color: #B7C5D9;
@ -436,7 +436,7 @@ span.trip {
color: #228854;
}
span.quote {
.quote {
color: #789922;
}
@ -1039,7 +1039,7 @@ span.pln {
display: block;
width: 100%;
padding: 0;
margin: 0;
margin: 0 0 0 0;
text-align: center;
}
#logo-link {