From f351afb96c4f705faa8772ecd4cf1b9688a55c4d Mon Sep 17 00:00:00 2001 From: nzbin Date: Sat, 12 Jan 2019 21:30:33 +0800 Subject: [PATCH] docs: fixed sticky issue --- docs/css/docs.css | 6 +++--- docs/sass/docs.scss | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/css/docs.css b/docs/css/docs.css index 323cfe5..21b45f8 100644 --- a/docs/css/docs.css +++ b/docs/css/docs.css @@ -81,14 +81,14 @@ footer { } .sidebar { - position: sticky; - position: -webkit-sticky; - top: 0; padding-top: 32px; padding-bottom: 32px; } .sidebar > ul { + position: sticky; + position: -webkit-sticky; + top: 32px; list-style: none; padding: 0; margin: 0; diff --git a/docs/sass/docs.scss b/docs/sass/docs.scss index f95d34d..f84f64b 100644 --- a/docs/sass/docs.scss +++ b/docs/sass/docs.scss @@ -92,13 +92,13 @@ $logo-line-height: 4px; } .sidebar { - position: sticky; - position: -webkit-sticky; - top: 0; padding-top: 32px; padding-bottom: 32px; > ul { + position: sticky; + position: -webkit-sticky; + top: 32px; list-style: none; padding: 0; margin: 0;