From 2a8ea8f6690ab09dfc7b1cc62bdff5d297bc434c Mon Sep 17 00:00:00 2001 From: Cesar Date: Mon, 29 Feb 2016 17:18:00 -0500 Subject: [PATCH 01/12] First Commit --- demo/main.css | 5 +- lib/common/styles/_variables.scss | 189 ++++++++++++++++++++++++++- lib/components/ApiInfo/api-info.scss | 1 - lib/components/Method/method.scss | 8 +- lib/components/Redoc/redoc.scss | 121 +---------------- 5 files changed, 194 insertions(+), 130 deletions(-) diff --git a/demo/main.css b/demo/main.css index 8e9a6df3..5fa45cbc 100644 --- a/demo/main.css +++ b/demo/main.css @@ -1,9 +1,5 @@ body { - font-family: Verdana, Geneva, sans-serif; - font-size: 14px; - color: #333; margin: 0; - line-height: 1.5; padding-top: 50px; } @@ -16,6 +12,7 @@ nav input, nav button { outline: none; } nav header { + font-family: Monserrat, sans-serif; float: left; margin-left: 20px; font-size: 25px; diff --git a/lib/common/styles/_variables.scss b/lib/common/styles/_variables.scss index 9df2da78..8b8e7f55 100644 --- a/lib/common/styles/_variables.scss +++ b/lib/common/styles/_variables.scss @@ -1,15 +1,60 @@ -$headers-color: #00329F; -$method-headers-color: #253137; +// Colors +// --------------------------- +$primary-color : #0033a0; +$secondary-color : #263238; +$green : #00aa13; +$yellow : #f1c400; +$red : #e53935; +// Font +// --------------------------- +$em-size : 14px; + +// Font weights +// --------------------------- +$light : 300; +$regular : 400; +$bold : 700; + +// Base Font +// --------------------------- +$base-font : Roboto; +$base-font-family : sans-serif; +$base-font-weight : $regular; +$base-font-size : 1em; +$base-line-height : 1.4; +$text-color : $secondary-color; + +// Heading Font +// --------------------------- +$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: 1em; + +// Google Fonts +// --------------------------- +@import url(http://fonts.googleapis.com/css?family=#{$base-font}:#{$light},#{$regular},#{$bold}); +@import url(http://fonts.googleapis.com/css?family=#{$headers-font}:#{$light},#{$regular}); + +// Side Bar +// --------------------------- $side-bar-width: 260px; $side-bar-bg-color: #FAFAFA; - $side-menu-item-color: #384248; $side-menu-even-bg-color: #F0F0F0; $side-menu-active-bg-color: #DEDEDE; $side-menu-item-hpadding: 20px; $side-menu-item-vpadding: 5px; +// Sample Panel +// --------------------------- $samples-panel-bg-color: #263238; $samples-panel-width: 40%; $sample-panel-headers-color: #8A9094; @@ -18,3 +63,141 @@ $sample-panel-color: #CFD2D3; $tree-lines-color: #7D97CE; $side-menu-mobile-breakpoint: 1000px; + +// Global Styles +// --------------------------- +@for $index from 1 through 5 { + h#{$index}{ + font-family: $headers-font, $headers-font-family; + color: $headers-color; + font-weight: $headers-font-weight; + } +} + +h1 { font-size: $h1; } +h2 { font-size: $h2; } +h3 { font-size: $h3; } +h4 { font-size: $h4; } +h5 { font-size: $h5; } + +p { + font-size: $base-font-size; +} + +footer { + text-align: right; + padding: 10px; + font-size: 15px; + + a { + color: #999; + text-decoration: none; + } + + strong { + font-size: 18px; + color: $headers-color; + } +} + +/* global redoc styles */ + +:host p { + margin: 0; + margin-bottom: 1em; +} + +/* markdown elements */ + +:host .redoc-markdown-block { + pre { + font-family: Courier, monospace; + white-space: pre-wrap; + background-color: rgba(0,0,0,0.04); + padding: 10px; + overflow-x: auto; + line-height: normal; + border-radius: 3px; + + code { + background-color: transparent; + + &:before, &:after { + content: none; + } + } + } + + code { + font-family: Courier, monospace; + background-color: rgba(0,0,0,0.04); + padding: 0.2em 0; + font-size: 0.85em; + border-radius: 3px; + + &:before, &:after { + letter-spacing: -0.2em; + content: "\\00a0"; + } + } + + p { + margin: 0; + font-size: $base-font-size; + margin-bottom: 1em; + } + + 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/ApiInfo/api-info.scss b/lib/components/ApiInfo/api-info.scss index 0b76f7c9..805bba8b 100644 --- a/lib/components/ApiInfo/api-info.scss +++ b/lib/components/ApiInfo/api-info.scss @@ -1,6 +1,5 @@ @import '../../common/styles/variables'; .api-info-header { - color: $headers-color; font-weight: normal; } diff --git a/lib/components/Method/method.scss b/lib/components/Method/method.scss index 38e7fbd0..0672f3dc 100644 --- a/lib/components/Method/method.scss +++ b/lib/components/Method/method.scss @@ -4,7 +4,7 @@ :host { padding-bottom: 100px; display: block; - border-bottom: 2px solid rgba(127, 127, 127, 0.25); + border-bottom: 1px solid rgba(127, 127, 127, 0.25); } responses-list, params-list { @@ -12,9 +12,7 @@ responses-list, params-list { } .method-header { - font-size: 25px; - font-weight: 200; - color: $method-headers-color; + margin-bottom: 1em; } .method-endpoint { @@ -70,7 +68,7 @@ responses-list, params-list { .method-content { width: 100% - $samples-panel-width; - padding: 0 20px; + padding: 20px 20px; } .method-samples { diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss index d8eefc6a..16111561 100644 --- a/lib/components/Redoc/redoc.scss +++ b/lib/components/Redoc/redoc.scss @@ -7,6 +7,10 @@ .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 { @@ -74,120 +78,3 @@ api-logo { #api-content.menu-opened:after { display: block;; } - -footer { - text-align: right; - padding: 10px; - font-size: 15px; - - a { - color: #999; - text-decoration: none; - } - - strong { - font-size: 18px; - color: $headers-color; - } -} - -/* global redoc styles */ - -:host p { - margin: 0; - margin-bottom: 1em; -} - -/* markdown elements */ - -:host .redoc-markdown-block { - pre { - font-family: Courier, monospace; - white-space: pre-wrap; - background-color: rgba(0,0,0,0.04); - padding: 10px; - overflow-x: auto; - line-height: normal; - border-radius: 3px; - - code { - background-color: transparent; - - &:before, &:after { - content: none; - } - } - } - - code { - font-family: Courier, monospace; - background-color: rgba(0,0,0,0.04); - padding: 0.2em 0; - font-size: 0.85em; - border-radius: 3px; - - &:before, &:after { - letter-spacing: -0.2em; - content: "\\00a0"; - } - } - - p { - margin: 0; - margin-bottom: 1em; - } - - 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; - } -} From d07e2f0026eb1a44f6097344307115735416c1e8 Mon Sep 17 00:00:00 2001 From: Cesar Date: Tue, 1 Mar 2016 13:08:02 -0500 Subject: [PATCH 02/12] Work on Request and Response Samples and overall padding --- lib/common/styles/_share-link.scss | 4 + lib/common/styles/_variables.scss | 116 ++---------------- lib/components/Method/method.html | 6 +- lib/components/Method/method.scss | 35 ++++-- lib/components/MethodsList/methods-list.scss | 2 +- lib/components/ParamsList/params-list.html | 6 +- lib/components/ParamsList/params-list.scss | 10 +- .../Redoc/redoc-loading-styles.scss | 3 +- lib/components/Redoc/redoc.scss | 99 ++++++++++++++- .../RequestSamples/request-samples.scss | 20 ++- .../ResponsesSamples/responses-samples.scss | 6 +- 11 files changed, 168 insertions(+), 139 deletions(-) diff --git a/lib/common/styles/_share-link.scss b/lib/common/styles/_share-link.scss index a3ad5415..d20a00da 100644 --- a/lib/common/styles/_share-link.scss +++ b/lib/common/styles/_share-link.scss @@ -18,6 +18,10 @@ vertical-align: middle; } +.sharable-header { + color: $secondary-color; +} + .sharable-header:hover .share-link:before, .share-link:hover:before { visibility: visible; } diff --git a/lib/common/styles/_variables.scss b/lib/common/styles/_variables.scss index 8b8e7f55..91c64c80 100644 --- a/lib/common/styles/_variables.scss +++ b/lib/common/styles/_variables.scss @@ -2,6 +2,7 @@ // --------------------------- $primary-color : #0033a0; $secondary-color : #263238; +$black : #263238; $green : #00aa13; $yellow : #f1c400; $red : #e53935; @@ -23,7 +24,7 @@ $base-font-family : sans-serif; $base-font-weight : $regular; $base-font-size : 1em; $base-line-height : 1.4; -$text-color : $secondary-color; +$text-color : $black; // Heading Font // --------------------------- @@ -55,19 +56,24 @@ $side-menu-item-vpadding: 5px; // Sample Panel // --------------------------- -$samples-panel-bg-color: #263238; +$samples-panel-bg-color: $black; $samples-panel-width: 40%; -$sample-panel-headers-color: #8A9094; -$sample-panel-color: #CFD2D3; +$sample-panel-headers-color: lighten($black, 50%); +$sample-panel-color: lighten($black, 80%); $tree-lines-color: #7D97CE; $side-menu-mobile-breakpoint: 1000px; +// Border Radius +// --------------------------- +$border-radius: 2px; + // Global Styles // --------------------------- @for $index from 1 through 5 { h#{$index}{ + margin-top: 0; font-family: $headers-font, $headers-font-family; color: $headers-color; font-weight: $headers-font-weight; @@ -99,105 +105,3 @@ footer { color: $headers-color; } } - -/* global redoc styles */ - -:host p { - margin: 0; - margin-bottom: 1em; -} - -/* markdown elements */ - -:host .redoc-markdown-block { - pre { - font-family: Courier, monospace; - white-space: pre-wrap; - background-color: rgba(0,0,0,0.04); - padding: 10px; - overflow-x: auto; - line-height: normal; - border-radius: 3px; - - code { - background-color: transparent; - - &:before, &:after { - content: none; - } - } - } - - code { - font-family: Courier, monospace; - background-color: rgba(0,0,0,0.04); - padding: 0.2em 0; - font-size: 0.85em; - border-radius: 3px; - - &:before, &:after { - letter-spacing: -0.2em; - content: "\\00a0"; - } - } - - p { - margin: 0; - font-size: $base-font-size; - margin-bottom: 1em; - } - - 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/Method/method.html b/lib/components/Method/method.html index 1a428a93..08e3ed84 100644 --- a/lib/components/Method/method.html +++ b/lib/components/Method/method.html @@ -3,10 +3,10 @@

{{data.methodInfo.summary}}

-

- {{data.httpMethod}} + +
{{data.httpMethod}}
{{data.apiUrl}} {{data.path}} -

+ diff --git a/lib/components/Method/method.scss b/lib/components/Method/method.scss index 0672f3dc..9ca0dfa8 100644 --- a/lib/components/Method/method.scss +++ b/lib/components/Method/method.scss @@ -12,31 +12,40 @@ responses-list, params-list { } .method-header { - margin-bottom: 1em; + margin-bottom: .5em; } .method-endpoint { - margin: 0; - font-weight: 200; - font-size: 0; + margin: 0 0 2em 0; + display: block; + font-weight: $light; } -.method-endpoint > span { - padding-top: 3px; +.method-endpoint > h5 { + padding-top: 4px; padding-bottom: 3px; + margin: 0; + font-size: .8em; vertical-align: middle; - font-size: 14px; + display: inline-block; + border-radius: $border-radius; } .api-url { - color: #999; + color: lighten($text-color, 30%); margin-left: 10px; + margin-top: 2px; + position: relative; + top: 1px; + font-size: 1em!important; } .path { - font-family: monospace; - font-weight: bold; + font-weight: $bold; + position: relative; + top: 1px; color: $headers-color; + font-size: 1em!important; } .method-tags { @@ -68,13 +77,13 @@ responses-list, params-list { .method-content { width: 100% - $samples-panel-width; - padding: 20px 20px; + padding: 40px; } .method-samples { color: $sample-panel-color; width: 40%; - padding: 10px 20px; + padding: 40px; background: $samples-panel-bg-color; } @@ -124,7 +133,7 @@ responses-samples { } .http-method.put { - background-color: crimson; + background-color: $red; } .http-method.options { diff --git a/lib/components/MethodsList/methods-list.scss b/lib/components/MethodsList/methods-list.scss index bc6f128e..d81c67ca 100644 --- a/lib/components/MethodsList/methods-list.scss +++ b/lib/components/MethodsList/methods-list.scss @@ -2,7 +2,7 @@ @import '../../common/styles/share-link'; .tag-info { - padding: 0 20px; + padding: 40px; box-sizing: border-box; background-color: white; } diff --git a/lib/components/ParamsList/params-list.html b/lib/components/ParamsList/params-list.html index 0e623cf0..334018ce 100644 --- a/lib/components/ParamsList/params-list.html +++ b/lib/components/ParamsList/params-list.html @@ -1,6 +1,7 @@ -

Parameters

+

Parameters

-

Request Body

+

Request Body

+
diff --git a/lib/components/ParamsList/params-list.scss b/lib/components/ParamsList/params-list.scss index 9f8603c6..62b4fa98 100644 --- a/lib/components/ParamsList/params-list.scss +++ b/lib/components/ParamsList/params-list.scss @@ -1,10 +1,12 @@ +@import '../../common/styles/variables'; + .param-list-header { - border-bottom: 1px solid #999; - font-size: 18px; + border-bottom: 1px solid lighten($text-color, 60%); padding: 0.2em 0; - margin: 0.5em 0; - color: #253137; + margin: 3em 0 .5em 0; + color: $text-color; font-weight: normal; + text-transform: uppercase; } @import '../JsonSchema/json-schema-common'; diff --git a/lib/components/Redoc/redoc-loading-styles.scss b/lib/components/Redoc/redoc-loading-styles.scss index 0e4f4bd9..df8bea85 100644 --- a/lib/components/Redoc/redoc-loading-styles.scss +++ b/lib/components/Redoc/redoc-loading-styles.scss @@ -13,11 +13,12 @@ redoc.loading { } redoc.loading:before { + font-family: Montserrat; content: "Loading..."; font-size: 28px; text-align: center; padding-top: 40px; - color: #3F5C9C; + color: #0033a0; font-weight: bold; display: block; position: absolute; diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss index 16111561..d75ee2a4 100644 --- a/lib/components/Redoc/redoc.scss +++ b/lib/components/Redoc/redoc.scss @@ -29,7 +29,7 @@ api-info, .side-bar { } api-info { - padding: 10px 20px; + padding: 40px; } api-logo { @@ -78,3 +78,100 @@ api-logo { #api-content.menu-opened:after { display: block;; } + +/* global redoc styles */ + +:host p { + margin: 0; + margin-bottom: 1em; +} + +/* markdown elements */ + +:host .redoc-markdown-block { + pre { + font-family: Courier, monospace; + white-space: pre-wrap; + background-color: rgba(38,50,56,0.04); + 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(0,0,0,0.04); + padding: 0.2em 0; + font-size: 1em; + border-radius: 3px; + + &:before, &:after { + letter-spacing: -0.2em; + content: "\\00a0"; + } + } + + p:last-of-type { + margin-bottom: 1em; + } + + 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 4270dc84..ee6ea0f3 100644 --- a/lib/components/RequestSamples/request-samples.scss +++ b/lib/components/RequestSamples/request-samples.scss @@ -1,24 +1,32 @@ @import '../../common/styles/variables'; header { - font-size: 16px; - margin: 5px 0; + font-family: $headers-font; + font-size: .9em; + text-transform: uppercase; + margin: 0 0 12px 0; color: $sample-panel-headers-color; text-transform: uppercase; font-weight: normal; } :host > tabs > ul li { - font-size: 13px; + font-family: $headers-font; + font-size: .9em; + border-radius: $border-radius; margin: 2px 0; - padding: 2px 5px; + padding: 3px 10px 2px 10px; color: #8A9094; line-height: 1.25; color: $sample-panel-headers-color; + &.hover { + color: #ffffff; + } + &.active { - background-color: white; - color: #666; + background-color: #ffffff; + color: $text-color; } } diff --git a/lib/components/ResponsesSamples/responses-samples.scss b/lib/components/ResponsesSamples/responses-samples.scss index 9d33323f..c9547a85 100644 --- a/lib/components/ResponsesSamples/responses-samples.scss +++ b/lib/components/ResponsesSamples/responses-samples.scss @@ -9,8 +9,10 @@ schema-sample { } header { - font-size: 16px; - margin: 5px 0; + font-family: $headers-font; + font-size: .9em; + text-transform: uppercase; + margin: 0 0 12px 0; color: $sample-panel-headers-color; text-transform: uppercase; font-weight: normal; From 06cba79383895e4b62b7a78057bda642a1aa2a61 Mon Sep 17 00:00:00 2001 From: Cesar Date: Wed, 2 Mar 2016 14:48:55 -0500 Subject: [PATCH 03/12] Global styles and Menu style --- lib/common/styles/_variables.scss | 43 +-- .../JsonSchema/json-schema-common.scss | 4 +- lib/components/Method/method.scss | 10 +- lib/components/ParamsList/params-list.html | 4 +- lib/components/ParamsList/params-list.scss | 6 +- lib/components/Redoc/redoc.scss | 286 ++++++++++-------- .../RequestSamples/request-samples.scss | 2 +- lib/components/SideMenu/side-menu.html | 2 +- lib/components/SideMenu/side-menu.scss | 222 +++++++------- 9 files changed, 291 insertions(+), 288 deletions(-) diff --git a/lib/common/styles/_variables.scss b/lib/common/styles/_variables.scss index 91c64c80..b633bf4c 100644 --- a/lib/common/styles/_variables.scss +++ b/lib/common/styles/_variables.scss @@ -23,7 +23,7 @@ $base-font : Roboto; $base-font-family : sans-serif; $base-font-weight : $regular; $base-font-size : 1em; -$base-line-height : 1.4; +$base-line-height : 1.55em; $text-color : $black; // Heading Font @@ -37,7 +37,7 @@ $h1: 1.85714285714286em; $h2: 1.5714285714285714em; $h3: 1.2857142857142858em; $h4: 1.1428571428571428em; -$h5: 1em; +$h5: 0.929em; // Google Fonts // --------------------------- @@ -50,7 +50,7 @@ $side-bar-width: 260px; $side-bar-bg-color: #FAFAFA; $side-menu-item-color: #384248; $side-menu-even-bg-color: #F0F0F0; -$side-menu-active-bg-color: #DEDEDE; +$side-menu-active-bg-color: #f0f0f0; $side-menu-item-hpadding: 20px; $side-menu-item-vpadding: 5px; @@ -68,40 +68,3 @@ $side-menu-mobile-breakpoint: 1000px; // Border Radius // --------------------------- $border-radius: 2px; - -// Global Styles -// --------------------------- -@for $index from 1 through 5 { - h#{$index}{ - margin-top: 0; - font-family: $headers-font, $headers-font-family; - color: $headers-color; - font-weight: $headers-font-weight; - } -} - -h1 { font-size: $h1; } -h2 { font-size: $h2; } -h3 { font-size: $h3; } -h4 { font-size: $h4; } -h5 { font-size: $h5; } - -p { - font-size: $base-font-size; -} - -footer { - text-align: right; - padding: 10px; - font-size: 15px; - - a { - color: #999; - text-decoration: none; - } - - strong { - font-size: 18px; - color: $headers-color; - } -} diff --git a/lib/components/JsonSchema/json-schema-common.scss b/lib/components/JsonSchema/json-schema-common.scss index e3e7ce97..9fb26d84 100644 --- a/lib/components/JsonSchema/json-schema-common.scss +++ b/lib/components/JsonSchema/json-schema-common.scss @@ -35,7 +35,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin; display: inline-block; font-size: 14px; padding: $cell-padding 0 $cell-padding 0; - font-weight: bold; + font-weight: $regular; box-sizing: border-box; line-height: $param-name-height; border-left: $line-border; @@ -76,7 +76,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin; font-size: 12px; line-height: $param-name-height; vertical-align: middle; - font-weight: bold; + font-weight: normal; } .param-type.array:before { diff --git a/lib/components/Method/method.scss b/lib/components/Method/method.scss index 9ca0dfa8..8b5d9785 100644 --- a/lib/components/Method/method.scss +++ b/lib/components/Method/method.scss @@ -12,7 +12,7 @@ responses-list, params-list { } .method-header { - margin-bottom: .5em; + margin-bottom: .9em; } .method-endpoint { @@ -22,8 +22,8 @@ responses-list, params-list { } .method-endpoint > h5 { - padding-top: 4px; - padding-bottom: 3px; + padding-top: 1px; + padding-bottom: 0; margin: 0; font-size: .8em; vertical-align: middle; @@ -32,11 +32,11 @@ responses-list, params-list { } .api-url { - color: lighten($text-color, 30%); + color: rgba($text-color, .6); margin-left: 10px; margin-top: 2px; position: relative; - top: 1px; + top: 2px; font-size: 1em!important; } diff --git a/lib/components/ParamsList/params-list.html b/lib/components/ParamsList/params-list.html index 334018ce..64c9e80b 100644 --- a/lib/components/ParamsList/params-list.html +++ b/lib/components/ParamsList/params-list.html @@ -1,4 +1,4 @@ -

Parameters

+
Parameters
-

Request Body

+
Request Body
diff --git a/lib/components/ParamsList/params-list.scss b/lib/components/ParamsList/params-list.scss index 62b4fa98..8900423f 100644 --- a/lib/components/ParamsList/params-list.scss +++ b/lib/components/ParamsList/params-list.scss @@ -1,10 +1,10 @@ @import '../../common/styles/variables'; .param-list-header { - border-bottom: 1px solid lighten($text-color, 60%); + border-bottom: 1px solid rgba($text-color, .3); padding: 0.2em 0; - margin: 3em 0 .5em 0; - color: $text-color; + margin: 3.5em 0 .8em 0; + color: rgba($text-color, .5); font-weight: normal; text-transform: uppercase; } diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss index d75ee2a4..2403d491 100644 --- a/lib/components/Redoc/redoc.scss +++ b/lib/components/Redoc/redoc.scss @@ -1,177 +1,219 @@ @import '../../common/styles/variables'; :host { - display: block; - box-sizing: border-box; + display: block; + box-sizing: border-box; } .redoc-wrap { - position: relative; - font-family: $base-font, $base-font-family; - font-size: $em-size; - line-height: $base-line-height; - color: $text-color; + 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; + display: block; + box-sizing: border-box; } methods-list { - display: block; - overflow: hidden; + display: block; + overflow: hidden; } api-info, .side-bar { - display: block; - padding: 10px 0; + display: block; + padding: 10px 0; } api-info { - padding: 40px; + padding: 40px; } api-logo { - display: block; - text-align: center; + display: block; + text-align: center; - @media (max-width: $side-menu-mobile-breakpoint) { - display: none; - } + @media (max-width: $side-menu-mobile-breakpoint) { + display: none; + } } [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; - } + @media (max-width: $side-menu-mobile-breakpoint) { + z-index: 1; + width: 100%; + bottom: auto !important; + } } #api-content { - margin-left: $side-bar-width; - @media (max-width: $side-menu-mobile-breakpoint) { - padding-top: 3em; - margin-left: 0; - } + margin-left: $side-bar-width; + @media (max-width: $side-menu-mobile-breakpoint) { + padding-top: 3em; + margin-left: 0; + } } #api-content:after { - content: ""; - position: absolute;; - left:0; - right: 0; - top: 0; - bottom: 0; - background-color: black; - opacity: 0.5; - transition: all 0.3s ease; - display: none; + content: ""; + position: absolute;; + left:0; + right: 0; + top: 0; + bottom: 0; + background-color: black; + opacity: 0.5; + transition: all 0.3s ease; + display: none; } #api-content.menu-opened:after { - display: block;; + display: block;; } /* global redoc styles */ -:host p { - margin: 0; - margin-bottom: 1em; +@for $index from 1 through 5 { + :host h#{$index}{ + margin-top: 0; + font-family: $headers-font, $headers-font-family; + color: $headers-color; + font-weight: $headers-font-weight; + } } +:host { + 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; + 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); + } + + strong { + font-size: 18px; + color: $headers-color; + } + + footer { + text-align: right; + padding: 10px; + font-size: 15px; + } +} + + + /* markdown elements */ :host .redoc-markdown-block { - pre { - font-family: Courier, monospace; - white-space: pre-wrap; - background-color: rgba(38,50,56,0.04); - padding: 12px 14px 15px 14px; - overflow-x: auto; - line-height: normal; - border-radius: $border-radius; - border: 1px solid rgba(38,50,56,0.1); + pre { + font-family: Courier, monospace; + white-space: pre-wrap; + background-color: rgba(38,50,56,0.04); + 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 { - background-color: transparent; + 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 { - content: none; - } + &:before, &:after { + letter-spacing: -0.2em; + content: "\\00a0"; + } } - } - code { - font-family: Courier, monospace; - background-color: rgba(0,0,0,0.04); - padding: 0.2em 0; - font-size: 1em; - border-radius: 3px; - - &:before, &:after { - letter-spacing: -0.2em; - content: "\\00a0"; + p:last-of-type { + margin-bottom: 1em; } - } - p:last-of-type { - margin-bottom: 1em; - } - - 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; + blockquote { + margin: 0; + margin-bottom: 1em; + padding: 0 15px; + color: #777; + border-left: 4px solid #ddd; } - } - table th, table td { - padding: 6px 13px; - border: 1px solid #ddd; - } + img { + max-width: 100%; + box-sizing: content-box; + } - table th { - text-align: left; - font-weight: bold; - } + 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 ee6ea0f3..0c795619 100644 --- a/lib/components/RequestSamples/request-samples.scss +++ b/lib/components/RequestSamples/request-samples.scss @@ -2,7 +2,7 @@ header { font-family: $headers-font; - font-size: .9em; + font-size: $h5; text-transform: uppercase; margin: 0 0 12px 0; color: $sample-panel-headers-color; diff --git a/lib/components/SideMenu/side-menu.html b/lib/components/SideMenu/side-menu.html index 754cde31..e4aad5ea 100644 --- a/lib/components/SideMenu/side-menu.html +++ b/lib/components/SideMenu/side-menu.html @@ -6,7 +6,7 @@
- +