From fd93182115ff4c48b94e64c49e1d58ec93889199 Mon Sep 17 00:00:00 2001 From: 79E <5980844@qq.com> Date: Sat, 1 Oct 2022 21:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=BE=20=E6=9B=B4=E6=96=B0sidebar=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=9A=90=E8=97=8F=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_widget/sidebar.ejs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layout/_widget/sidebar.ejs b/layout/_widget/sidebar.ejs index 3c62aa8..c47402a 100644 --- a/layout/_widget/sidebar.ejs +++ b/layout/_widget/sidebar.ejs @@ -33,16 +33,16 @@ z-index: 1998; } .sidebar { - width: 0; + width: 66%; height: 100%; position: fixed; top: 0; - right: 0; + right: -100%; bottom: 0; background: #fff; z-index: 1999; text-align: center; - box-shadow: -6px 0 20px rgba(98, 94, 94, .815) + box-shadow: -6px 0 20px rgba(98, 94, 94, .815); } .topo { @@ -123,7 +123,7 @@ .click( function () { $( '.sidebar' ) .animate( { - width: "66%" + right: "0" }, 500 ); $( '.shelter' ) .fadeIn( "slow" ) @@ -132,7 +132,7 @@ .click( function ( e ) { $( '.sidebar' ) .animate( { - width: "0" + right: "-100%" }, 500 ); $( '.shelter' ) .fadeOut( "slow" )