From 491449e56d6ac2ca207bca0f0e33f03d6efbcb03 Mon Sep 17 00:00:00 2001 From: Zatalyz Date: Fri, 1 May 2020 14:09:47 +0200 Subject: [PATCH] update css and php call for the update of childpage plugin --- css/biseau.less | 24 ++++++++++++------------ css/tabs.less | 8 ++++---- main.php | 7 ++++++- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/css/biseau.less b/css/biseau.less index 688bc23..6932ac2 100644 --- a/css/biseau.less +++ b/css/biseau.less @@ -55,27 +55,27 @@ span { padding:0.1em; - margin-top: -1.5em; + margin-top: -1.7em; + border-bottom: 1px solid @ini_border3; /* pour span actif : passer à -1.6em.*/ } } } +.tab_ul li.current_page span { + border-bottom:none; +} + .toptab { border-style : solid; - border-color : transparent transparent @ini_background transparent; + border-color : transparent transparent @ini_background_neu transparent; border-width : 0 1.5em 1.5em 0; } +.toptab_current_page { + border-style : solid; + border-color : transparent transparent @ini_background transparent; + border-width : 0 1.5em 1.5em 0; + -/* ul { - list-style-type: "\2B21" ; } - -li { - list-style-type: "\2B22"; -} - -li ul li { - list-style-type: "\2B21" ; -} */ \ No newline at end of file diff --git a/css/tabs.less b/css/tabs.less index a973c3f..e1948c6 100644 --- a/css/tabs.less +++ b/css/tabs.less @@ -102,7 +102,7 @@ margin-top: -1.5em; padding: 0.5em 0.1em 0; */ - overflow: hidden; + /*overflow: hidden;*/ margin: 0 0.5em 0 0 ; padding: 0; display:inline-block; @@ -118,9 +118,6 @@ padding: .1em .35em; display: block; /*position: absolute;*/ - - - } /* TODO : c'est là le temps de régler le souci d'image */ @@ -128,6 +125,9 @@ display :none; } } + .current_page { + font-weight:bold; + } } diff --git a/main.php b/main.php index 0709dfb..0f68640 100644 --- a/main.php +++ b/main.php @@ -111,9 +111,14 @@ $showSidebar = $hasSidebar && ($ACT=='show'); getItems() as $item ) { if ( preg_match('/^childrenpages_/', $item->getType()) ) { - echo '
  • '.$item->asHtmlLink(false, true).'
  • '; + if ( $item->is_active ) { + echo '
  • '.$item->asHtmlLink(false, true).'
  • '; + } else { + echo '
  • '.$item->asHtmlLink(false, true).'
  • '; + } } } + ?>