/** * This file provides the design styles the navigational elements in the sidebar * * @author Jana Deutschlaender * @author Andreas Gohr */ #dokuwiki__aside { @icon-size: @font-size-big; @menu-margin: @icon-size + @margin-small * 2; @media @screen_md-lg { margin-left: -1.25rem; } @media @screen_max-md { display: none; } > ul, > ol, > nav { padding-left: 0; ul, ol { padding-left: 0; li { margin-left: 0; } } } nav > p { color: @ini_nav_menu_color; &.noissue { color: @ini_text_webframe; * { color: inherit; } } } nav { li { color: @ini_nav_menu_color; > div { color: @ini_text_webframe; } &.toggler { list-style: none; margin-left: 0; } } li:not([class]), .li { padding: .15em 0; } } a { &:link, &:visited { opacity: .9; color: @ini_nav_menu_color; } * { color: inherit; } } // the wrapper around the toggle to reserve space div.nav { height: @icon-size + @margin-small; border: 1px solid transparent; } // the toggle element div.nav a { .display-flex(); .align-items(); cursor: pointer; min-height: @icon-size + @margin-small; opacity: 1; border: 1px solid transparent; border-radius: @fix_border-radius; color: @ini_nav_menu_color; font-size: @font-size-head6; font-weight: normal; margin: -1px 0 (@font-size-head6 / 2); // moves the toggles back to the left (.4 from li margin) transition: @transition color, @transition background-color, @transition border-color; span { display: inline-block; vertical-align: middle; color: inherit; } span.lbl { flex-grow: 1; // wordbreak too late in IE 10 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { width: 100%; box-sizing: border-box; padding-right: 13px; } } span.ico { .flex(0 0 auto); width: @menu-margin; height: @icon-size; border-right: 1px solid @ini_nav_menu_color; text-align: center; margin-right: 4%; color: inherit; // simple fake icon strong { display: inline-block; font-size: @icon-size * 0.5; width: @icon-size * 0.9; height: @icon-size * 0.9; line-height: @icon-size * 0.9; margin: @icon-size * 0.05; vertical-align: baseline; text-align: center; color: inherit; border: 2px solid @ini_nav_menu_color; border-top-right-radius: 50%; border-bottom-left-radius: 50%; } // real icon svg { width: @icon-size; height: @icon-size; path { fill: @ini_nav_menu_color; transition: @transition all; } } } &:hover, &:focus, &:active { position: relative; // always show label, even with collapsed sidebar z-index: 100; width: 100%; background-color: @ini_nav_menu_hover_bg; border-color: @ini_nav_menu_hover_color; color: @ini_nav_menu_hover_color; text-decoration: none; span.ico { border-color: inherit; strong { border-color: inherit; } svg { path { fill: @ini_nav_menu_hover_color; } } } } } /* + + + + + active + + + + + */ span.curid a { font-weight: bold; } /* + + + + + the panel (hidden by default) + + + + + */ div.nav-panel { display: none; margin-top: .5rem; margin-left: @menu-margin; ul { margin-bottom: 1rem; ul { margin-bottom: 0; } } } } /* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* min-width: 1440px */ @media @screen_min-xlg { #dokuwiki__aside { nav { li:not([class]), .li { font-size: @font-size-head6; * { font-size: inherit; font-weight: inherit; } a { font-size: (@font-size-head6 - .05); } } } } } /* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* max-width: 1439px */ @media @screen_max-xlg { #dokuwiki__aside { nav { li:not([class]), .li { font-size: @font-size-default; * { font-size: inherit; font-weight: inherit; } } } } } /* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* max-width: 1023px */ @media @screen_max-md { body.show-mobile-sidebar { #dokuwiki__aside { display: block !important; position: absolute; left: 1.25rem; // left margin of content container z-index: 200; // above all box-shadow: @box-shadow-right-bottom; min-width: 45%; max-width: 90%; height: auto; background: @ini_background_site; > nav { position: relative; z-index: 2; &:first-child { margin-top: 1.2rem; } } a.nav { border-radius: 0; border-right-width: 0; border-left-width: 0; } div.nav-panel, a.nav { padding-right: .8em; } } } } /* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* max-width: 1439px */ @media @screen_max-xlg { #dokuwiki__aside { nav { li:not([class]), .li { font-size: @font-size-default; * { font-size: inherit; font-weight: inherit; } } } } }