main nav counter fallback

This commit is contained in:
Jana Deutschländer 2017-01-04 16:37:51 +01:00
commit 5cbfd9f86e
2 changed files with 9 additions and 5 deletions

View file

@ -6,10 +6,11 @@
#dokuwiki__aside.main-sidebar {
counter-reset: nav-counter;
/* + + + + + nav main + + + + + */
.nav-main {
> ul {
@icon-size: 2rem;
margin: 0;
@ -42,13 +43,16 @@
border-bottom: solid 1px @color-border;
margin: 0;
padding: 0 0 .3rem 0;
counter-increment: nav-counter;
> .li { //background-color: pink;// hier activ !!!
position: relative;
padding: .5rem 0 .5rem (@icon-size + 1);
&::before { background-color: gold;// test
content: '?';
&::before {
//background-color: @color-link;
color: @color-nav;
content: counter(nav-counter);
position: absolute;
top: 0;
left: 0;