diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss
index 0570a1a4..cb9833f2 100644
--- a/lib/components/Redoc/redoc.scss
+++ b/lib/components/Redoc/redoc.scss
@@ -1,88 +1,64 @@
@import '../../shared/styles/variables';
:host {
- display: block;
- box-sizing: border-box;
+ 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%;
+ -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%;
}
.redoc-wrap {
- position: relative;
- font-family: $base-font, $base-font-family;
- font-size: $em-size;
- line-height: $base-line-height;
- color: $text-color;
-}
-
-side-menu {
- display: block;
- box-sizing: border-box;
-}
-
-methods-list {
- display: block;
- overflow: hidden;
-}
-
-api-info, .side-bar {
- display: block;
- padding: 10px 0;
-}
-
-api-logo {
- display: block;
- text-align: center;
-
- @media (max-width: $side-menu-mobile-breakpoint) {
- display: none;
- }
+ position: relative;
+ font-family: $base-font, $base-font-family;
+ font-size: $em-size;
+ line-height: $base-line-height;
+ color: $text-color;
}
[sticky-sidebar] {
- width: $side-bar-width;
- background-color: $side-bar-bg-color;
- overflow-y: auto;
- overflow-x: hidden;
+ width: $side-bar-width;
+ background-color: $side-bar-bg-color;
+ overflow-y: auto;
+ overflow-x: hidden;
- @media (max-width: $side-menu-mobile-breakpoint) {
- z-index: 1;
- width: 100%;
- bottom: auto !important;
- }
-}
-
-#api-content {
- margin-left: $side-bar-width;
- position: relative;
@media (max-width: $side-menu-mobile-breakpoint) {
- padding-top: 3em;
- margin-left: 0;
+ z-index: 1;
+ width: 100%;
+ bottom: auto !important;
}
}
-#api-content:before {
+.api-content {
+ margin-left: $side-bar-width;
+ position: relative;
+ @media (max-width: $side-menu-mobile-breakpoint) {
+ padding-top: 3em;
+ margin-left: 0;
+ }
+}
+
+.api-content:before {
content: "";
background: $samples-panel-bg-color;
height: 100%;
@@ -91,178 +67,19 @@ api-logo {
right: 0;
position: absolute;
z-index: -1;
-}
-
-@media (max-width: $right-panel-squash-breakpoint) {
- #api-content:before {
+ @media (max-width: $right-panel-squash-breakpoint) {
display: none;
}
}
-/* global redoc styles */
-
-@for $index from 1 through 5 {
- :host /deep/ h#{$index}{
- margin-top: 0;
- font-family: $headers-font, $headers-font-family;
- color: $headers-color;
- font-weight: $headers-font-weight;
- }
-}
-
-:host /deep/ {
- h1 { font-size: $h1; }
- h2 { font-size: $h2; }
- h3 { font-size: $h3; }
- h4 { font-size: $h4; }
- h5 { font-size: $h5; }
-
- p {
- font-family: $base-font, $base-font-family;
- font-weight: $base-font-weight;
- margin: 0;
- margin-bottom: 1em;
- line-height: $base-line-height;
- }
-
- a {
- text-decoration: none;
- color: $primary-color;
- }
-
- p > code {
- color: $red;
- border: 1px solid rgba(38,50,56,0.1);
- }
-
- .hint--inversed {
- &:before {
- border-top-color: #fff;
- }
-
- &:after {
- background: #fff;
- color: #383838;
- }
- }
-
- @import '../../shared/styles/share-link';
-}
-
-footer {
- position: relative;
- text-align: right;
- padding: 10px 40px;
- font-size: 15px;
- margin-top: -35px;
- color: white;
- a {
- color: white;
- }
- strong {
- font-size: 18px;
- }
-}
-
-
-/* markdown elements */
-
-:host /deep/ .redoc-markdown-block {
- 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);
-
- code {
- background-color: transparent;
-
- &:before, &:after {
- content: none;
- }
- }
- }
-
- 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;
-
- &:before, &:after {
- letter-spacing: -0.2em;
- content: "\00a0";
- }
- }
-
- p:last-of-type {
- margin-bottom: 0;
- }
-
- blockquote {
- margin: 0;
- margin-bottom: 1em;
- padding: 0 15px;
- color: #777;
- border-left: 4px solid #ddd;
- }
-
- img {
- max-width: 100%;
- box-sizing: content-box;
- }
-
- ul, ol {
- padding-left: 2em;
- margin: 0;
- margin-bottom: 1em;
- }
-
- 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;
-
- &:nth-child(2n) {
- background-color: #f8f8f8;
- }
- }
-
- table th, table td {
- padding: 6px 13px;
- border: 1px solid #ddd;
- }
-
- table th {
- text-align: left;
- font-weight: bold;
- }
-}
.redoc-error {
padding: 20px;
text-align: center;
- color: #cc0000;
+ color: $red;
> h2 {
- color: #cc0000;
+ color: $red;
font-size: 40px;
}
}
@@ -272,3 +89,161 @@ footer {
margin: 0 auto;
font-size: 18px;
}
+
+/* global redoc styles */
+
+@for $index from 1 through 5 {
+ :host /deep/ h#{$index}{
+ margin-top: 0;
+ font-family: $headers-font, $headers-font-family;
+ color: $secondary-color;
+ font-weight: $headers-font-weight;
+ line-height: 1.4em;
+ }
+}
+
+:host /deep/ {
+ h1 { font-size: $h1; color: $headers-color; }
+ h2 { font-size: $h2; }
+ h3 { font-size: $h3; }
+ h4 { font-size: $h4; }
+ h5 { font-size: $h5; }
+
+ p {
+ font-family: $base-font, $base-font-family;
+ font-weight: $base-font-weight;
+ margin: 0;
+ margin-bottom: 1em;
+ line-height: $base-line-height;
+ }
+
+ a {
+ text-decoration: none;
+ color: $primary-color;
+ }
+
+ p > code {
+ color: $red;
+ border: 1px solid rgba(38,50,56,0.1);
+ }
+
+ .hint--inversed {
+ &:before {
+ border-top-color: #fff;
+ }
+
+ &:after {
+ background: #fff;
+ color: #383838;
+ }
+ }
+
+ @import '../../shared/styles/share-link';
+}
+
+footer {
+ position: relative;
+ text-align: right;
+ padding: 10px $section-spacing;
+ font-size: 15px;
+ margin-top: -35px;
+ color: white;
+ a {
+ color: white;
+ }
+ strong {
+ font-size: 18px;
+ }
+}
+
+
+/* markdown elements */
+
+:host /deep/ .redoc-markdown-block {
+ 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);
+
+ code {
+ background-color: transparent;
+
+ &:before, &:after {
+ content: none;
+ }
+ }
+ }
+
+ 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;
+
+ &:before, &:after {
+ letter-spacing: -0.2em;
+ content: "\00a0";
+ }
+ }
+
+ p:last-of-type {
+ margin-bottom: 0;
+ }
+
+ blockquote {
+ margin: 0;
+ margin-bottom: 1em;
+ padding: 0 15px;
+ color: #777;
+ border-left: 4px solid #ddd;
+ }
+
+ img {
+ max-width: 100%;
+ box-sizing: content-box;
+ }
+
+ ul, ol {
+ padding-left: 2em;
+ margin: 0;
+ margin-bottom: 1em;
+ }
+
+ 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;
+
+ &:nth-child(2n) {
+ background-color: #f8f8f8;
+ }
+ }
+
+ table th, table td {
+ padding: 6px 13px;
+ border: 1px solid #ddd;
+ }
+
+ table th {
+ text-align: left;
+ font-weight: bold;
+ }
+}
diff --git a/lib/components/RequestSamples/request-samples.scss b/lib/components/RequestSamples/request-samples.scss
index b5496886..ab4a227f 100644
--- a/lib/components/RequestSamples/request-samples.scss
+++ b/lib/components/RequestSamples/request-samples.scss
@@ -2,6 +2,7 @@
:host {
overflow: hidden;
+ display: block;
}
.action-buttons {
@@ -37,48 +38,48 @@
}
header {
- font-family: $headers-font;
- font-size: $h5;
- text-transform: uppercase;
- margin: 0;
- color: $sample-panel-headers-color;
- text-transform: uppercase;
- font-weight: normal;
+ font-family: $headers-font;
+ font-size: $h5;
+ text-transform: uppercase;
+ margin: 0;
+ color: $sample-panel-headers-color;
+ text-transform: uppercase;
+ font-weight: normal;
}
:host /deep/ > tabs > ul li {
- font-family: $headers-font;
- font-size: .9em;
- border-radius: $border-radius;
- margin: 2px 0;
- padding: 3px 10px 2px 10px;
- line-height: 1.25;
- color: $sample-panel-headers-color;
+ font-family: $headers-font;
+ font-size: .9em;
+ border-radius: $border-radius;
+ margin: 2px 0;
+ padding: 3px 10px 2px 10px;
+ line-height: 1.25;
+ color: $sample-panel-headers-color;
- &:hover {
- background-color: rgba(white, .1);
- color: #ffffff;
- }
+ &:hover {
+ background-color: rgba(white, .1);
+ color: #ffffff;
+ }
- &.active {
- background-color: #ffffff;
- color: $text-color;
- }
+ &.active {
+ background-color: #ffffff;
+ color: $text-color;
+ }
}
:host /deep/ tabs ul {
padding-top: 10px;
}
-pre {
- overflow-x: auto;
- word-break: break-all;
- word-wrap: break-word;
- white-space: pre-wrap;
- margin-top: 0;
- overflow-x: auto;
- padding: 20px;
- border-radius: 4px;
- background-color: #222d32;
- margin-bottom: 36px;
+.code-sample pre {
+ overflow-x: auto;
+ word-break: break-all;
+ word-wrap: break-word;
+ white-space: pre-wrap;
+ margin-top: 0;
+ overflow-x: auto;
+ padding: 20px;
+ border-radius: 4px;
+ background-color: #222d32;
+ margin-bottom: 36px;
}
diff --git a/lib/components/ResponsesList/responses-list.scss b/lib/components/ResponsesList/responses-list.scss
index 34063c49..4058ff2e 100644
--- a/lib/components/ResponsesList/responses-list.scss
+++ b/lib/components/ResponsesList/responses-list.scss
@@ -1,9 +1,13 @@
@import '../../shared/styles/variables';
+:host {
+ display: block;
+}
+
.responses-list-header {
font-size: 18px;
padding: 0.2em 0;
- margin: 3em 0 1.1em 0;
+ margin: 3em 0 1.1em;
color: #253137;
font-weight: normal;
}
@@ -45,13 +49,13 @@ header {
margin-right: 6px;
margin-left: 6px;
border-radius: $border-radius;
- background-color: rgba($primary-color, .1);
+ background-color: rgba($primary-color, 0.1);
padding: 0 4px;
color: rgba($primary-color, 0.7);
}
-.header-type.array:before {
- content: "Array of ";
+.header-type.array::before {
+ content: $array-text;
color: $black;
font-weight: $base-font-weight;
}
diff --git a/lib/components/ResponsesSamples/responses-samples.scss b/lib/components/ResponsesSamples/responses-samples.scss
index b8ea1cba..db0f4f24 100644
--- a/lib/components/ResponsesSamples/responses-samples.scss
+++ b/lib/components/ResponsesSamples/responses-samples.scss
@@ -2,46 +2,39 @@
:host {
overflow: hidden;
-}
-
-tab, tabs {
- display: block;
-}
-
-schema-sample {
- display: block;
+ display: block;
}
header {
- font-family: $headers-font;
- font-size: 0.929em;
- text-transform: uppercase;
- margin: 0;
- color: $sample-panel-headers-color;
- text-transform: uppercase;
- font-weight: normal;
+ font-family: $headers-font;
+ font-size: 0.929em;
+ text-transform: uppercase;
+ margin: 0;
+ color: $sample-panel-headers-color;
+ text-transform: uppercase;
+ font-weight: normal;
}
:host /deep/ > tabs > ul li {
- font-family: $headers-font;
- font-size: 0.929em;
- border-radius: $border-radius;
- margin: 2px 0;
- padding: 2px 8px 3px 8px;
- color: $sample-panel-headers-color;
- line-height: 1.25;
+ font-family: $headers-font;
+ font-size: 0.929em;
+ border-radius: $border-radius;
+ margin: 2px 0;
+ padding: 2px 8px 3px 8px;
+ color: $sample-panel-headers-color;
+ line-height: 1.25;
- &:hover {
- color: #ffffff;
- background-color: rgba(white, .1);
- }
+ &:hover {
+ color: #ffffff;
+ background-color: rgba(white, .1);
+ }
- &.active {
- background-color: white;
- color: $black;
- }
+ &.active {
+ background-color: white;
+ color: $black;
+ }
}
:host /deep/ tabs ul {
- padding-top: 10px;
+ padding-top: 10px;
}
diff --git a/lib/components/SchemaSample/schema-sample.scss b/lib/components/SchemaSample/schema-sample.scss
index 2f0ecedf..714eac34 100644
--- a/lib/components/SchemaSample/schema-sample.scss
+++ b/lib/components/SchemaSample/schema-sample.scss
@@ -1,5 +1,9 @@
@import '../../shared/styles/variables';
+:host {
+ display: block;
+}
+
pre {
background-color: transparent;
padding: 0;
diff --git a/lib/components/SecurityDefinitions/security-definitions.html b/lib/components/SecurityDefinitions/security-definitions.html
index e858c36b..165b6ea7 100644
--- a/lib/components/SecurityDefinitions/security-definitions.html
+++ b/lib/components/SecurityDefinitions/security-definitions.html
@@ -2,39 +2,37 @@
-
-
-
- Security scheme type: |
- {{def.details._displayType}} |
-
-
- {{def.details.in}} parameter name: |
- {{def.details.name}} |
-
-
-
- OAuth2 Flow |
- {{def.details.flow}} |
-
-
- Authorization URL |
- {{def.details.authorizationUrl}} |
-
-
- Token URL |
- {{def.details.tokenUrl}} |
-
-
-
+
+
+ Security scheme type: |
+ {{def.details._displayType}} |
+
+
+ {{def.details.in}} parameter name: |
+ {{def.details.name}} |
+
- OAuth2 Scopes
-
-
- {{scopeName}} |
- {{def.details.scopes[scopeName]}} |
-
-
+
+ OAuth2 Flow |
+ {{def.details.flow}} |
+
+
+ Authorization URL |
+ {{def.details.authorizationUrl}} |
+
+
+ Token URL |
+ {{def.details.tokenUrl}} |
+
-
+
+
+ OAuth2 Scopes
+
+
+ {{scopeName}} |
+ {{def.details.scopes[scopeName]}} |
+
+
+
diff --git a/lib/components/SecurityDefinitions/security-definitions.scss b/lib/components/SecurityDefinitions/security-definitions.scss
index 37974052..2d2a1da8 100644
--- a/lib/components/SecurityDefinitions/security-definitions.scss
+++ b/lib/components/SecurityDefinitions/security-definitions.scss
@@ -1,16 +1,16 @@
@import '../../shared/styles/variables';
+:host {
+ display: block;
+}
+
.security-definition:not(:last-of-type) {
border-bottom: 1px solid rgba($text-color, .3);
padding-bottom: 20px;
}
-h2, h3 {
- color: $secondary-color;
-}
-
:host h2 {
- padding-top: 40px;
+ padding-top: $section-spacing;
}
h3 {
@@ -18,7 +18,7 @@ h3 {
font-size: 1em;
}
-:host .redoc-markdown-block table {
+:host .security-scopes-details, :host .security-details {
margin-top: 20px;
}
diff --git a/lib/components/SideMenu/side-menu.scss b/lib/components/SideMenu/side-menu.scss
index 72a935fd..83a1be64 100644
--- a/lib/components/SideMenu/side-menu.scss
+++ b/lib/components/SideMenu/side-menu.scss
@@ -1,72 +1,77 @@
@import '../../shared/styles/variables';
$mobile-menu-compact-breakpoint: 550px;
+:host {
+ display: block;
+ box-sizing: border-box;
+}
+
.menu-header {
- text-transform: uppercase;
- color: $headers-color;
- padding: 0 $side-menu-item-hpadding;
- margin: 10px 0;
+ text-transform: uppercase;
+ color: $headers-color;
+ padding: 0 $side-menu-item-hpadding;
+ margin: 10px 0;
}
.menu-cat-header {
- font-size: $h5;
- font-family: $headers-font, $headers-font-family;
- font-weight: $light;
- cursor: pointer;
- color: rgba($text-color, .6);
- text-transform: uppercase;
- background-color: $side-bar-bg-color;
+ font-size: $h5;
+ font-family: $headers-font, $headers-font-family;
+ font-weight: $light;
+ cursor: pointer;
+ color: rgba($text-color, .6);
+ text-transform: uppercase;
+ background-color: $side-bar-bg-color;
+ -webkit-transition: all .15s ease-in-out;
+ -moz-transition: all .15s ease-in-out;
+ -ms-transition: all .15s ease-in-out;
+ -o-transition: all .15s ease-in-out;
+ transition: all .15s ease-in-out;
+ display: block;
+ padding: $side-menu-item-vpadding*2.5 $side-menu-item-hpadding;
+
+ &:hover,
+ &.active {
+ color: $primary-color;
+ background-color: $side-menu-active-bg-color;
+ }
+
+ &[hidden] {
+ display: none;
+ }
+}
+
+.menu-subitems {
+ margin: 0;
+ font-size: 0.929em;
+ line-height: 1.2em;
+ font-weight: $light;
+ color: rgba($text-color, .9);
+ padding: 0;
+ overflow: hidden;
+
+ &.active {
+ height: auto;
+ }
+
+ & li {
-webkit-transition: all .15s ease-in-out;
-moz-transition: all .15s ease-in-out;
-ms-transition: all .15s ease-in-out;
-o-transition: all .15s ease-in-out;
transition: all .15s ease-in-out;
- display: block;
- padding: $side-menu-item-vpadding*2.5 $side-menu-item-hpadding;
-
- &:hover,
- &.active {
- color: $primary-color;
- background-color: $side-menu-active-bg-color;
- }
-
- &[hidden] {
- display: none;
- }
-}
-
-.menu-subitems {
- margin: 0;
- font-size: 0.929em;
- line-height: 1.2em;
- font-weight: $light;
- color: rgba($text-color, .9);
- padding: 0;
+ list-style: none inside none;
+ cursor: pointer;
+ background-color: $side-menu-active-bg-color;
+ padding: $side-menu-item-vpadding*2 $side-menu-item-hpadding*2;
+ padding-left: $side-menu-item-hpadding*2;
overflow: hidden;
+ text-overflow: ellipsis;
+ }
- &.active {
- height: auto;
- }
-
- & li {
- -webkit-transition: all .15s ease-in-out;
- -moz-transition: all .15s ease-in-out;
- -ms-transition: all .15s ease-in-out;
- -o-transition: all .15s ease-in-out;
- transition: all .15s ease-in-out;
- list-style: none inside none;
- cursor: pointer;
- background-color: $side-menu-active-bg-color;
- padding: $side-menu-item-vpadding*2 $side-menu-item-hpadding*2;
- padding-left: $side-menu-item-hpadding*2;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- & li:hover,
- & li.active {
- background: darken($side-menu-active-bg-color, 6%);
- }
+ & li:hover,
+ & li.active {
+ background: darken($side-menu-active-bg-color, 6%);
+ }
}
@@ -74,82 +79,82 @@ $mobile-menu-compact-breakpoint: 550px;
}
.mobile-nav {
- display: none;
+ display: none;
+ height: 3em;
+ line-height: 3em;
+ box-sizing: border-box;
+ border-bottom: 1px solid #ccc;
+ cursor: pointer;
+
+ &:after {
+ content: "";
+ display: inline-block;
+ width: 3em;
height: 3em;
- line-height: 3em;
- box-sizing: border-box;
- border-bottom: 1px solid #ccc;
- cursor: pointer;
+ background: url('data:image/svg+xml;utf8,
');
+ background-size: 70%;
+ background-repeat: no-repeat;
+ background-position: center;
- &:after {
- content: "";
- display: inline-block;
- width: 3em;
- height: 3em;
- background: url('data:image/svg+xml;utf8,
');
- background-size: 70%;
- background-repeat: no-repeat;
- background-position: center;
+ float: right;
+ vertical-align: middle;
+ }
- float: right;
- vertical-align: middle;
- }
-
- .menu-header {
- padding: 0 10px 0 20px;
- font-size: 0.95em;
-
- @media (max-width: $mobile-menu-compact-breakpoint) {
- display: none;
- }
+ .menu-header {
+ padding: 0 10px 0 20px;
+ font-size: 0.95em;
+
+ @media (max-width: $mobile-menu-compact-breakpoint) {
+ display: none;
}
+ }
}
@media (max-width: $side-menu-mobile-breakpoint) {
- .mobile-nav {
- display: block;
- }
+ .mobile-nav {
+ display: block;
+ }
- #resources-nav {
- height: 0;
- overflow-y: auto;
- transition: all 0.3s ease;
- }
+ #resources-nav {
+ height: 0;
+ overflow-y: auto;
+ transition: all 0.3s ease;
+ }
- #resources-nav .menu-header {
- display: none;
- }
+ #resources-nav .menu-header {
+ display: none;
+ }
- .menu-subitems {
- height: auto;
- }
+ .menu-subitems {
+ height: auto;
+ }
}
.selected-tag {
- text-transform: capitalize;
+ text-transform: capitalize;
}
.selected-endpoint:before {
- content: "/";
- padding: 0 2px;
- color: #ccc;
+ content: "/";
+ padding: 0 2px;
+ color: #ccc;
}
.selected-endpoint:empty:before {
- display: none;
+ display: none;
}
.selected-item-info {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- box-sizing: border-box;
- max-width: 350px;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ box-sizing: border-box;
+ max-width: 350px;
- @media (max-width: $mobile-menu-compact-breakpoint) {
- display: inline-block;
- padding: 0 20px;
- max-width: 80%;
- max-width: calc(100% - 4em);
- }
+ @media (max-width: $mobile-menu-compact-breakpoint) {
+ display: inline-block;
+ padding: 0 20px;
+ max-width: 80%;
+ max-width: calc(100% - 4em);
+ }
}
diff --git a/lib/shared/components/Tabs/tabs.scss b/lib/shared/components/Tabs/tabs.scss
index 7c9ba4bf..5921feeb 100644
--- a/lib/shared/components/Tabs/tabs.scss
+++ b/lib/shared/components/Tabs/tabs.scss
@@ -1,5 +1,9 @@
@import '../../styles/variables';
+:host {
+ display: block;
+}
+
ul {
display: block;
margin: 0;
@@ -12,9 +16,6 @@ li {
cursor: pointer;
}
-li.active {
-}
-
.tab-success, .tab-error, .tab-redirect, .tab-info {
&:before {
content: "";
diff --git a/lib/shared/components/Zippy/zippy.scss b/lib/shared/components/Zippy/zippy.scss
index 208057b3..a93ab00b 100644
--- a/lib/shared/components/Zippy/zippy.scss
+++ b/lib/shared/components/Zippy/zippy.scss
@@ -50,6 +50,12 @@ $zippy-redirect-bg-color: rgba($zippy-redirect-color, .08);
.zippy-indicator svg {
height: 1.2em;
vertical-align: middle;
+ transition: all 0.3s ease;
+ transform: rotateZ(-180deg);
+}
+
+.zippy-hidden > .zippy-title svg {
+ transform: rotateZ(0);
}
diff --git a/lib/shared/styles/_variables.scss b/lib/shared/styles/_variables.scss
index 4a87b835..95ff58d8 100644
--- a/lib/shared/styles/_variables.scss
+++ b/lib/shared/styles/_variables.scss
@@ -1,48 +1,52 @@
// Colors
// ---------------------------
-$primary-color : #0033a0;
-$secondary-color : #263238;
-$black : #263238;
-$green : #00aa13;
-$yellow : #f1c400;
-$red : #e53935;
+$primary-color: #0033a0;
+$secondary-color: #263238;
+$black: #263238;
+$green: #00aa13;
+$yellow: #f1c400;
+$red: #e53935;
+$background-color: #fff;
-$em-size : 14px;
+$em-size: 14px;
// Font weights
// ---------------------------
-$light : 300;
-$regular : 400;
-$bold : 700;
+$light: 300;
+$regular: 400;
+$bold: 700;
// Base Font
// ---------------------------
-$base-font : Roboto;
-$base-font-family : sans-serif;
-$base-font-weight : $light;
-$base-font-size : 1em;
-$base-line-height : 1.55em;
-$text-color : $black;
+$base-font: Roboto;
+$base-font-family: sans-serif;
+$base-font-weight: $light;
+$base-font-size: 1em;
+$base-line-height: 1.55em;
+$text-color: $black;
// Heading Font
// ---------------------------
-$headers-font : Montserrat;
-$headers-font-family : sans-serif;
-$headers-font-weight : $regular;
-$headers-color : $primary-color;
-$method-headers-color : $primary-color;
+$headers-font: Montserrat;
+$headers-font-family: sans-serif;
+$headers-font-weight: $regular;
+$headers-color: $primary-color;
+$method-headers-color: $primary-color;
$h1: 1.85714285714286em;
$h2: 1.5714285714285714em;
$h3: 1.2857142857142858em;
$h4: 1.1428571428571428em;
$h5: 0.929em;
+// spacings
+$section-spacing: 40px;
+
// Side Bar
// ---------------------------
$side-bar-width: 260px;
-$side-bar-bg-color: #FAFAFA;
+$side-bar-bg-color: #fafafa;
$side-menu-item-color: #384248;
-$side-menu-even-bg-color: #F0F0F0;
+$side-menu-even-bg-color: #f0f0f0;
$side-menu-active-bg-color: #f0f0f0;
$side-menu-item-hpadding: 20px;
$side-menu-item-vpadding: 5px;
@@ -54,7 +58,7 @@ $samples-panel-width: 40%;
$sample-panel-headers-color: lighten($black, 50%);
$sample-panel-color: lighten($black, 80%);
-$tree-lines-color: rgba($primary-color, .5);
+$tree-lines-color: rgba($primary-color, 0.5);
$side-menu-mobile-breakpoint: 1000px;
$right-panel-squash-breakpoint: 1100px;
@@ -62,3 +66,7 @@ $right-panel-squash-breakpoint: 1100px;
// Border Radius
// ---------------------------
$border-radius: 2px;
+
+// texts
+$array-text: 'Array of ';
+$tuple-text: 'Tuple ';