mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 01:23:43 +03:00
68 lines
1.4 KiB
SCSS
68 lines
1.4 KiB
SCSS
@import '../../common/styles/variables';
|
|
|
|
.menu-header {
|
|
text-transform: uppercase;
|
|
color: $headers-color;
|
|
padding: 0 $side-menu-item-hpadding;
|
|
margin: 10px 0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.menu-cat-header {
|
|
//font-weight: bold;
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
color: $side-menu-item-color;
|
|
text-transform: uppercase;
|
|
background-color: $side-bar-bg-color;
|
|
|
|
display: block;
|
|
padding: $side-menu-item-vpadding $side-menu-item-hpadding;
|
|
}
|
|
|
|
.menu-cat:nth-of-type(even) .menu-cat-header {
|
|
background-color: $side-menu-even-bg-color;
|
|
}
|
|
|
|
.menu-subitems {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.menu-subitems.active {
|
|
height: auto;
|
|
}
|
|
|
|
.menu-subitems li {
|
|
list-style: none inside none;
|
|
cursor: pointer;
|
|
|
|
padding: $side-menu-item-vpadding $side-menu-item-hpadding;
|
|
padding-left: $side-menu-item-hpadding*2;
|
|
background-color: $side-bar-bg-color;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.menu-subitems li:nth-of-type(even) {
|
|
background-color: $side-menu-even-bg-color;
|
|
}
|
|
|
|
// invert item colors for odd categories
|
|
.menu-cat:nth-of-type(odd) {
|
|
.menu-subitems li {
|
|
background-color: $side-menu-even-bg-color;
|
|
}
|
|
|
|
.menu-subitems li:nth-of-type(even) {
|
|
background-color: $side-bar-bg-color;
|
|
}
|
|
}
|
|
|
|
.menu-cat-header.active, .menu-subitems li.active {
|
|
background-color: $side-menu-active-bg-color !important;
|
|
font-weight: bold;
|
|
}
|