Browse Source

Header improvements (first pass.

pull/41/head
Ned Zimmerman 7 years ago
parent
commit
8100ee3c54
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 6
      assets/scripts/routes/common.js
  2. 4
      dist/mix-manifest.json
  3. 2
      dist/scripts/aldine.js
  4. 2
      dist/styles/aldine.css
  5. 1
      functions.php
  6. 69
      header.php

6
assets/scripts/routes/common.js

@ -4,10 +4,10 @@ export default {
$( 'body' ) $( 'body' )
.removeClass( 'no-js' ) .removeClass( 'no-js' )
.addClass( 'js' ); .addClass( 'js' );
$( '.toggle' ).click( event => { $( '.js-header-menu-toggle' ).click( event => {
event.preventDefault(); event.preventDefault();
$( event.currentTarget ).toggleClass( 'toggle--active' ); $( event.currentTarget ).toggleClass( '--active' );
$( '.banner__navigation' ).toggleClass( 'banner__navigation--visible' ); $( '.js-header-nav' ).toggleClass( '--visible' );
} ); } );
}, },
finalize() { finalize() {

4
dist/mix-manifest.json vendored

@ -1,5 +1,5 @@
{ {
"/scripts/aldine.js": "/scripts/aldine.js?id=8a707791c89c90b8f4c6", "/scripts/aldine.js": "/scripts/aldine.js?id=e0b974d636182fae8146",
"/styles/aldine.css": "/styles/aldine.css?id=8021de4bdd5014faae77", "/styles/aldine.css": "/styles/aldine.css?id=bb6ed631d6965a12d276",
"/scripts/customizer.js": "/scripts/customizer.js?id=f1f1f4225cba4c1b35f2" "/scripts/customizer.js": "/scripts/customizer.js?id=f1f1f4225cba4c1b35f2"
} }

2
dist/scripts/aldine.js vendored

File diff suppressed because one or more lines are too long

2
dist/styles/aldine.css vendored

File diff suppressed because one or more lines are too long

1
functions.php

@ -196,3 +196,4 @@ add_action( 'wp_enqueue_scripts', 'pressbooks_aldine_scripts' );
add_action( 'customize_register', '\\Aldine\\Customizer\\customize_register' ); add_action( 'customize_register', '\\Aldine\\Customizer\\customize_register' );
add_action( 'customize_preview_init', '\\Aldine\\Customizer\\customize_preview_js' ); add_action( 'customize_preview_init', '\\Aldine\\Customizer\\customize_preview_js' );

69
header.php

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save