WordPress.org

Making WordPress.org


Ignore:
Timestamp:
08/23/2016 10:35:28 PM (3 years ago)
Author:
obenland
Message:

Plugin Directory: Restructuring Sass and React client.

Merges Sass files into the React component structure. This allows styles to be
bundled with their React components. In an ideal world that would extend to
their PHP fallback templates as well, but it remains to be seen how feasible
that is.
Also introduces Sass Globbing and Pixrem pre-processing to automatically import
Sass files and add pixel fallbacks for rem values.

See #1719.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/styles/site/primary/plugin/section/_index.scss

    r3832 r3847  
    1313
    1414    h1, h2, h3 {
    15         @include font-size( ms-unitless( ms(0) ) );
     15        font-size: ms( 0 );
    1616        font-weight: 600;
    17         letter-spacing: 0.16px;
    1817        letter-spacing: 0.01rem;
    1918        text-transform: uppercase;
     
    2524
    2625    h4, h5, h6 {
    27         @include font-size( ms-unitless( ms(-2) ) );
     26        font-size: ms( -2 );
    2827        font-weight: 600;
    29         letter-spacing: 0.8px;
    3028        letter-spacing: 0.05rem;
    3129        text-transform: uppercase;
     
    3735
    3836    h2:first-of-type {
    39         @include font-size( ms-unitless( ms(2) ) );
     37        font-size: ms( 2 );
    4038
    4139        // Override wp4.css.
     
    5957    color: $color__link;
    6058    cursor: pointer;
    61     @include font-size( ms-unitless( ms(-2) ) );
    62     margin-top: 8px;
     59    font-size: ms( -2 );
    6360    margin-top: 0.5rem;
    6461    position: relative;
Note: See TracChangeset for help on using the changeset viewer.