Making WordPress.org


Ignore:
Timestamp:
03/23/2020 05:54:51 AM (7 years ago)
Author:
dd32
Message:

Support: Better styling for pagination on smaller screen widths.

Props dufresnesteven, kjellr.
See #2822.

File:
1 edited

Legend:

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

    r9594 r9620  
    1212        overflow: inherit;
    1313}
     14
     15$paginationBreakPoint: "600px";
    1416
    1517.three-up { //3-columns section
    … …  
    473475                .create-topic {
    474476                        font-size: 0.8rem;
    475                         float: left;
     477
     478                        @media (min-width: $paginationBreakPoint) {
     479                                float: left;
     480                        }
    476481
    477482                        &::before {
    … …  
    488493                        float: none;
    489494                        width: auto;
     495                        display: flex;
     496                        flex-direction: column;
     497
     498                        @media (min-width: $paginationBreakPoint) {
     499                                float: right;
     500                                display: inline-block;
     501                        }
    490502
    491503                        .page-numbers {
    … …  
    498510                                margin-left: -1px;
    499511                                opacity: 1;
     512                                flex: 1;
     513
     514                                @media (min-width: $paginationBreakPoint) {
     515                                        flex: inherit;
     516                                }
    500517
    501518                                &:not(.current):not(.dots):hover {
    … …  
    529546                        border: 1px solid #ddd;
    530547                }
     548        }
     549
     550        #bbpress-forums .bbp-pagination-links {
     551                display: flex;
     552                text-align: center;
     553                flex-wrap: wrap;
    531554        }
    532555
    … …  
    737760        padding-top: 1rem;
    738761        border-top: 1px solid #eee;
     762        clear: both;
    739763}
    740764
Note: See TracChangeset for help on using the changeset viewer.