From 2c39452190ecc3c399e11123909e72a03f996457 Mon Sep 17 00:00:00 2001 From: 8n-tech <8n-tech@users.noreply.github.com> Date: Mon, 20 Apr 2015 00:51:45 +1000 Subject: [PATCH] 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> --- inc/functions.php | 11 +++++++++-- stylesheets/style.css | 6 +++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index 4c16f065..b7da4c7f 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -2274,7 +2274,7 @@ function markup(&$body, $track_cites = false, $op = false) { $tracked_cites = array_unique($tracked_cites, SORT_REGULAR); - $body = preg_replace("/^\s*>.*$/m", '$0', $body); + //$body = preg_replace("/^\s*>.*$/m", '$0', $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 .= "

" . $paragraph . "

"; + if (strpos($paragraph, ">")===0) { + $quoteClass = "quote"; + } + else { + $quoteClass = ""; + } + + $bodyNew .= "

" . $paragraph . "

"; } $body = $bodyNew; diff --git a/stylesheets/style.css b/stylesheets/style.css index a46677bb..a19d35d3 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -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 {