mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-27 02:53:43 +03:00
163 lines
2.4 KiB
SCSS
163 lines
2.4 KiB
SCSS
@import '../../shared/styles/variables';
|
|
|
|
|
|
:host {
|
|
padding-bottom: 100px;
|
|
display: block;
|
|
border-bottom: 1px solid rgba(127, 127, 127, 0.25);
|
|
margin-top: 1em;
|
|
}
|
|
|
|
:host:last-of-type {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
h2 {
|
|
color: $secondary-color;
|
|
}
|
|
|
|
responses-list, params-list {
|
|
display: block;
|
|
}
|
|
|
|
.method-header {
|
|
margin-bottom: .9em;
|
|
}
|
|
|
|
.method-endpoint {
|
|
margin: 0 0 2em 0;
|
|
padding: 10px 20px;
|
|
border-radius: $border-radius*2;
|
|
background-color: darken($black, 2%);
|
|
display: block;
|
|
font-weight: $light;
|
|
white-space: nowrap;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.method-endpoint > h5 {
|
|
padding-top: 1px;
|
|
padding-bottom: 0;
|
|
margin: 0;
|
|
font-size: .8em;
|
|
color: $black;
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
border-radius: $border-radius;
|
|
}
|
|
|
|
.api-url {
|
|
color: rgba(#ffffff, .6);
|
|
margin-left: 10px;
|
|
margin-top: 2px;
|
|
position: relative;
|
|
top: 1px;
|
|
font-family: $headers-font, $headers-font-family;
|
|
font-size: 0.929em!important;
|
|
}
|
|
|
|
.path {
|
|
font-family: $headers-font, $headers-font-family;
|
|
position: relative;
|
|
top: 1px;
|
|
color: #ffffff;
|
|
font-size: 0.929em!important;
|
|
}
|
|
|
|
.method-tags {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.method-tags a {
|
|
font-size: 16px;
|
|
color: #999;
|
|
display: inline-block;
|
|
padding: 0 0.5em;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.method-tags a:before {
|
|
content: '#';
|
|
margin-right: -0.4em;
|
|
}
|
|
|
|
.method-tags a:first-of-type {
|
|
padding: 0;
|
|
}
|
|
|
|
.method-content, .method-samples {
|
|
display: block;
|
|
box-sizing: border-box;
|
|
float: left;
|
|
}
|
|
|
|
.method-content {
|
|
width: 100% - $samples-panel-width;
|
|
padding: 40px;
|
|
}
|
|
|
|
.method-samples {
|
|
color: $sample-panel-color;
|
|
width: 40%;
|
|
padding: 40px;
|
|
background: $samples-panel-bg-color;
|
|
}
|
|
|
|
responses-samples {
|
|
display: block;
|
|
}
|
|
|
|
.method-samples header,
|
|
.method-samples > h5 {
|
|
color: $sample-panel-headers-color;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.method-samples > h5 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.method-samples schema-sample {
|
|
display: block;
|
|
}
|
|
|
|
.method:after {
|
|
content: "";
|
|
display: table;
|
|
clear:both;
|
|
}
|
|
|
|
.method-description {
|
|
padding: 6px 0 10px 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.http-method {
|
|
color: $black;
|
|
background: #ffffff;
|
|
padding: 3px 10px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
[select-on-click] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: $right-panel-squash-breakpoint) {
|
|
.methods:before {
|
|
display: none;
|
|
}
|
|
|
|
.method-samples, .method-content {
|
|
width: 100%;
|
|
}
|
|
|
|
.method-samples {
|
|
margin-top: 2em;
|
|
}
|
|
|
|
:host {
|
|
padding-bottom: 0;
|
|
}
|
|
}
|