From cac8594f1c6e6fad29f94318fd44198c0c13938f Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 14 Mar 2016 23:15:32 +0200 Subject: [PATCH] fonts improvements --- .../JsonSchema/json-schema-common.scss | 3 ++- lib/components/Redoc/redoc.scss | 23 +++++++++++++++++++ .../ResponsesList/responses-list.scss | 4 ++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/lib/components/JsonSchema/json-schema-common.scss b/lib/components/JsonSchema/json-schema-common.scss index d61e4899..a939c365 100644 --- a/lib/components/JsonSchema/json-schema-common.scss +++ b/lib/components/JsonSchema/json-schema-common.scss @@ -37,6 +37,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin; .param-name-content { padding-right: $cell-spacing; display: inline-block; + font-family: $headers-font, $headers-font-family; } .param-info { @@ -109,7 +110,7 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin; border-top: $line-border; width: $bullet-margin; left: 0; - top: ($param-name-height/2) + $cell-padding; + top: ($param-name-height/2) + $cell-padding + 1px; } .param:first-of-type > .param-name:before { diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss index fb88a9d9..69b72833 100644 --- a/lib/components/Redoc/redoc.scss +++ b/lib/components/Redoc/redoc.scss @@ -3,6 +3,29 @@ :host { 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%; } .redoc-wrap { diff --git a/lib/components/ResponsesList/responses-list.scss b/lib/components/ResponsesList/responses-list.scss index 40f96f63..d9212b11 100644 --- a/lib/components/ResponsesList/responses-list.scss +++ b/lib/components/ResponsesList/responses-list.scss @@ -8,6 +8,10 @@ font-weight: normal; } +:host .zippy-title { + font-family: $headers-font, $headers-font-family; +} + .header-name { font-weight: bold; display: inline-block;