From 52bfcf4d89c542c621a6859e389f2d2465c325ec Mon Sep 17 00:00:00 2001 From: Jory Phillips Date: Mon, 10 Aug 2015 18:01:50 -0700 Subject: [PATCH] Small HTML reconfigure and CSS adjustments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PHP/HTML change removes the blank UL from child pages and instead uses the parent UL identified in the settings. The change also puts the child list ‘dash’ into the CSS and adds margins to the content. --- plugins/pages/plugin.php | 12 ++++++------ themes/pure/css/blog.css | 12 ++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/plugins/pages/plugin.php b/plugins/pages/plugin.php index 6c7b8157..31d83df7 100755 --- a/plugins/pages/plugin.php +++ b/plugins/pages/plugin.php @@ -50,25 +50,25 @@ class pluginPages extends Plugin { if($Site->homepage()!==$parent->key()) { // Print the parent - $html .= '
  • '.$parent->title().'
  • '; + $html .= '
  • '.$parent->title().''; - // Check if the parent hash children + // Check if the parent has children if(isset($pagesParents[$parent->key()])) { $children = $pagesParents[$parent->key()]; // Print the children - $html .= '
  • '; } } } - $html .= ''; + $html .= '
  • '; $html .= ''; $html .= ''; diff --git a/themes/pure/css/blog.css b/themes/pure/css/blog.css index e64c8e54..0fd8a85f 100644 --- a/themes/pure/css/blog.css +++ b/themes/pure/css/blog.css @@ -64,6 +64,12 @@ code { letter-spacing: 0.1em; } +.content { + padding-top: 3em; + margin-right: 30px; + margin-left: 30px; +} + #layout { padding: 0; } @@ -268,6 +274,12 @@ div.plugin-content ul > li > ul > li { margin: 0; } +div.plugin-content ul > li > ul > li:before { + color: #777; + content: "—"; + padding-right: 5px; +} + div.plugin-content ul > li > ul > li > a { color: #777; }