From 052cfe4ffedf2c2ddd8966bdfa04187b958d063f Mon Sep 17 00:00:00 2001 From: benstr Date: Wed, 4 Jun 2014 14:12:15 -0500 Subject: [PATCH] Removed content overflow adding an js events based on window scroll location did not work previously because of the .st-content overflow setting. Refactored CSS to allow for proper window scroll returns. --- css/component.css | 13 ++----------- css/components-right.css | 13 ++----------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/css/component.css b/css/component.css index 004a723..4a60bd1 100755 --- a/css/component.css +++ b/css/component.css @@ -5,16 +5,7 @@ box-sizing: border-box; } -html, -body, -.st-container, -.st-pusher, .st-content { - height: 100%; -} - -.st-content { - overflow-y: scroll; background: #f3efe0; } @@ -59,7 +50,7 @@ body, } .st-menu { - position: absolute; + position: fixed; top: 0; left: 0; z-index: 100; @@ -72,7 +63,7 @@ body, } .st-menu::after { - position: absolute; + position: fixed; top: 0; right: 0; width: 100%; diff --git a/css/components-right.css b/css/components-right.css index 35cbfb2..e17d358 100644 --- a/css/components-right.css +++ b/css/components-right.css @@ -5,16 +5,7 @@ box-sizing: border-box; } -html, -body, -.st-container, -.st-pusher, .st-content { - height: 100%; -} - -.st-content { - overflow-y: scroll; background: #f3efe0; } @@ -59,7 +50,7 @@ body, } .st-menu { - position: absolute; + position: fixed; top: 0; right: 0; z-index: 100; @@ -72,7 +63,7 @@ body, } .st-menu::after { - position: absolute; + position: fixed; top: 0; right: 0; width: 100%;