redoc/lib/components/Redoc/redoc.scss
2016-02-29 17:18:00 -05:00

81 lines
1.2 KiB
SCSS

@import '../../common/styles/variables';
:host {
display: block;
box-sizing: border-box;
}
.redoc-wrap {
position: relative;
font-family: $base-font, $base-font-family;
font-size: $em-size;
line-height: $base-line-height;
color: $text-color;
}
side-menu {
display: block;
box-sizing: border-box;
}
methods-list {
display: block;
overflow: hidden;
}
api-info, .side-bar {
display: block;
padding: 10px 0;
}
api-info {
padding: 10px 20px;
}
api-logo {
display: block;
text-align: center;
@media (max-width: $side-menu-mobile-breakpoint) {
display: none;
}
}
[sticky-sidebar] {
width: $side-bar-width;
background-color: $side-bar-bg-color;
overflow-y: auto;
overflow-x: hidden;
@media (max-width: $side-menu-mobile-breakpoint) {
z-index: 1;
width: 100%;
bottom: auto !important;
}
}
#api-content {
margin-left: $side-bar-width;
@media (max-width: $side-menu-mobile-breakpoint) {
padding-top: 3em;
margin-left: 0;
}
}
#api-content:after {
content: "";
position: absolute;;
left:0;
right: 0;
top: 0;
bottom: 0;
background-color: black;
opacity: 0.5;
transition: all 0.3s ease;
display: none;
}
#api-content.menu-opened:after {
display: block;;
}