mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-27 11:03:43 +03:00
2748aac024
* Add special rendering for deprecated operations * Change styling of deprecated operation header
135 lines
2.6 KiB
SCSS
135 lines
2.6 KiB
SCSS
@import '../../shared/styles/variables';
|
|
|
|
.menu-item-header {
|
|
cursor: pointer;
|
|
color: rgba($text-color, .9);
|
|
-webkit-transition: all .15s ease-in-out;
|
|
-moz-transition: all .15s ease-in-out;
|
|
-ms-transition: all .15s ease-in-out;
|
|
-o-transition: all .15s ease-in-out;
|
|
transition: all .15s ease-in-out;
|
|
display: block;
|
|
margin: 0;
|
|
padding: $side-menu-item-vpadding*2.5 $side-menu-item-hpadding;
|
|
|
|
&[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
&.disabled, &.disabled:hover {
|
|
cursor: default;
|
|
color: lighten($text-color, 60%);
|
|
}
|
|
|
|
&.deprecated {
|
|
text-decoration: line-through;
|
|
color: lighten($text-color, 60%);
|
|
}
|
|
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
> svg {
|
|
height: 18px;
|
|
vertical-align: middle;
|
|
float: right;
|
|
transform: rotateZ(-90deg);
|
|
//transition: transform 0.3s ease-out;
|
|
|
|
polygon {
|
|
fill: $border-color;
|
|
}
|
|
|
|
.active > & {
|
|
transform: rotateZ(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu-item {
|
|
-webkit-transition: all .15s ease-in-out;
|
|
-moz-transition: all .15s ease-in-out;
|
|
-ms-transition: all .15s ease-in-out;
|
|
-o-transition: all .15s ease-in-out;
|
|
transition: all .15s ease-in-out;
|
|
list-style: none inside none;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 0;
|
|
}
|
|
|
|
.menu-subitems {
|
|
margin: 0;
|
|
font-size: 0.929em;
|
|
line-height: 1.2em;
|
|
font-weight: $light;
|
|
color: rgba($text-color, .9);
|
|
padding: 0;
|
|
overflow: hidden;
|
|
height: 0;
|
|
|
|
.active > & {
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
.menu-item-depth-1 {
|
|
> .menu-item-header {
|
|
font-family: $headers-font, $headers-font-family;
|
|
font-weight: $light;
|
|
font-size: $h5;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
// do not capitalize method summuary in level-1 menu
|
|
&.menu-item-for-operation > .menu-item-header {
|
|
text-transform: none;
|
|
}
|
|
|
|
> .menu-item-header:not(.disabled):hover,
|
|
&.active > .menu-item-header {
|
|
color: $primary-color;
|
|
background: $side-menu-active-bg-color;
|
|
}
|
|
&.active {
|
|
//background: $side-menu-active-bg-color;
|
|
}
|
|
}
|
|
|
|
.menu-item-depth-2 {
|
|
> .menu-item-header {
|
|
padding-left: $side-menu-item-hpadding;
|
|
}
|
|
|
|
> .menu-item-header:hover,
|
|
&.active > .menu-item-header {
|
|
background: darken($side-menu-active-bg-color, 6%);
|
|
}
|
|
}
|
|
|
|
// group items
|
|
.menu-item-depth-0 {
|
|
margin-top: 15px;
|
|
|
|
> .menu-subitems {
|
|
height: auto;
|
|
}
|
|
|
|
> .menu-item-header {
|
|
font-family: $headers-font, $headers-font-family;
|
|
color: rgba($text-color, .4);
|
|
text-transform: uppercase;
|
|
font-size: 0.8em;
|
|
padding-bottom: 0;
|
|
cursor: default;
|
|
|
|
> svg {
|
|
display: none;
|
|
}
|
|
}
|
|
&:hover,
|
|
&.active {
|
|
//background: none;
|
|
}
|
|
}
|