WordPress.org

Make WordPress Core

Ticket #41969: 41969.1.patch

File 41969.1.patch, 5.8 KB (added by davidakennedy, 20 months ago)

Work off of previous patch and add fixes for Twenty Ten, Eleven and Fourteen.

  • src/wp-content/themes/twentyeleven/style.css

     
    19711971        display: inline-block;
    19721972}
    19731973
     1974/* Helps galleries in widget areas look presentable in most cases. */
     1975#page .widget-area .gallery-columns-2 img,
     1976#page .widget-area .gallery-columns-3 img,
     1977#page .widget-area .gallery-columns-4 img,
     1978#page .widget-area .gallery-columns-5 img,
     1979#page .widget-area .gallery-columns-6 img,
     1980#page .widget-area .gallery-columns-7 img,
     1981#page .widget-area .gallery-columns-8 img,
     1982#page .widget-area .gallery-columns-9 img {
     1983        border: none;
     1984        max-width: 90%;
     1985        width: auto;
     1986}
     1987
    19741988/* =Comments
    19751989----------------------------------------------- */
    19761990
  • src/wp-content/themes/twentyfourteen/style.css

     
    16121612.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1),
    16131613.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1),
    16141614.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1),
    1615 .gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) {
     1615.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1),
     1616.widget-area .gallery-columns-2 figure.gallery-item:nth-of-type(2n+1),
     1617.widget-area .gallery-columns-3 figure.gallery-item:nth-of-type(3n+1),
     1618.widget-area .gallery-columns-4 figure.gallery-item:nth-of-type(4n+1),
     1619.widget-area .gallery-columns-5 figure.gallery-item:nth-of-type(5n+1),
     1620.widget-area .gallery-columns-6 figure.gallery-item:nth-of-type(6n+1),
     1621.widget-area .gallery-columns-7 figure.gallery-item:nth-of-type(7n+1),
     1622.widget-area .gallery-columns-8 figure.gallery-item:nth-of-type(8n+1),
     1623.widget-area .gallery-columns-9 figure.gallery-item:nth-of-type(9n+1) {
    16161624        clear: left;
    16171625}
    16181626
     
    16511659
    16521660.gallery-columns-7 .gallery-caption,
    16531661.gallery-columns-8 .gallery-caption,
    1654 .gallery-columns-9 .gallery-caption {
     1662.gallery-columns-9 .gallery-caption,
     1663.widget-area .gallery-columns-2 .gallery-caption,
     1664.widget-area .gallery-columns-3 .gallery-caption,
     1665.widget-area .gallery-columns-4 .gallery-caption,
     1666.widget-area .gallery-columns-5 .gallery-caption,
     1667.widget-area .gallery-columns-6 .gallery-caption,
     1668.widget-area .gallery-columns-7 .gallery-caption,
     1669.widget-area .gallery-columns-8 .gallery-caption,
     1670.widget-area .gallery-columns-9 .gallery-caption {
    16551671        display: none;
    16561672}
    16571673
  • src/wp-content/themes/twentyten/style.css

     
    12461246        display: inline-block;
    12471247}
    12481248
     1249/* Helps galleries in widget areas look presentable in most cases. */
     1250.widget-area .gallery-columns-2 img,
     1251.widget-area .gallery-columns-3 img,
     1252.widget-area .gallery-columns-4 img,
     1253.widget-area .gallery-columns-5 img,
     1254.widget-area .gallery-columns-6 img,
     1255.widget-area .gallery-columns-7 img,
     1256.widget-area .gallery-columns-8 img,
     1257.widget-area .gallery-columns-9 img {
     1258        border: none;
     1259        max-width: 90%;
     1260        width: auto;
     1261}
     1262
    12491263/* Main sidebars */
    12501264#main .widget-area ul {
    12511265        margin-left: 0;
  • src/wp-content/themes/twentythirteen/style.css

     
    13451345.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1),
    13461346.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1),
    13471347.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1),
    1348 .gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) {
     1348.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1),
     1349.widget-area .gallery-columns-2 figure.gallery-item:nth-of-type(2n+1),
     1350.widget-area .gallery-columns-3 figure.gallery-item:nth-of-type(3n+1),
     1351.widget-area .gallery-columns-4 figure.gallery-item:nth-of-type(4n+1),
     1352.widget-area .gallery-columns-5 figure.gallery-item:nth-of-type(5n+1),
     1353.widget-area .gallery-columns-6 figure.gallery-item:nth-of-type(6n+1),
     1354.widget-area .gallery-columns-7 figure.gallery-item:nth-of-type(7n+1),
     1355.widget-area .gallery-columns-8 figure.gallery-item:nth-of-type(8n+1),
     1356.widget-area .gallery-columns-9 figure.gallery-item:nth-of-type(9n+1) {
    13491357        clear: left;
    13501358}
    13511359
     
    13851393
    13861394.gallery-columns-7 .gallery-caption,
    13871395.gallery-columns-8 .gallery-caption,
    1388 .gallery-columns-9 .gallery-caption {
     1396.gallery-columns-9 .gallery-caption,
     1397.widget-area .gallery-columns-2 .gallery-caption,
     1398.widget-area .gallery-columns-3 .gallery-caption,
     1399.widget-area .gallery-columns-4 .gallery-caption,
     1400.widget-area .gallery-columns-5 .gallery-caption,
     1401.widget-area .gallery-columns-6 .gallery-caption,
     1402.widget-area .gallery-columns-7 .gallery-caption,
     1403.widget-area .gallery-columns-8 .gallery-caption,
     1404.widget-area .gallery-columns-9 .gallery-caption {
    13891405        display: none;
    13901406}
    13911407
     
    25952611        padding: 0;
    25962612}
    25972613
     2614/* Gallery Widget */
     2615.widget .gallery-columns-1 .gallery-item {
     2616        max-width: 100%;
     2617}
     2618
     2619.widget .gallery-columns-2 .gallery-item {
     2620        max-width: 49%;
     2621        max-width: -webkit-calc(50% - 4px);
     2622        max-width:         calc(50% - 4px);
     2623}
     2624
     2625.widget .gallery-columns-3 .gallery-item {
     2626        max-width: 22%;
     2627        max-width: -webkit-calc(33% - 4px);
     2628        max-width:         calc(33% - 4px);
     2629}
     2630
    25982631/**
    25992632 * 7.0 Footer
    26002633 * ----------------------------------------------------------------------------