
I had a really hard time to understand the existing CSS which seemed much too complicated for what it does. Variable use was suboptimal. I couldn't figure out which variable defines the proper size for the icon and the resulting margin.
116 lines
3 KiB
Text
Executable file
116 lines
3 KiB
Text
Executable file
/**
|
|
* This file provides the design styles for the sidebar (navmain).
|
|
*
|
|
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
|
|
*/
|
|
|
|
#dokuwiki__aside.main-sidebar {
|
|
.nav-main {
|
|
@icon-size: @font-size-big;
|
|
@menu-margin: @icon-size + @margin-small*2; // FIXME this is still wrong
|
|
|
|
margin-left: @menu-margin; // moves *all* sidebar content to the right
|
|
|
|
.navi-toggle {
|
|
cursor: pointer;
|
|
|
|
height: @line-height-big;
|
|
line-height: @line-height-big;
|
|
font-weight: normal;
|
|
margin-left: (@menu-margin * -1); // moves the toggles back to the left
|
|
|
|
color: @color-nav;
|
|
border: 1px solid transparent;
|
|
border-radius: @fix_border-radius;
|
|
// margin-bottom: -.3rem; FIXME
|
|
// padding: .7em 0 .7em (@margin-big + 1); FIXME WTF?
|
|
transition: @transition color, @transition background-color, @transition border-color;
|
|
|
|
span {
|
|
display: inline-block;
|
|
width: @menu-margin;
|
|
height: @line-height-big;
|
|
border-right: 1px solid @color-border;
|
|
text-align: center;
|
|
margin-right: @margin-small;
|
|
color: @color-nav;
|
|
|
|
img {
|
|
width: @icon-size;
|
|
height: @icon-size;
|
|
filter: grayscale(100%); //fixme maybe we could find a better way
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background-color: @button_color;
|
|
border-color: @button_background;
|
|
color: @button_background;
|
|
text-decoration: none;
|
|
|
|
span img {
|
|
filter: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// FIXME check if the stuff below is still relevant
|
|
|
|
|
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
|
/* min-width: 1440px */
|
|
|
|
@media @screen_min-xlg {
|
|
#dokuwiki__aside.main-sidebar {
|
|
.nav-main {
|
|
.li {
|
|
font-size: @font-size-default;
|
|
padding: .1em 0;
|
|
|
|
* {
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
}
|
|
}
|
|
|
|
> ul > li > .li {
|
|
font-size: @font-size-default;
|
|
|
|
* {
|
|
font-size: inherit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
|
/* max-width: 1199px */
|
|
|
|
@media @screen_max-xlg {
|
|
#dokuwiki__aside.main-sidebar {
|
|
.nav-main {
|
|
.li {
|
|
font-size: @font-size-default;
|
|
padding: .15em 0 .15em .25rem;
|
|
|
|
* {
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
}
|
|
}
|
|
|
|
> ul > li > .li {
|
|
font-size: @font-size-default;
|
|
|
|
> * {
|
|
font-size: inherit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|