redoc/lib/components/Method/method.scss
2016-11-30 11:55:37 +02:00

154 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;
transform: translateZ(0);
z-index: 2;
}
// :host:last-of-type {
// border-bottom: 0;
// }
.method-header {
margin-bottom: calc(1em - 6px);
}
.method-endpoint {
//margin: 0 0 2px 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 > .method-params-subheader {
padding-top: 1px;
padding-bottom: 0;
margin: 0;
font-size: 12/14em;
color: $black;
vertical-align: middle;
display: inline-block;
border-radius: $border-radius;
}
.method-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;
&-path {
font-family: $headers-font, $headers-font-family;
position: relative;
top: 1px;
color: #ffffff;
}
}
.method-tags {
margin-top: 20px;
> a {
font-size: 16px;
color: #999;
display: inline-block;
padding: 0 0.5em;
text-decoration: none;
&:before {
content: '#';
margin-right: -0.4em;
}
&: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: $section-spacing;
}
.method-samples {
color: $sample-panel-color;
width: 40%;
padding: $section-spacing;
background: $samples-panel-bg-color;
}
.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;
display: inline-block;
margin: 0;
}
[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;
}
}