Making WordPress.org


Ignore:
Timestamp:
03/05/2024 02:45:07 AM (2 years ago)
Author:
adamwood
Message:

Support Theme: Redesign iteration 1

Replace wp4 with wporg-parent-2021
Redesign forums homepage
Reskin templates

File:
1 edited

Legend:

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

    r13177 r13272  
    55
    66/* Many of these override the styles from the plugin */
    7 
    8 section {
    9     padding: 4rem 0;
    10 }
    117
    128#bbpress-forums {
     
    4642            background: transparent;
    4743            position: relative;
    48             border-bottom: 1px solid #eee;
     44            border-bottom: 1px solid var(--wp--custom--color--border);
    4945            margin: 1rem 0;
    5046
     
    7167
    7268                &:hover {
    73                     color: $color__link;
     69                    color: var(--wp--custom--link--color--text);
    7470                }
    7571
     
    106102
    107103        .entry-content,
    108         .entry-meta {
    109             padding: 0;
    110 
    111             @media (min-width: 568px) {
    112                 padding: 0 ms(4);
    113             }
    114         }
    115 
     104        .entry-footer {
     105            margin-bottom: var(--wp--preset--spacing--40);
     106        }
     107
     108        .entry-content,
     109        .entry-meta,
    116110        .entry-header .entry-title,
    117111        .entry-content .container {
     
    119113        }
    120114
    121         > .entry-content,
    122         > article {
    123             max-width: 48rem;
     115        .wp-block-group > .entry-content,
     116        .wp-block-group > article {
    124117
    125118            @media screen and ( min-width: $ms-breakpoint ) {
     
    149142
    150143    main#main {
    151         margin-top: 2rem;
    152         padding: 0 10px 10px;
    153144
    154145        @extend .clear;
     
    173164
    174165            a {
    175                 color: $color__wp-blue;
     166                color: var(--wp--preset--color--blueberry-1);
    176167                text-decoration: underline;
    177168
    178169                &:hover {
    179                     color: $color__wp-blue;
     170                    color: var(--wp--preset--color--blueberry-1);
    180171                }
    181172            }
     
    203194                font-size: ms(-3);
    204195            }
     196
     197            ul.topic a {
     198                text-decoration: none;
     199            }
    205200        }
    206201
     
    218213        }
    219214
     215        .bbp-topic-header .bbp-meta .bbp-topic-permalink,
     216        .bbp-reply-header .bbp-meta .bbp-reply-permalink {
     217            color: var(--wp--custom--link--color--text);
     218        }
     219
    220220        .bbp-forums,
    221221        .bbp-topics {
    222             border: 1px solid #eee;
     222            border: 1px solid var(--wp--custom--color--border);
    223223
    224224            > .bbp-header {
    225                 background: $color__wp-blue;
    226                 color: #fff;
     225                background: var(--wp--preset--color--white);
     226                border-top: none;
     227                font-size: var(--wp--preset--font-size--small);
    227228            }
    228229        }
     
    263264            margin: 0;
    264265            margin-right: 10px;
    265             margin-left: -11%;
     266            margin-left: -8.75%;
    266267        }
    267268
    268269        div.bbp-topic-author img.avatar {
    269             margin-left: -19%;
     270            margin-left: -15%;
    270271            margin-top: -6px;
    271272            width: 80px;
     
    275276        }
    276277
    277         @media only screen and (max-width: 1040px) {
     278        @media only screen and (max-width: 1200px) {
    278279
    279280            div.bbp-reply-author img.avatar,
     
    303304            width: 100%;
    304305            margin: 1rem 0 2rem;
    305             padding-left: 10%;
     306            padding-left: 8%;
    306307
    307308            @media screen and ( max-width: 568px ) {
     
    353354        div.bbp-topic-content {
    354355            padding: 0;
    355             margin: 0 0 0 10%;
     356            margin: 0 0 0 8%;
    356357
    357358            @media only screen and (max-width: 1040px) {
     
    408409
    409410            a {
    410                 color: #0073aa;
     411                color: var(--wp--custom--link--color--text);
    411412                text-transform: inherit;
    412413                font-size: 0.7rem;
     
    444445
    445446            /* Override bb-base/style.css */
    446             color: $color__link;
     447            color: var(--wp--custom--link--color--text);
    447448
    448449            &:hover,
     
    456457
    457458        p.wporg-bbp-topic-site-url {
    458             border-top: 1px solid #eee;
     459            border-top: 1px solid var(--wp--custom--color--border);
    459460            padding-top: 0.5rem;
    460461        }
     
    533534
    534535            .search-form {
    535                 display: inline-block;
    536                 width: 50%;
    537                 margin-bottom: 0;
     536                display: none;
    538537            }
    539538
     
    541540
    542541                .create-topic,
    543                 > span,
    544                 .search-form {
     542                > span {
    545543                    display: block;
    546544                    width: 100%;
     
    585583
    586584                &:not(.current):not(.dots):hover {
    587                     background: $color__wp-blue;
     585                    background: var(--wp--preset--color--blueberry-1);
    588586                    color: #fff;
    589587                    text-decoration: none;
    590                     border: 1px solid $color__wp-blue;
     588                    border: 1px solid var(--wp--preset--color--blueberry-1);
    591589                }
    592590
     
    598596                &.dots {
    599597                    background: #fff;
    600                     color: $color__text-main;
     598                    color: var(--wp--preset--color--charcoal-1);
    601599                }
    602600
     
    628626    #bbpress-forums ul.bbp-topics,
    629627    #bbpress-forums #bbp-user-wrapper {
    630         font-size: ms(-2);
     628        font-size: var(--wp--preset--font-size--small);
    631629    }
    632630
     
    648646    li.bbp-topic-freshness {
    649647        text-align: left;
    650     }
    651 
    652     h1 {
    653         font-size: ms(4);
    654         font-weight: 400;
    655         padding-bottom: 0;
    656         margin: 2rem 0 1rem;
    657 
    658         &.page-title {
    659             margin-top: 0;
    660             word-break: break-word;
    661         }
    662648    }
    663649
     
    834820}
    835821
     822
     823
    836824.single-forum .bbp-topic-form,
    837825.bbp-view .bbp-topic-form {
    838826    margin-top: 1rem;
    839827    padding-top: 1rem;
    840     border-top: 1px solid #eee;
     828    border-top: 1px solid var(--wp--custom--color--border);
    841829    clear: both;
    842830}
     
    951939    .themes-plugins {
    952940        margin: 0 0 4rem;
    953         border-bottom: 1px solid #eee;
     941        border-bottom: 1px solid var(--wp--custom--color--border);
    954942
    955943        p {
     
    10461034
    10471035            ul.bbp-lead-topic li.bbp-body {
    1048                 border: 1px solid #eee;
     1036                border: 1px solid var(--wp--custom--color--border);
    10491037                border-top: none;
    10501038            }
     
    10631051            ul.odd {
    10641052                background: #fff;
    1065                 border-top: 2px solid #eee;
     1053                border-top: 2px solid var(--wp--custom--color--border);
    10661054            }
    10671055
     
    10691057            .wporg-ratings {
    10701058                background-color: #fbfbfb;
    1071                 border: 1px solid #eee;
     1059                border: 1px solid var(--wp--custom--color--border);
    10721060                border-top: none;
    10731061                border-bottom: none;
     
    11271115        header {
    11281116            background: #fbfbfb;
    1129             border: 1px solid #eee;
     1117            border: 1px solid var(--wp--custom--color--border);
    11301118            border-bottom: none;
    1131             padding: 1rem 2rem 0 10%;
     1119            padding: var(--wp--preset--spacing--20) 2rem var(--wp--preset--spacing--20) 8%;
     1120
     1121            h1 {
     1122                margin-bottom: 0;
     1123            }
    11321124
    11331125            @media screen and (max-width: 568px) {
     
    12401232        }
    12411233    }
    1242 
    1243     .page-header {
    1244 
    1245         h1 {
    1246             margin-bottom: 1rem;
     1234}
     1235
     1236.bbpress #bbpress-forums #bbp-user-wrapper {
     1237    font-size: var(--wp--preset--font-size--small);
     1238}
     1239
     1240#bbpress-forums #bbp-single-user-details {
     1241
     1242    #bbp-user-avatar {
     1243
     1244        a {
     1245            display: block;
     1246        }
     1247
     1248        img.avatar {
     1249            margin-bottom: unset;
     1250        }
     1251    }
     1252
     1253    #bbp-user-navigation li {
     1254
     1255        a {
     1256            padding-left: unset;
     1257        }
     1258
     1259        &.current a {
     1260            background: unset;
     1261            opacity: unset;
     1262            font-weight: 600;
    12471263        }
    12481264    }
     
    12611277        margin-bottom: ms(0);
    12621278        padding-bottom: 10px;
    1263         border-bottom: 1px solid #eee;
     1279        border-bottom: 1px solid var(--wp--custom--color--border);
    12641280        display: flex;
    12651281        flex-direction: row-reverse;
     
    12701286            width: 35%;
    12711287            float: none;
    1272             border-top: 1px solid #eee;
     1288            border-top: 1px solid var(--wp--custom--color--border);
    12731289
    12741290            .reviews-total-count {
Note: See TracChangeset for help on using the changeset viewer.