Making WordPress.org


Ignore:
Timestamp:
10/04/2017 06:38:13 PM (9 years ago)
Author:
obenland
Message:

Main: Introduce cube grid to manage small sceens

Adds a comfortable way to manage page structure and widget arrangement on small
screens.

See #2861.

File:
1 edited

Legend:

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

    r5939 r5998  
    99        padding: 0;
    1010
    11         @media (min-width: 737px) {
     11        @include breakpoint( $ms-breakpoint ) {
    1212                font-size: 18px;
    1313        }
     
    5151                margin: 0 auto;
    5252                max-width: 50rem;
    53                 padding: 3.05176rem 1.5625rem;
     53                padding: ms( 10 ) ms( 4 );
    5454
    5555                &:last-of-type {
     
    103103                                width: 50%;
    104104
    105                                 @media (max-width: 739px) {
     105                        @include breakpoint( 739px ) {
    106106                                        &:nth-child(n+7) {
    107107                                                border-bottom: none;
     
    112112                                }
    113113
    114                                 @media (min-width: 740px) {
     114                                @include breakpoint( 740px ) {
    115115                                        width: 25%;
    116116                                        height: 200px;
     
    182182                text-align: center;
    183183
    184                 @media (min-width: 737px) {
     184                @include breakpoint( $ms-breakpoint ) {
    185185                        font-size: .8rem;
    186186                        margin: 4rem 0 2rem;
     
    269269
    270270
    271         @media (min-width: 67rem) {
     271        @include breakpoint( 67rem ) {
    272272                margin: 1rem auto 0;
    273273                max-width: 50rem;
     
    277277#home-below {
    278278        margin-bottom: 14px;
     279        padding: 0 ms( 1 );
     280
     281
     282        @include breakpoint( sm ) {
     283                display: block;
     284
     285                .col-2 {
     286                        display: inline-block;
     287                        vertical-align: top;
     288                        width: calc( 50% - #{$grid-gutter} );
     289                }
     290        }
    279291
    280292        h4 {
Note: See TracChangeset for help on using the changeset viewer.