Making WordPress.org


Ignore:
Timestamp:
11/19/2013 08:30:45 AM (11 years ago)
Author:
coffee2code
Message:

jobs.wordpress.net: Properly implement mobile menus. props mercime. see #84

  • style.css:
    • Add mobile styles
    • Fix color and padding of main navigation menu-toggle element
    • Add icons to the two mobile menus
    • Fix padding for job category row without any entry
  • sidebar.php: Add hooks to enable mobile menu set up of Position Type categories
  • navigation.js: Replace navigation.js which handled one menu with jQuery to handle both mobile menus (Position Type and Main Navigation menus)
  • functions.php: Move other enqueued stylesheets above the theme's main stylesheet and add jQuery dependency for revised navigation.js
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/functions.php

    r88 r123  
    104104 */
    105105function jobswp_scripts() {
     106    wp_enqueue_style( '996-normalize', get_template_directory_uri() . '/css/996/normalize.css' );
     107    wp_enqueue_style( '996-base',      get_template_directory_uri() . '/css/996/base.css' );
     108    wp_enqueue_style( '996-grid',      get_template_directory_uri() . '/css/996/grid.css' );
     109    wp_enqueue_style( '996-style',     get_template_directory_uri() . '/css/996/style.css' );
     110    wp_enqueue_style( 'dashicons' );
     111    wp_enqueue_style( 'open-sans' );
    106112    wp_enqueue_style( 'jobswp-style', get_stylesheet_uri() );
    107113
    108     wp_enqueue_script( 'jobswp-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
    109 
     114    wp_enqueue_script( 'jobswp-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery'), '20131107', true );
    110115    wp_enqueue_script( 'jobswp-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
    111116
     
    117122        wp_enqueue_script( 'jobswp-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
    118123    }
    119 
    120     wp_enqueue_style( '996-normalize', get_template_directory_uri() . '/css/996/normalize.css' );
    121     wp_enqueue_style( '996-base',      get_template_directory_uri() . '/css/996/base.css' );
    122     wp_enqueue_style( '996-grid',      get_template_directory_uri() . '/css/996/grid.css' );
    123     wp_enqueue_style( '996-style',     get_template_directory_uri() . '/css/996/style.css' );
    124     wp_enqueue_style( 'dashicons' );
    125     wp_enqueue_style( 'open-sans' );
    126124
    127125    /* Modernizr disbabled because it causes Safari to whitescreen */
Note: See TracChangeset for help on using the changeset viewer.