redoc/lib/components/Method/method.scss

164 lines
2.3 KiB
SCSS

@import '../../common/styles/variables';
@import '../../common/styles/share-link';
:host {
padding-bottom: 100px;
display: block;
border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}
responses-list, params-list {
display: block;
}
.method-header {
margin-bottom: .5em;
}
.method-endpoint {
margin: 0 0 2em 0;
display: block;
font-weight: $light;
}
.method-endpoint > h5 {
padding-top: 4px;
padding-bottom: 3px;
margin: 0;
font-size: .8em;
vertical-align: middle;
display: inline-block;
border-radius: $border-radius;
}
.api-url {
color: lighten($text-color, 30%);
margin-left: 10px;
margin-top: 2px;
position: relative;
top: 1px;
font-size: 1em!important;
}
.path {
font-weight: $bold;
position: relative;
top: 1px;
color: $headers-color;
font-size: 1em!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 {
font-size: 16px;
margin: 5px 0;
color: $sample-panel-headers-color;
text-transform: uppercase;
}
.method-samples schema-sample {
display: block;
}
.method:after {
content: "";
display: table;
clear:both;
}
.method-description {
padding: 30px 0;
margin: 0;
}
.http-method {
color: white;
background-color: #1976D3;
padding: 3px 10px;
text-transform: uppercase;
}
.http-method.delete {
background-color: red;
}
.http-method.post {
background-color: #00329F;
}
.http-method.patch {
background-color: orange;
}
.http-method.put {
background-color: $red;
}
.http-method.options {
background-color: black;
}
.http-method.head {
background-color: darkkhaki;
}
@media (max-width: 1100px) {
.methods:before {
display: none;
}
.method-samples, .method-content {
width: 100%;
}
.method-samples {
margin-top: 2em;
}
:host {
padding-bottom: 0;
}
}