Making WordPress.org


Ignore:
Timestamp:
07/21/2022 06:03:31 AM (3 years ago)
Author:
dd32
Message:

Make: Replace masonry usage on the make homepage with flexbox css.

This is not a 1:1 replacement and it removes the masonry re-ordering, but masonry.js was affecting a minority of the teams cards and removal makes visual regression testing more viable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/front-page.php

    r10000 r11985  
    88    <div class="wrapper">
    99        <h2 class="section-title"><?php _e( 'There are many different ways for you to get involved with WordPress:', 'make-wporg' ); ?></h2>
    10         <div class="js-masonry" data-masonry-options='{ "itemSelector": ".make_site" }'>
     10        <div class="make-sites">
    1111        <?php
    1212            $sites_query = new WP_Query( 'post_type=make_site&posts_per_page=-1&order=ASC' );
     
    1717                $make_site_id = get_post_meta( $post->ID, 'make_site_id', true );
    1818                $url          = $makesites[ $make_site_id ];
    19         ?>
     19            ?>
    2020            <article id="site-<?php the_ID(); ?>" <?php post_class(); ?>>
    2121                <h2>
Note: See TracChangeset for help on using the changeset viewer.