Changeset 11985
- Timestamp:
- 07/21/2022 06:03:31 AM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/front-page.php
r10000 r11985 8 8 <div class="wrapper"> 9 9 <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"> 11 11 <?php 12 12 $sites_query = new WP_Query( 'post_type=make_site&posts_per_page=-1&order=ASC' ); … … 17 17 $make_site_id = get_post_meta( $post->ID, 'make_site_id', true ); 18 18 $url = $makesites[ $make_site_id ]; 19 ?>19 ?> 20 20 <article id="site-<?php the_ID(); ?>" <?php post_class(); ?>> 21 21 <h2> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/functions.php
r11962 r11985 4 4 function make_enqueue_scripts() { 5 5 wp_enqueue_style( 'make-style', get_stylesheet_uri(), array(), filemtime( __DIR__ . '/style.css' ) ); 6 wp_enqueue_script( 'masonry' );7 6 } 8 7 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/style.css
r11962 r11985 174 174 } 175 175 176 section.get-involved .make-sites { 177 display: flex; 178 flex-flow: wrap; 179 } 180 176 181 section.get-involved article { 177 182 margin: 10px; … … 181 186 font-size: 1.5em; 182 187 background: #fff; 183 float: left;184 188 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 185 189 -webkit-transition: none 0.4s ease; … … 198 202 background: #fcfcfc; 199 203 box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.3 ); 200 }201 202 section.get-involved article:nth-of-type(odd) {203 clear: left;204 204 } 205 205
Note: See TracChangeset
for help on using the changeset viewer.