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" )