Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Disabled fixed header
Browse files Browse the repository at this point in the history
  • Loading branch information
John Jackson authored and John Jackson committed Jan 31, 2019
1 parent 67d098d commit 117e773
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 18 deletions.
4 changes: 2 additions & 2 deletions functions.php
Expand Up @@ -253,9 +253,9 @@ function weracoba_widgets_init() {
* Enqueue scripts and styles.
*/
function weracoba_scripts() {
wp_enqueue_style( 'weracoba-style', get_stylesheet_uri(), array(), '20190130', 'all' );
wp_enqueue_style( 'weracoba-style', get_stylesheet_uri(), array(), '20190131', 'all' );
wp_enqueue_style( 'weracoba-print-style', get_template_directory_uri() . '/style-print.css', array( 'weracoba-style' ), '20190130', 'print' );
wp_enqueue_script( 'weracoba-functions', get_template_directory_uri() . '/js/functions.js', array(), '20181105', true );
//wp_enqueue_script( 'weracoba-functions', get_template_directory_uri() . '/js/functions.js', array(), '20181105', true );
wp_enqueue_script( 'weracoba-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
wp_enqueue_script( 'weracoba-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );

Expand Down
2 changes: 2 additions & 0 deletions js/functions.js
Expand Up @@ -5,6 +5,7 @@
* Make the header fixed when scrolling.
* This doesn't work on IE older than 10... for now.
*/
/*
( function() {
'use strict';
var lastScrollTop;
Expand Down Expand Up @@ -40,3 +41,4 @@
lastScrollTop = newScrollTop;
};
}() );
*/
5 changes: 4 additions & 1 deletion sass/sections/_menus.scss
Expand Up @@ -117,6 +117,7 @@
* Workarounds for fixed header
* This stuff is all pretty hacky and I'm not sure how to make it more elegant.
*/
/*
.main-navigation.toggled {
height: calc( 100vh - 6.4em ); // 128px = size of header. Estimation, not accurate!
overflow: scroll;
Expand All @@ -125,7 +126,8 @@
height: calc( 100vh - 3.65em ); // 73px = size of header. Estimation, not accurate!
}
/* Offesets values from wp-includes/css/admin-bar.css */
@media screen and ( max-width: 782px ) { /* admin-bar.css:970 */
/*
@media screen and ( max-width: 782px ) { /* admin-bar.css:970 *//*
.admin-bar {
.main-navigation.toggled {
height: calc( 100vh - 6.4em - 46px );
Expand All @@ -135,6 +137,7 @@
}
}
}
*/

/*
* Media queries
Expand Down
30 changes: 16 additions & 14 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion style.css.map

Large diffs are not rendered by default.

0 comments on commit 117e773

Please sign in to comment.