Making WordPress.org


Ignore:
Timestamp:
04/11/2024 10:42:01 PM (20 months ago)
Author:
adamwood
Message:

wporg-support-2024: Fix topic actions

Revert hiding the search this forum form, and update styles to match global search field
Style Create Topic button as primary

Fixes #7572
Fixes https://github.com/WordPress/wordpress.org/issues/245

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/site/_site.scss

    r13485 r13501  
    343343.search-form {
    344344    font-size: 0;
    345     margin-bottom: 2rem;
    346 
    347345    max-width: 100%;
    348346    position: relative;
    349347
     348    // Matches wp-block-search styles
    350349    .search-field {
    351350        border: none;
    352         border-radius: 0;
    353         box-shadow: none;
     351        border-radius: var(--wp--custom--form--border--radius) 0 0 var(--wp--custom--form--border--radius);
    354352        display: block;
    355         font-size: ms( 0 );
    356         margin: 0 auto;
    357353        max-width: 100%;
    358         padding: 0.5rem;
    359         width: ms(28);
     354        width: 232px;
     355        background-color: var(--wp--custom--form--search--color--background);
     356        font-size: var(--wp--custom--form--typography--font-size);
     357        line-height: var(--wp--custom--button--typography--line-height);
     358        color: var(--wp--custom--form--search--color--text);
     359        box-shadow: var(--wp--custom--form--color--box-shadow);
     360        font-family: inherit;
     361        padding-inline: var(--wp--custom--form--padding--inline);
     362        padding-block: var(--wp--custom--form--padding--block);
    360363    }
    361364
     
    394397            display: block;
    395398            height: 100%;
    396             padding: 0.5rem 1rem;
     399            padding-inline: var(--wp--custom--form--padding--block);
     400            padding-block: var(--wp--custom--form--padding--block);
    397401            position: absolute;
    398402            right: 0;
     
    451455        }
    452456    }
    453 
    454     .site-main & .search-field {
    455         border: 1px solid var(--wp--preset--color--light-grey-1);
    456         box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 );
    457         padding: 0.5rem;
    458         width: 100%;
    459     }
    460457}
    461458
Note: See TracChangeset for help on using the changeset viewer.