278 lines
8.7 KiB
Text
Executable file
278 lines
8.7 KiB
Text
Executable file
/**
|
|
* This file provides the design styles for the sidebar (navmain).
|
|
*
|
|
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
|
|
*/
|
|
|
|
|
|
#dokuwiki__aside.main-sidebar {
|
|
counter-reset: nav-counter;
|
|
|
|
/* + + + + + nav main + + + + + */
|
|
.nav-main {
|
|
padding-bottom: 1.8rem;
|
|
|
|
> ul {
|
|
@icon-size: 2rem;
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
ul {
|
|
margin-left: (@icon-size + .5);
|
|
}
|
|
|
|
li {
|
|
list-style-type: none;
|
|
color: @color-nav;
|
|
|
|
&:first-of-type {
|
|
padding-top: .3em;
|
|
}
|
|
}
|
|
|
|
.li {
|
|
a {
|
|
display: list-item;
|
|
list-style-type: square;
|
|
color: @color-nav;
|
|
font-weight: normal;
|
|
padding-top: .1em;
|
|
padding-bottom: .1em;
|
|
transition: @transition color;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: @button_background;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + first level + + + */
|
|
> li {
|
|
counter-increment: nav-counter;
|
|
position: relative;
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0 0 .3em;
|
|
|
|
&:not(:last-of-type)::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
display: block;
|
|
width: 100%;
|
|
height: 1px;
|
|
background-color: @color-border;
|
|
}
|
|
|
|
> .li {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-top: -1px;
|
|
padding: .5em 0 .5em (@icon-size + 1);
|
|
|
|
&[class="li"] {
|
|
border-bottom: solid 1px @color-border;
|
|
}
|
|
|
|
&::before {
|
|
content: counter(nav-counter);
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
display: -webkit-flex;
|
|
flex-direction: column;
|
|
-webkit-flex-direction: column;
|
|
justify-content: center;
|
|
-webkit-justify-content: center;
|
|
height: 100%;
|
|
width: @icon-size;
|
|
overflow: hidden;
|
|
color: @color-nav;
|
|
text-align: center;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 15%;
|
|
bottom: 15%;
|
|
width: 1px;
|
|
left: (@icon-size + .5);
|
|
background-color: @color-border;
|
|
}
|
|
|
|
&.opened,
|
|
&.closed {
|
|
padding: 0;
|
|
|
|
&::before,
|
|
&::after {
|
|
display: none;
|
|
}
|
|
|
|
a {
|
|
position: relative;
|
|
display: block;
|
|
border: 1px solid transparent;
|
|
border-radius: 2px;
|
|
margin-bottom: -.3rem;
|
|
padding: .6em 0 .6em (@icon-size + 1);
|
|
transition: @transition color, @transition background-color, @transition border-color;
|
|
|
|
&::before {
|
|
content: counter(nav-counter);
|
|
position: absolute;
|
|
top: -.1em;
|
|
left: 0;
|
|
display: flex;
|
|
display: -webkit-flex;
|
|
flex-direction: column;
|
|
-webkit-flex-direction: column;
|
|
justify-content: center;
|
|
-webkit-justify-content: center;
|
|
height: 100%;
|
|
width: @icon-size;
|
|
overflow: hidden;
|
|
color: @color-nav;
|
|
text-align: center;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
transition: @transition color;
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 15%;
|
|
bottom: 15%;
|
|
width: 1px;
|
|
left: (@icon-size + .5);
|
|
background-color: @color-border;
|
|
transition: @transition background-color;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background-color: @button_color;
|
|
border-color: @button_background;
|
|
color: @button_background;
|
|
text-decoration: none;
|
|
|
|
&::before {
|
|
color: @button_background;
|
|
}
|
|
|
|
&::after {
|
|
background-color: @button_background;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.opened {
|
|
a {
|
|
background-color: @button_background;
|
|
color: @button_color;
|
|
|
|
&::before {
|
|
color: @button_color;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background-color: @button_color;
|
|
border-color: @button_background;
|
|
color: @button_background;
|
|
text-decoration: none;
|
|
|
|
&::before {
|
|
color: @button_background;
|
|
}
|
|
}
|
|
}
|
|
|
|
+ ul {
|
|
margin-top: .5em;
|
|
margin-bottom: .25em;
|
|
}
|
|
}
|
|
|
|
+ ul {
|
|
height: auto;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&.closed + ul {
|
|
height: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
|
/* min-width: 1440px */
|
|
|
|
@media @screen_min-xlg {
|
|
#dokuwiki__aside.main-sidebar {
|
|
.nav-main {
|
|
.li {
|
|
font-size: .8rem;
|
|
padding: .1em 0;
|
|
|
|
* {
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
}
|
|
}
|
|
|
|
> ul > li > .li {
|
|
font-size: .9rem;
|
|
|
|
* {
|
|
font-size: inherit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
|
/* max-width: 1199px */
|
|
|
|
@media @screen_max-xlg {
|
|
#dokuwiki__aside.main-sidebar {
|
|
.nav-main {
|
|
.li {
|
|
font-size: .9rem;
|
|
padding: .15em 0 .15em .25rem;
|
|
|
|
* {
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
}
|
|
}
|
|
|
|
> ul > li > .li {
|
|
font-size: 1rem;
|
|
|
|
> * {
|
|
font-size: inherit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|