Making WordPress.org


Ignore:
Timestamp:
06/13/2023 07:48:06 PM (2 years ago)
Author:
ryelle
Message:

Theme Directory: Bring back search on interior pages.

Follow-up to [12653], this adds the search back to interior pages so that the search results page works. The JS app uses the value inside the search bar to fetch and display search results, so it needs to be on all pages.

Fixes #7059.

File:
1 edited

Legend:

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

    r12653 r12655  
    14081408}
    14091409
     1410body:not(.home) {
     1411    .site-branding {
     1412        display: flex;
     1413        justify-content: space-between;
     1414    }
     1415
     1416    .search-form {
     1417        margin-bottom: 0;
     1418
     1419        .wp-filter-search {
     1420            padding: 0.3rem 0.5rem;
     1421            width: ms( 24 );
     1422            font-size: 0.8rem;
     1423        }
     1424    }
     1425}
     1426
    14101427/* Filter bar */
    14111428.wp-filter {
     
    14861503.show-filters .filter-links a.current:focus {
    14871504    color: #2ea2cc;
    1488 }
    1489 
    1490 .wp-filter .wp-filter-search {
    1491     margin: 0;
    1492     padding: 3px 5px;
    1493     width: 270px;
    1494     font-size: 16px;
    1495     font-weight: 300;
    1496     line-height: 1.5;
    14971505}
    14981506
     
    19591967        }
    19601968    }
     1969
     1970    body:not(.home) {
     1971        .site-branding {
     1972            display: block;
     1973        }
     1974
     1975        .search-form {
     1976            margin-top: 1rem;
     1977
     1978            .wp-filter-search {
     1979                font-size: 1rem;
     1980                width: 100%;
     1981            }
     1982        }
     1983    }
    19611984}
    19621985
Note: See TracChangeset for help on using the changeset viewer.