2016-05-06 00:48:41 +03:00
|
|
|
@import '../../shared/styles/variables';
|
2015-11-22 16:45:27 +03:00
|
|
|
|
2016-01-12 02:07:36 +03:00
|
|
|
:host {
|
2016-11-01 18:00:38 +03:00
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
-moz-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
-ms-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
-o-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
font-smoothing: antialiased;
|
|
|
|
-webkit-osx-font-smoothing: grayscale;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
osx-font-smoothing: grayscale;
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-moz-text-size-adjust: 100%;
|
|
|
|
text-size-adjust: 100%;
|
|
|
|
-webkit-text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
|
|
|
|
-ms-text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
|
|
|
|
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
|
|
|
|
text-rendering: optimizeSpeed!important;
|
|
|
|
font-smooth: always;
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
|
text-size-adjust: 100%;
|
2016-01-12 02:07:36 +03:00
|
|
|
}
|
|
|
|
|
2015-12-26 20:44:39 +03:00
|
|
|
.redoc-wrap {
|
2016-11-24 16:29:29 +03:00
|
|
|
z-index: 0;
|
2016-11-01 18:00:38 +03:00
|
|
|
position: relative;
|
2016-12-02 13:53:09 +03:00
|
|
|
overflow: hidden;
|
2016-11-01 18:00:38 +03:00
|
|
|
font-family: $base-font, $base-font-family;
|
|
|
|
font-size: $em-size;
|
|
|
|
line-height: $base-line-height;
|
|
|
|
color: $text-color;
|
2015-12-21 00:34:20 +03:00
|
|
|
}
|
|
|
|
|
2016-11-23 02:23:32 +03:00
|
|
|
.menu-content {
|
|
|
|
overflow: hidden;
|
2017-01-28 19:47:12 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
side-menu {
|
2017-04-23 16:10:32 +03:00
|
|
|
overflow: hidden;
|
2016-11-23 02:23:32 +03:00
|
|
|
}
|
|
|
|
|
2016-01-21 01:09:42 +03:00
|
|
|
[sticky-sidebar] {
|
2016-11-01 18:00:38 +03:00
|
|
|
width: $side-bar-width;
|
|
|
|
background-color: $side-bar-bg-color;
|
|
|
|
overflow-x: hidden;
|
2016-11-23 02:23:32 +03:00
|
|
|
transform: translateZ(0);
|
|
|
|
z-index: 75;
|
2016-11-01 18:00:38 +03:00
|
|
|
|
|
|
|
@media (max-width: $side-menu-mobile-breakpoint) {
|
|
|
|
width: 100%;
|
|
|
|
bottom: auto !important;
|
|
|
|
}
|
2015-11-16 02:15:06 +03:00
|
|
|
}
|
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.api-content {
|
2016-03-14 23:27:07 +03:00
|
|
|
margin-left: $side-bar-width;
|
2016-11-23 02:23:32 +03:00
|
|
|
z-index: 50;
|
2016-03-14 23:27:07 +03:00
|
|
|
position: relative;
|
2016-11-23 02:23:32 +03:00
|
|
|
// height: 100vh;
|
|
|
|
// overflow: scroll;
|
|
|
|
top: 0;
|
2016-03-14 23:27:07 +03:00
|
|
|
@media (max-width: $side-menu-mobile-breakpoint) {
|
2016-11-01 18:00:38 +03:00
|
|
|
padding-top: 3em;
|
|
|
|
margin-left: 0;
|
2016-03-14 23:27:07 +03:00
|
|
|
}
|
2016-01-21 18:26:54 +03:00
|
|
|
}
|
|
|
|
|
2016-11-23 02:23:32 +03:00
|
|
|
.background {
|
2017-01-06 14:22:38 +03:00
|
|
|
position: absolute;
|
2016-03-14 23:27:07 +03:00
|
|
|
top: 0;
|
2016-11-23 02:23:32 +03:00
|
|
|
bottom: 0;
|
2016-03-14 23:27:07 +03:00
|
|
|
right: 0;
|
2016-11-23 02:23:32 +03:00
|
|
|
left: $side-bar-width;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
&-actual {
|
|
|
|
background: $samples-panel-bg-color;
|
|
|
|
left: 100% - $samples-panel-width;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2016-11-01 18:00:38 +03:00
|
|
|
|
|
|
|
@media (max-width: $right-panel-squash-breakpoint) {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-01-21 18:26:54 +03:00
|
|
|
}
|
|
|
|
|
2016-03-14 23:27:07 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.redoc-error {
|
|
|
|
padding: 20px;
|
|
|
|
text-align: center;
|
|
|
|
color: $red;
|
|
|
|
> h2 {
|
|
|
|
color: $red;
|
|
|
|
font-size: 40px;
|
2016-03-14 23:27:07 +03:00
|
|
|
}
|
2015-11-16 02:15:06 +03:00
|
|
|
}
|
2016-03-01 21:08:02 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.redoc-error-details {
|
|
|
|
max-width: 750px;
|
|
|
|
margin: 0 auto;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
|
2017-04-19 13:43:17 +03:00
|
|
|
/* global menu items styles (search results + menu) */
|
|
|
|
:host /deep/ {
|
|
|
|
.menu-item-header > span {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-item-header > .operation-type + .menu-item-title {
|
|
|
|
width: calc(100% - 32px); // 32 = 26px image width + 6px margin left
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-item-header > .operation-type {
|
|
|
|
width: 26px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 13px;
|
|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jExRTQ4M0YxQTRFQzc2NENFNDI3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2NDk3QkM5QTc5NjExRTQ4M0YxQTRFQzc2NENFNDI3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+mIrGwQAAAZ9JREFUeNrsmtuOwyAMRBmU//9lbx9208ayjQ1EarSDVFW56ARIGGZIIK/S3gWvX3X7LN3a6WxDHdPnnDBpcZHEOe3wrmLUMg2zatKykPOq1/5fK71tLIQR9jjYsaJfWdWAAcRsM2W1z9LNGcFkRlmtPhvpf7qmHAGEESZqLFr/qbHaCy4Is6oxLdvT+nWr0lLPCCPsFn+mA5e2UjLycL1o6qLMiapqRGoifVCDinrgU2mRyJthzZg3CSPs+2HhIM4YGq0a4oDgiGjYTKw20/OwUzAEuXz73YSqtdsV+F1a3eZpweFEGGG7Y3ULbJRk4nYPlEHbUi86wpNtbz4oB37PICOrLEdC9DKzFv7EkQ8tYY8Nr8tuyJrRsdpMrIJ0n4GPBmGEEUbYzRMKnFwug1B7rppmbCiyBjBrQ1vC8KW/CxrF7osNrRbxMjofWsIIuwU2vapnZfTRq4/wFXl3hG9bMzP6ZWV47LoB+Gym1/EyUleKI2GEPW8pQpu80bHLvsifSWFVAVEzo2VDTxxb9T16eO7sF0vmxPNPxPFHgAEA/rGUMXq/uWcAAAAASUVORK5CYII=');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 6px 4px;
|
|
|
|
text-indent: -9000px;
|
|
|
|
margin-right: 6px;
|
|
|
|
margin-top: 2px;
|
|
|
|
|
|
|
|
&.get {
|
|
|
|
background-position: 8px -12px;
|
|
|
|
background-color: $get-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.post {
|
|
|
|
background-position: 6px 4px;
|
|
|
|
background-color: $post-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.put {
|
|
|
|
background-position: 8px -28px;
|
|
|
|
background-color: $put-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.options {
|
|
|
|
background-position: 4px -148px;
|
|
|
|
background-color: $options-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.patch {
|
|
|
|
background-position: 4px -114px;
|
|
|
|
background-color: $patch-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.delete {
|
|
|
|
background-position: 4px -44px;
|
|
|
|
background-color: $delete-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.basic {
|
|
|
|
background-position: 5px -79px;
|
|
|
|
background-color: $basic-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.link {
|
|
|
|
background-position: 4px -131px;
|
|
|
|
background-color: $link-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-01 21:08:02 +03:00
|
|
|
/* global redoc styles */
|
|
|
|
|
2016-03-02 22:48:55 +03:00
|
|
|
@for $index from 1 through 5 {
|
2016-11-01 18:00:38 +03:00
|
|
|
:host /deep/ h#{$index}{
|
|
|
|
margin-top: 0;
|
|
|
|
font-family: $headers-font, $headers-font-family;
|
|
|
|
color: $secondary-color;
|
|
|
|
font-weight: $headers-font-weight;
|
2016-11-23 02:23:32 +03:00
|
|
|
line-height: 1.5;
|
|
|
|
margin-bottom: 0.5em;
|
2016-11-01 18:00:38 +03:00
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
}
|
|
|
|
|
2016-09-02 23:18:31 +03:00
|
|
|
:host /deep/ {
|
2016-11-01 18:00:38 +03:00
|
|
|
h1 { font-size: $h1; color: $headers-color; }
|
|
|
|
h2 { font-size: $h2; }
|
|
|
|
h3 { font-size: $h3; }
|
|
|
|
h4 { font-size: $h4; }
|
2016-11-23 02:23:32 +03:00
|
|
|
h5 { font-size: $h5; line-height: 20px; }
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
p {
|
|
|
|
font-family: $base-font, $base-font-family;
|
|
|
|
font-weight: $base-font-weight;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
line-height: $base-line-height;
|
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $primary-color;
|
|
|
|
}
|
2016-07-17 18:07:51 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
p > code {
|
|
|
|
color: $red;
|
|
|
|
border: 1px solid rgba(38,50,56,0.1);
|
|
|
|
}
|
2016-07-17 18:07:51 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
.hint--inversed {
|
|
|
|
&:before {
|
|
|
|
border-top-color: #fff;
|
2016-07-17 18:07:51 +03:00
|
|
|
}
|
2016-07-21 13:35:27 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&:after {
|
|
|
|
background: #fff;
|
|
|
|
color: #383838;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@import '../../shared/styles/share-link';
|
2016-03-15 17:10:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
2016-11-01 18:00:38 +03:00
|
|
|
position: relative;
|
|
|
|
text-align: right;
|
|
|
|
padding: 10px $section-spacing;
|
|
|
|
font-size: 15px;
|
|
|
|
margin-top: -35px;
|
|
|
|
color: white;
|
|
|
|
a {
|
2016-07-10 15:43:17 +03:00
|
|
|
color: white;
|
2016-11-01 18:00:38 +03:00
|
|
|
}
|
|
|
|
strong {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
2016-03-01 21:08:02 +03:00
|
|
|
}
|
|
|
|
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-03-01 21:08:02 +03:00
|
|
|
/* markdown elements */
|
|
|
|
|
2016-09-02 23:18:31 +03:00
|
|
|
:host /deep/ .redoc-markdown-block {
|
2016-11-01 18:00:38 +03:00
|
|
|
pre {
|
|
|
|
font-family: Courier, monospace;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
background-color: #263238;
|
|
|
|
color: white;
|
|
|
|
padding: 12px 14px 15px 14px;
|
|
|
|
overflow-x: auto;
|
|
|
|
line-height: normal;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
border: 1px solid rgba(38,50,56,0.1);
|
2016-03-01 21:08:02 +03:00
|
|
|
|
|
|
|
code {
|
2016-11-01 18:00:38 +03:00
|
|
|
background-color: transparent;
|
2017-04-20 18:22:55 +03:00
|
|
|
color: white;
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&:before, &:after {
|
|
|
|
content: none;
|
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
}
|
2016-11-01 18:00:38 +03:00
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
code {
|
|
|
|
font-family: Courier, monospace;
|
|
|
|
background-color: rgba(38,50,56,0.04);
|
|
|
|
padding: 0.1em 0 0.2em 0;
|
|
|
|
font-size: 1em;
|
|
|
|
border-radius: $border-radius;
|
2017-03-29 11:29:49 +03:00
|
|
|
color: $red;
|
|
|
|
border: 1px solid rgba(38,50,56,0.1);
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&:before, &:after {
|
|
|
|
letter-spacing: -0.2em;
|
2017-07-22 19:37:10 +03:00
|
|
|
//content: "\00a0";
|
2016-03-02 22:48:55 +03:00
|
|
|
}
|
2016-11-01 18:00:38 +03:00
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
p:last-of-type {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
blockquote {
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
padding: 0 15px;
|
|
|
|
color: #777;
|
|
|
|
border-left: 4px solid #ddd;
|
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: content-box;
|
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
ul, ol {
|
|
|
|
padding-left: 2em;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 1em;
|
2017-04-17 12:38:31 +03:00
|
|
|
font-family: $base-font, $base-font-family;
|
|
|
|
font-weight: $base-font-weight;
|
|
|
|
line-height: $base-line-height;
|
2016-11-01 18:00:38 +03:00
|
|
|
}
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
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;
|
2016-03-02 22:48:55 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
&:nth-child(2n) {
|
|
|
|
background-color: #f8f8f8;
|
2016-03-02 22:48:55 +03:00
|
|
|
}
|
2016-11-01 18:00:38 +03:00
|
|
|
}
|
2016-10-30 18:54:44 +03:00
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
table th, table td {
|
|
|
|
padding: 6px 13px;
|
|
|
|
border: 1px solid #ddd;
|
2016-10-30 18:54:44 +03:00
|
|
|
}
|
|
|
|
|
2016-11-01 18:00:38 +03:00
|
|
|
table th {
|
|
|
|
text-align: left;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2016-10-30 18:54:44 +03:00
|
|
|
}
|