mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 11:26:37 +03:00
160 lines
2.3 KiB
SCSS
160 lines
2.3 KiB
SCSS
@import '../../common/styles/variables';
|
|
|
|
:host {
|
|
display: block;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.redoc-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
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;;
|
|
}
|
|
|
|
footer {
|
|
text-align: right;
|
|
padding: 10px;
|
|
font-size: 15px;
|
|
|
|
a {
|
|
color: #999;
|
|
text-decoration: none;
|
|
}
|
|
|
|
strong {
|
|
font-size: 18px;
|
|
color: $headers-color;
|
|
}
|
|
}
|
|
|
|
|
|
/* markdown elements */
|
|
|
|
:host {
|
|
pre {
|
|
font-family: Courier, monospace;
|
|
white-space: pre-wrap;
|
|
background-color: rgba(0,0,0,0.04);
|
|
padding: 10px;
|
|
overflow-x: auto;
|
|
line-height: normal;
|
|
border-radius: 3px;
|
|
|
|
code {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
code {
|
|
font-family: Courier, monospace;
|
|
background-color: rgba(0,0,0,0.04);
|
|
padding: 0.2em 0;
|
|
font-size: 0.85em;
|
|
border-radius: 3px;
|
|
|
|
&:before, &:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\\00a0";
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
word-break: normal;
|
|
word-break: keep-all;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
margin-top: 0.5em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #ccc;
|
|
|
|
&:nth-child(2n) {
|
|
background-color: #f8f8f8;
|
|
}
|
|
}
|
|
|
|
table th, table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
table th {
|
|
text-align: left;
|
|
font-weight: bold;
|
|
}
|
|
}
|