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/_bbpress.scss

    r13499 r13501  
    443443
    444444        .create-topic {
    445             font-size: 0.8rem;
    446445
    447446            @media (min-width: $paginationBreakPoint) {
    448447                float: left;
    449             }
    450 
    451             &::before {
    452                 color: #000;
    453                 content: "\f132";
    454                 font: 400 16px/1 dashicons;
    455                 margin: 0 4px 0 -4px;
    456                 vertical-align: middle;
    457448            }
    458449        }
     
    461452            display: flex;
    462453            flex-direction: column;
    463             gap: 16px;
    464             padding: 15px 0;
     454            gap: 10px;
     455            margin-bottom: var(--wp--style--block-gap);
    465456            text-align: center;
    466457
    467458            @media (min-width: 767px) {
    468459                flex-direction: row;
    469                 justify-content: space-between;
     460                align-items: center;
    470461            }
    471462
    472463            .create-topic {
    473                 float: none;
    474                 height: auto;
    475                 padding: 9px 12px;
    476 
    477                 &::before {
    478                     color: #fff;
    479                 }
    480 
    481                 &.button-secondary::before {
    482                     color: #000;
    483                 }
    484 
    485             }
    486 
    487             > span {
    488                 margin: 0 8px 0 6px;
    489                 font-size: 0.8rem;
    490             }
    491 
    492             .search-form {
    493                 display: none;
     464
     465                @extend .button-primary;
     466                // Match search field
     467                line-height: var(--wp--custom--button--typography--line-height);
     468                padding-inline: var(--wp--custom--form--padding--inline);
     469                padding-block: var(--wp--custom--form--padding--block);
    494470            }
    495471
     
    497473
    498474                .create-topic,
    499                 > span {
    500                     display: block;
     475                .search-form,
     476                .search-field {
    501477                    width: 100%;
    502                 }
    503 
    504                 > span {
    505                     margin: 3px 0;
    506478                }
    507479            }
Note: See TracChangeset for help on using the changeset viewer.