update css and php call for the update of childpage plugin

This commit is contained in:
Zatalyz 2020-05-01 14:09:47 +02:00
parent 050ea9948d
commit 491449e56d
3 changed files with 22 additions and 17 deletions

View file

@ -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" ;
} */

View file

@ -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;
}
}

View file

@ -111,9 +111,14 @@ $showSidebar = $hasSidebar && ($ACT=='show');
<?php
foreach ( (new \dokuwiki\Menu\PageMenu())->getItems() as $item ) {
if ( preg_match('/^childrenpages_/', $item->getType()) ) {
if ( $item->is_active ) {
echo '<li class="current_page"><div class="toptab_current_page"></div>'.$item->asHtmlLink(false, true).'</li>';
} else {
echo '<li><div class="toptab"></div>'.$item->asHtmlLink(false, true).'</li>';
}
}
}
?>
</ul>