diff --git a/functions.php b/functions.php index cd56febfff..ad203b03aa 100644 --- a/functions.php +++ b/functions.php @@ -202,9 +202,9 @@ function _s_scripts() { wp_enqueue_style( 'font-open-sans', 'http://fonts.googleapis.com/css?family=Open+Sans' ); - wp_enqueue_style( 'sidebar-content', get_template_directory_uri() . '/layouts/sidebar-content.css' ); - wp_enqueue_style( 'style', get_stylesheet_uri() ); + + wp_enqueue_style( 'sidebar-content', get_template_directory_uri() . '/layouts/sidebar-content.css' ); wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), '20120206', true ); diff --git a/layouts/sidebar-content.css b/layouts/sidebar-content.css index 4f0bd0e55b..444dd41799 100644 --- a/layouts/sidebar-content.css +++ b/layouts/sidebar-content.css @@ -13,8 +13,6 @@ Layout: Sidebar-Content #masthead{ position:fixed; - top:20px; - z-index:3; width: 300px; padding:90px 30px 30px; height:100%; @@ -43,7 +41,7 @@ Layout: Sidebar-Content max-width:840px; } -@media all and (max-width: 1024px) { +@media all and (max-width: 800px) { .site-content { padding:0 30px 0 230px; @@ -57,4 +55,31 @@ Layout: Sidebar-Content padding-left:200px; } + + +} + +@media screen and (max-width: 500px) { + + + .site-content { + padding:0 30px 0 30px; +} + +#masthead{ + top:0; + width: 100%; + padding:10px 30px; + height:40px; + border:none; + border-bottom:1px solid #ccc; + background:#fff; + } + +.site-footer { + padding-left:0; +} + + #secondary{display:none;} + } \ No newline at end of file diff --git a/sidebar.php b/sidebar.php index 28df898f7d..1a156beb42 100644 --- a/sidebar.php +++ b/sidebar.php @@ -8,6 +8,18 @@ ?>