WordPress.org

Make WordPress Core

Changeset 42019


Ignore:
Timestamp:
10/25/2017 02:16:39 AM (20 months ago)
Author:
davidakennedy
Message:

Bundled Themes: Make sure new gallery widgets look good in themes

Twenty Ten: Reduces image size and removes image borders for galleries in widget areas.
Twenty Eleven: Reduces image size and removes image borders for galleries in widget areas.
Twenty Twelve: Reduces image size for some gallery sizes in widget areas.
Twenty Thirteen: Ensure proper clearing for images, hide captions for some gallery column combos and ensure good display for galleries in widget areas.
Twenty Fourteen: Ensure proper clearing for images and hide captions for some gallery column combos for galleries in widget areas.
Twenty Seventeen: Hide captions for some gallery column combos for galleries in widget areas.

Props joyously, williampatton, davidakennedy, melchoyce, crunnells.

Fixes #41969.

Location:
trunk/src/wp-content/themes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/style.css

    r41757 r42019  
    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----------------------------------------------- */
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r41756 r42019  
    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}
     
    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}
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r42004 r42019  
    25832583}
    25842584
    2585 /* widget markup */
     2585/* Widget markup */
    25862586
    25872587.widget .post-date,
     
    27852785.widget_calendar tfoot td {
    27862786    border: 0;
     2787}
     2788
     2789/* Gallery widget */
     2790
     2791.gallery-columns-5 .gallery-caption,
     2792.gallery-columns-6 .gallery-caption,
     2793.gallery-columns-7 .gallery-caption,
     2794.gallery-columns-8 .gallery-caption,
     2795.gallery-columns-9 .gallery-caption {
     2796    display: none;
    27872797}
    27882798
  • trunk/src/wp-content/themes/twentyten/style.css

    r41756 r42019  
    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 {
  • trunk/src/wp-content/themes/twentythirteen/style.css

    r41756 r42019  
    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}
     
    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}
     
    25942610    display: inline-block;
    25952611    padding: 0;
     2612}
     2613
     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);
    25962629}
    25972630
  • trunk/src/wp-content/themes/twentytwelve/style.css

    r41757 r42019  
    14661466}
    14671467
     1468.widget-area .gallery-columns-2.gallery-size-full .gallery-icon img,
     1469.widget-area .gallery-columns-3.gallery-size-full .gallery-icon img,
     1470.widget-area .gallery-columns-4.gallery-size-full .gallery-icon img,
     1471.widget-area .gallery-columns-5.gallery-size-full .gallery-icon img,
     1472.widget-area .gallery-columns-6 .gallery-icon img,
     1473.widget-area .gallery-columns-7 .gallery-icon img,
     1474.widget-area .gallery-columns-8 .gallery-icon img,
     1475.widget-area .gallery-columns-9 .gallery-icon img {
     1476    height: auto;
     1477    max-width: 80%;
     1478}
     1479
    14681480/* =Plugins
    14691481----------------------------------------------- */
Note: See TracChangeset for help on using the changeset viewer.