mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 01:23:43 +03:00
166 lines
5.0 KiB
SCSS
166 lines
5.0 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;
|
|
padding: $side-menu-item-vpadding*2.5 $side-menu-item-hpadding;
|
|
|
|
&[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
&.disabled, &.disabled:hover {
|
|
cursor: default;
|
|
color: lighten($text-color, 60%);
|
|
}
|
|
}
|
|
|
|
.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-item:hover,
|
|
.menu-item.active {
|
|
//background: darken($side-menu-active-bg-color, 6%);
|
|
}
|
|
|
|
.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: 2*$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;
|
|
}
|
|
&:hover,
|
|
&.active {
|
|
//background: none;
|
|
}
|
|
}
|
|
|
|
.menu-item-header > .operation-type {
|
|
width: 26px;
|
|
display: inline-block;
|
|
height: 13px;
|
|
background-color: #333;
|
|
border-radius: 3px;
|
|
vertical-align: middle;
|
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAACgCAYAAADuDlcXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlv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i86wpNtbz4oB37PICOrLEdC9DKzFv7EkQ8tYY8Nr8tuyJrRsdpMrIJ0n4GPBmGEEUbYzRMKnFwug1B7rppmbCiyBjBrQ1vC8KW/CxrF7osNrRbxMjofWsIIuwU2vapnZfTRq4/wFXl3hG9bMzP6ZWV47LoB+Gym1/EyUleKI2GEPW8pQpu80bHLvsifSWFVAVEzo2VDTxxb9T16eO7sF0vmxPNPxPFHgAEA/rGUMXq/uWcAAAAASUVORK5CYII=');
|
|
background-repeat: no-repeat;
|
|
background-position: 6px 4px;
|
|
text-indent: -9000px;
|
|
margin-right: 7px;
|
|
margin-top: -3px;
|
|
|
|
&.get {
|
|
background-position: 8px -12px;
|
|
background-color: $get-color;
|
|
}
|
|
|
|
&.post {
|
|
background-position: 6px 4px;
|
|
background-color: $post-color;
|
|
}
|
|
|
|
&.put {
|
|
background-position: 8px -28px;
|
|
background-color: $put-color;
|
|
}
|
|
|
|
&.options {
|
|
background-position: 4px -148px;
|
|
background-color: $options-color;
|
|
}
|
|
|
|
&.patch {
|
|
background-position: 4px -114px;
|
|
background-color: $patch-color;
|
|
}
|
|
|
|
&.delete {
|
|
background-position: 4px -44px;
|
|
background-color: $delete-color;
|
|
}
|
|
|
|
&.basic {
|
|
background-position: 5px -79px;
|
|
background-color: $basic-color;
|
|
}
|
|
|
|
&.link {
|
|
background-position: 4px -131px;
|
|
background-color: $link-color;
|
|
}
|
|
}
|