Making WordPress.org


Ignore:
Timestamp:
06/10/2024 03:36:07 AM (3 months ago)
Author:
dufresnesteven
Message:

wporg-plugins-2024: Change searchbar layout to stop it sticking to window.

Fixes: https://github.com/WordPress/wordpress.org/issues/327

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/src/blocks/archive-page/render.php

    r13691 r13792  
    1010}
    1111
    12 $container_top_padding = '40';
    13 
    14 if ( 'favorites' == get_query_var( 'browse' ) ) {
    15     echo do_blocks(  <<<BLOCKS
    16     <!-- wp:group {"align":"full","layout":{"type":"default"}} -->
    17         <div class="wp-block-group alignfull">
    18         <!-- wp:pattern {"slug":"wporg-plugins-2024/full-width-search"} /-->
    19         </div>
    20     <!-- /wp:group -->
    21     BLOCKS);
    22 
    23     $container_top_padding = '30';
    24 }
    25 
    2612// TODO: There's no block for this.
    2713$archive_description = get_the_archive_description();
    2814
    2915echo do_blocks( <<<BLOCKS
    30 <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|$container_top_padding"}}},"layout":{"type":"default"}} -->
    31 <div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--$container_top_padding)">
     16<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|40"}}},"layout":{"type":"default"}} -->
     17<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--40)">
    3218    <!-- wp:template-part {"slug":"grid-controls"} /-->
    3319    <!-- wp:query-title {"type":"archive","fontFamily":"inter","style":{"typography":{"fontStyle":"normal","fontWeight":"600"},"spacing":{"margin":{"bottom":"var:preset|spacing|10"}}},"fontSize":"heading-5"} /-->
Note: See TracChangeset for help on using the changeset viewer.