From 24724a3c90a48f228b2d67ad2af2d293830434ff Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 26 Aug 2017 12:19:33 +0200 Subject: [PATCH] Docs theme updated --- bl-kernel/admin/themes/default/init.php | 2 +- bl-themes/docs/css/blog.css | 21 ++++++++++++++------- bl-themes/docs/php/sidebar.php | 12 ++++++++---- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/bl-kernel/admin/themes/default/init.php b/bl-kernel/admin/themes/default/init.php index 4cfef8df..0717b889 100644 --- a/bl-kernel/admin/themes/default/init.php +++ b/bl-kernel/admin/themes/default/init.php @@ -226,7 +226,7 @@ class HTML { $html .= '
'.$L->g('There are no images').'
'; $html .= ' - '.$L->g('More images').' + '.$L->g('Upload and More Images').' '; diff --git a/bl-themes/docs/css/blog.css b/bl-themes/docs/css/blog.css index cb899551..ed393811 100644 --- a/bl-themes/docs/css/blog.css +++ b/bl-themes/docs/css/blog.css @@ -71,7 +71,7 @@ th, td { } pre, pre code { - font-size: 14px; + font-size: 14px !important; } pre, code { border-radius: 3px; @@ -100,6 +100,7 @@ pre { code { background: #f6f6f6; padding: 4px; + font-size: 14px !important; } blockquote { @@ -334,10 +335,6 @@ div.plugin-content { padding: 0 10px; } -div.plugin-content li { - margin-top: 5px; -} - div.plugin-content ul { display: block; list-style-type: none; @@ -346,17 +343,27 @@ div.plugin-content ul { } div.plugin-content ul > li > ul > li { - margin: 10px; + border-left: 1px solid #dddddd; + padding-left: 10px; + padding: 5px 0 5px 10px; + margin-left: 13px; + font-size: 0.9em; } div.plugin-content ul > li > ul > li > a { color: #555; + cursor: pointer; +} + +div.plugin-content ul > li > ul > li.selected { + border-left: 4px solid #2672ec; + margin-left: 10px; } div.plugin-pages span.parent { color: #2672ec; display: inline-block; - font-size: 1.2em; + font-size: 1em; margin: 8px 0 2px; padding: 10px 0 4px 10px; } diff --git a/bl-themes/docs/php/sidebar.php b/bl-themes/docs/php/sidebar.php index b82d7c6f..dabd034f 100644 --- a/bl-themes/docs/php/sidebar.php +++ b/bl-themes/docs/php/sidebar.php @@ -11,14 +11,18 @@ $html = '
'; $html .= '
'; $html .= '
    '; -foreach($pagesByParent[PARENT] as $parent) { +foreach ($pagesByParent[PARENT] as $parent) { $html .= '
  • '; $html .= ''.$parent->title().''; - if(!empty($pagesByParent[$parent->key()])) { + if (!empty($pagesByParent[$parent->key()])) { $html .= '
      '; - foreach($pagesByParent[$parent->key()] as $child) { - $html .= '
    • '; + foreach ($pagesByParent[$parent->key()] as $child) { + if ($child->key()==$page->key()) { + $html .= '
    • '; + } else { + $html .= '
    • '; + } $html .= ''; $html .= $child->title(); $html .= '';