SPR-953: css for aside nav .is-active, .is-open + qs nav entry width for too small viewport
This commit is contained in:
parent
77ac3c62bc
commit
35d81750af
1 changed files with 136 additions and 65 deletions
|
@ -33,19 +33,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nav > p {
|
nav {
|
||||||
color: @ini_nav_menu_color;
|
> p {
|
||||||
|
color: @ini_nav_menu_color;
|
||||||
|
|
||||||
&.noissue {
|
&.noissue {
|
||||||
color: @ini_text_webframe;
|
color: @ini_text_webframe;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
|
||||||
li {
|
li {
|
||||||
color: @ini_nav_menu_color;
|
color: @ini_nav_menu_color;
|
||||||
|
|
||||||
|
@ -77,55 +77,147 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the wrapper around the toggle to reserve space
|
|
||||||
|
/* + + + the wrapper around the toggle to reserve space + + + */
|
||||||
div.nav {
|
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;
|
min-height: @icon-size + @margin-small;
|
||||||
opacity: 1;
|
|
||||||
border: 1px solid transparent;
|
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 {
|
// the toggle element
|
||||||
display: inline-block;
|
a {
|
||||||
vertical-align: middle;
|
display: table;
|
||||||
color: inherit;
|
width: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
span.lbl {
|
cursor: pointer;
|
||||||
flex-grow: 1;
|
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;
|
||||||
|
|
||||||
// wordbreak too late in IE 10
|
span {
|
||||||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&:active {
|
||||||
|
position: relative; // always show label, even with collapsed sidebar
|
||||||
|
z-index: 100;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
background-color: @ini_nav_menu_hover_bg;
|
||||||
padding-right: 13px;
|
border-color: @ini_nav_menu_hover_color;
|
||||||
|
color: @ini_nav_menu_hover_color;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
span.ico {
|
||||||
|
&:after {
|
||||||
|
background-color: @ini_nav_menu_hover_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
strong {
|
||||||
|
border-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
path {
|
||||||
|
fill: @ini_nav_menu_hover_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* + + + submenu entry is active + + + */
|
||||||
|
&.is-active {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* + + + toggle: open + + + */
|
||||||
|
&.is-open {
|
||||||
|
background-color: @ini_nav_menu_hover_color;
|
||||||
|
border-color: @ini_nav_menu_hover_color;
|
||||||
|
color: @ini_nav_menu_hover_bg;
|
||||||
|
|
||||||
|
span.ico {
|
||||||
|
&:after {
|
||||||
|
background-color: @ini_nav_menu_hover_bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
strong {
|
||||||
|
border-color: @ini_nav_menu_hover_bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
path {
|
||||||
|
fill: @ini_nav_menu_hover_bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&:active {
|
||||||
|
background-color: @ini_nav_menu_hover_bg;
|
||||||
|
border-color: @ini_nav_menu_hover_color;
|
||||||
|
color: @ini_nav_menu_hover_color;
|
||||||
|
|
||||||
|
span.ico {
|
||||||
|
&:after {
|
||||||
|
background-color: @ini_nav_menu_hover_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
strong {
|
||||||
|
border-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
path {
|
||||||
|
fill: @ini_nav_menu_hover_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
span.ico {
|
span.ico {
|
||||||
.flex(0 0 auto);
|
position: relative;
|
||||||
|
display: table-cell;
|
||||||
width: @menu-margin;
|
width: @menu-margin;
|
||||||
|
min-width: @menu-margin;
|
||||||
height: @icon-size;
|
height: @icon-size;
|
||||||
border-right: 1px solid @ini_nav_menu_color;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-right: 4%;
|
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
@border-height: 1.5rem;
|
||||||
|
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 50%;
|
||||||
|
bottom: auto;
|
||||||
|
height: @border-height;
|
||||||
|
width: 1px;
|
||||||
|
background-color: @ini_nav_menu_color;
|
||||||
|
margin-top: -(@border-height / 2);
|
||||||
|
|
||||||
|
// wordbreak too late in IE 10
|
||||||
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||||
|
top: .5rem;
|
||||||
|
bottom: .5rem;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// simple fake icon
|
// simple fake icon
|
||||||
strong {
|
strong {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -154,30 +246,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover,
|
span.lbl {
|
||||||
&:focus,
|
display: table-cell;
|
||||||
&:active {
|
padding-left: .5rem;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue