From 3058b3b90245615b32797aec6efe849b9e2584d4 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 12 Jan 2016 01:26:47 +0200 Subject: [PATCH] add html5 doctype and fix strictmode issues --- demo/index.html | 2 +- lib/common/components/StickySidebar/sticky-sidebar.js | 2 +- lib/components/JsonSchema/json-schema.scss | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/demo/index.html b/demo/index.html index 1095cdaf..b863a23c 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,4 +1,4 @@ - + ReDoc diff --git a/lib/common/components/StickySidebar/sticky-sidebar.js b/lib/common/components/StickySidebar/sticky-sidebar.js index 76637c03..91a721b6 100644 --- a/lib/common/components/StickySidebar/sticky-sidebar.js +++ b/lib/common/components/StickySidebar/sticky-sidebar.js @@ -46,7 +46,7 @@ export default class StickySidebar { stick() { this.adapter.setStyle(this.element, 'position', 'fixed'); - this.adapter.setStyle(this.element, 'top', this.scrollYOffset()); + this.adapter.setStyle(this.element, 'top', this.scrollYOffset() + 'px'); } unstick() { diff --git a/lib/components/JsonSchema/json-schema.scss b/lib/components/JsonSchema/json-schema.scss index 2b99b9a2..da4fe420 100644 --- a/lib/components/JsonSchema/json-schema.scss +++ b/lib/components/JsonSchema/json-schema.scss @@ -38,10 +38,6 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin; border-left: $line-border; white-space: nowrap; position: relative; - - > span { - vertical-align: middle; - } } .param-info {