Making WordPress.org


Ignore:
Timestamp:
09/27/2017 09:27:52 PM (9 years ago)
Author:
obenland
Message:

Main: Improve mobile styles for blog

Includes a clever way to avoid having the posts navigation wrap on two lines.

See #2861.

File:
1 edited

Legend:

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

    r5945 r5969  
    44        .page-numbers {
    55                background-color: #f9f9f9;
     6                cursor: hand;
     7                display: inline-block;
    68                min-width: 2em;
    79                padding: 8px;
    8                 display: inline-block;
    9                 cursor: hand;
    1010
    1111                &.next,
    1212                &.prev,
    1313                &.dots {
     14                        background: none;
     15                        font-size: 0.9em;
    1416                        width: auto;
    15                         font-size: 0.9em;
    16                         background: none;
    1717                }
    1818                &.dots {
    1919                        cursor: inherit;
    2020                }
     21
     22                @media screen and (max-width: $ms-breakpoint) {
     23                        &.prev,
     24                        &.next {
     25                                font-size: 0;
     26                                min-width: initial;
     27                                padding: 0;
     28                        }
     29
     30                        &.prev:before,
     31                        &.next:after {
     32                                background-color: #f9f9f9;
     33                                display: inline-block;
     34                                font-size: ms( 0 );
     35                                line-height: 1.5;
     36                                min-width: 2em;
     37                                padding: 8px;
     38                        }
     39
     40                        &.prev:before {
     41                                content: '\2039'; /* ‹ */
     42                        }
     43
     44                        &.next:after {
     45                                content: '\203A'; /* › */
     46                        }
     47                }
    2148        }
    2249        span.page-numbers {
     50                background-color: #f7f7f7;
    2351                font-weight: bold;
    24                 background-color: #f7f7f7;
    2552        }
    2653}
Note: See TracChangeset for help on using the changeset viewer.