Make WordPress Core


Ignore:
Timestamp:
12/14/2018 02:32:33 AM (8 years ago)
Author:
pento
Message:

Default Themes: Import Twenty Nineteen from the 5.0 branch.

Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.

Fixes #45424.

Location:
trunk
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentynineteen/sass/media/_galleries.scss

    r43808 r44149  
    11.gallery {
    22        display: flex;
     3        flex-flow: row wrap;
     4        justify-content: center;
    35        margin-bottom: calc(1.5 * #{$size__spacing-unit});
    46}
     
    68.gallery-item {
    79        display: inline-block;
    8         margin-right: $size__spacing-unit;
    9         margin-bottom: $size__spacing-unit;
     10        margin-right: 16px;
     11        margin-bottom: 16px;
    1012        text-align: center;
    1113        vertical-align: top;
     
    1517        @for $i from 2 through 9 {
    1618                .gallery-columns-#{$i} & {
    17                         max-width: calc( ( 12 / #{$i} ) * (100% / 12) );
     19                        max-width: calc((100% - 16px * #{ $i - 1 }) / #{ $i });
     20
     21                        &:nth-of-type(#{$i}n+#{$i}) {
     22                                margin-right: 0;
     23                        }
    1824                }
    1925        }
    2026
    2127        &:last-of-type {
    22                 margin-right: 0;
     28                padding-right: 0;
    2329        }
    2430}
Note: See TracChangeset for help on using the changeset viewer.