Making WordPress.org


Ignore:
Timestamp:
05/31/2022 09:34:24 PM (4 years ago)
Author:
iandunn
Message:

Developer: Use modern clearfix to restore heading anchor image.

Using overflow: auto as a clearfix prevented the .toc-heading a Dashicon from showing up on hover.

This also replaces the various padding-left values with a single value that works across all breakpoints, to ensure that there's enough room for the icon.

See https://github.com/WordPress/wporg-developer/issues/33

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php

    r11659 r11901  
    348348    wp_enqueue_style( 'open-sans', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600' );
    349349    wp_enqueue_style( 'wporg-developer-style', get_stylesheet_uri(), array(), '4' );
    350     wp_enqueue_style( 'wp-dev-sass-compiled', get_template_directory_uri() . '/stylesheets/main.css', array( 'wporg-developer-style' ), '20220217' );
     350    wp_enqueue_style(
     351        'wp-dev-sass-compiled',
     352        get_template_directory_uri() . '/stylesheets/main.css',
     353        array( 'wporg-developer-style' ),
     354        filemtime( __DIR__ . '/stylesheets/main.css' )
     355    );
    351356    wp_enqueue_script( 'wporg-developer-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20181209', true );
    352357    wp_enqueue_script( 'wporg-developer-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
     
    409414    return $new_text;
    410415}
    411 
Note: See TracChangeset for help on using the changeset viewer.