Making WordPress.org


Ignore:
Timestamp:
06/13/2023 04:26:07 PM (3 years ago)
Author:
ryelle
Message:

Theme Directory: Bring back search bar in site header.

The search was removed from the filter bar in [12646], but it should have been moved to the header. This change brings it back into the header, mirroring the Plugin & Pattern directory behavior.

Fixes #7036.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/css/components/_main.scss

    r12646 r12653  
    13841384}
    13851385
     1386/* Search form */
     1387.search-form {
     1388        margin-bottom: 2rem;
     1389        max-width: 100%;
     1390
     1391        .wp-filter-search {
     1392                -webkit-appearance: none;
     1393                border: none;
     1394                box-shadow: none;
     1395                display: block;
     1396                font-size: ms( 0 );
     1397                line-height: 1.5;
     1398                margin: 0 auto;
     1399                max-width: 100%;
     1400                padding: 0.5rem;
     1401                width: ms( 28 );
     1402
     1403                &:focus-visible {
     1404                        box-shadow: 0 0 0 1px inset #33b3db;
     1405                        outline: 1px solid #fff;
     1406                }
     1407        }
     1408}
     1409
    13861410/* Filter bar */
    13871411.wp-filter {
     
    14641488}
    14651489
    1466 .wp-filter .search-form {
    1467         float: right;
    1468         margin: 10px 0;
    1469         display: inline-block;
    1470 }
    1471 
    14721490.wp-filter .wp-filter-search {
    14731491        margin: 0;
     
    14771495        font-weight: 300;
    14781496        line-height: 1.5;
    1479 }
    1480 
    1481 .wp-filter .search-form select {
    1482         height: 33px;
    1483         vertical-align: top;
    14841497}
    14851498
     
    18491862        }
    18501863
    1851         .wp-filter .search-form {
    1852                 float: none;
    1853                 margin: 20px 0;
    1854                 width: 100%;
    1855         }
    1856 
    18571864        .theme-wrap .theme-about .theme-head,
    18581865        .theme-wrap .theme-about .theme-info,
     
    19711978        }
    19721979
    1973         /* Full width search form. */
    1974         .wp-filter .search-form,
    1975         .wp-filter .wp-filter-search {
    1976                 width: 100%;
    1977         }
    1978 
    19791980        .theme-browser .themes .theme {
    19801981                margin-right: 0;
Note: See TracChangeset for help on using the changeset viewer.