redoc/lib/components/Method/method.scss

154 lines
3.2 KiB
SCSS
Raw Normal View History

@import '../../common/styles/variables';
2015-10-21 12:20:14 +03:00
responses-list, params-list {
display: block;
}
.method-header {
2015-10-29 00:37:16 +03:00
font-size: 25px;
2015-10-10 15:34:46 +03:00
font-weight: 200;
color: $method-headers-color;
2015-10-10 15:34:46 +03:00
}
2015-11-27 01:43:01 +03:00
.method-link {
cursor: pointer;
margin-left: -15px;
padding: 0;
line-height: 1;
width: 15px;
display: inline-block;
}
.method-link:before {
content: "";
width: 15px;
height: 15px;
background-size: contain;
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==');
opacity: 0.5;
visibility: hidden;
display: inline-block;
vertical-align: middle;
}
.method-link:hover:before {
visibility: visible;
}
.method-endpoint {
2015-10-10 15:34:46 +03:00
margin: 0;
font-weight: 200;
2015-11-17 01:03:49 +03:00
font-size: 0;
2015-10-10 15:34:46 +03:00
}
.method-endpoint > span {
2015-11-17 01:03:49 +03:00
padding-top: 3px;
padding-bottom: 3px;
2015-10-10 15:34:46 +03:00
vertical-align: middle;
2015-11-17 01:03:49 +03:00
font-size: 14px;
}
.api-url {
2015-11-17 01:03:49 +03:00
color: #999;
margin-left: 10px;
2015-10-10 15:34:46 +03:00
}
.path {
2015-10-30 13:03:13 +03:00
font-family: monospace;
font-weight: bold;
color: $headers-color;
2015-10-30 13:03:13 +03:00
}
2015-10-30 12:43:51 +03:00
.method-tags {
2015-11-17 02:43:05 +03:00
margin-top: 20px;
2015-10-30 12:43:51 +03:00
}
.method-tags a {
2015-11-17 02:43:05 +03:00
font-size: 16px;
color: #999;
2015-10-30 12:43:51 +03:00
display: inline-block;
2015-11-17 02:43:05 +03:00
padding: 0 0.5em;
text-decoration: none;
}
.method-tags a:before {
2015-11-17 02:43:05 +03:00
content: '#';
margin-right: -0.4em;
}
.method-tags a:first-of-type {
padding: 0;
2015-10-30 12:43:51 +03:00
}
.method-content, .method-samples {
2015-10-21 14:07:22 +03:00
display: block;
box-sizing: border-box;
float: left;
}
.method-content {
width: 100% - $samples-panel-width;
2015-10-21 17:24:04 +03:00
padding: 0 20px;
2015-10-21 14:46:15 +03:00
}
.method-samples {
color: $sample-panel-color;
2015-10-21 14:46:15 +03:00
width: 40%;
2015-10-25 14:26:38 +03:00
padding: 10px 20px;
2015-10-21 14:46:15 +03:00
}
2015-10-21 14:07:22 +03:00
2015-10-22 20:54:26 +03:00
responses-samples {
display: block;
2015-10-25 14:26:38 +03:00
}
.method-samples header {
font-size: 16px;
2015-10-25 14:26:38 +03:00
margin: 5px 0;
color: $sample-panel-headers-color;
text-transform: uppercase;
2015-10-25 14:26:38 +03:00
}
.method-samples schema-sample {
2015-10-25 14:26:38 +03:00
display: block;
2015-10-21 17:24:04 +03:00
}
2015-10-21 14:07:22 +03:00
.method:after {
content: "";
display: table;
clear:both;
}
2015-10-18 20:16:40 +03:00
.method-description {
padding: 30px 0;
}
2015-10-10 15:34:46 +03:00
.http-method {
color: white;
background-color: #1976D3;
2015-11-17 01:03:49 +03:00
padding: 3px 10px;
text-transform: uppercase;
2015-10-10 15:34:46 +03:00
}
.http-method.delete {
background-color: red;
}
.http-method.post {
2015-11-17 01:03:49 +03:00
background-color: #00329F;
2015-10-10 15:34:46 +03:00
}
.http-method.patch {
background-color: orange;
}
.http-method.put {
background-color: crimson;
}
.http-method.options {
background-color: black;
}
.http-method.head {
background-color: darkkhaki;
}