Make WordPress Core

Changeset 25736


Ignore:
Timestamp:
10/08/2013 09:36:46 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: fill browser height to 100% for views with short content. Accounts for footer widgets, in which case the height isn't set to 100% so that the widgets remain visible. Props wycks and taupecat, fixes #25389.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r25735 r25736  
    460460 * 2. Index views.
    461461 * 3. Full-width content layout.
     462 * 4. Presence of footer widgets.
    462463 *
    463464 * @param array $classes A list of existing body class values.
     
    477478        $classes[] = 'full-width';
    478479
     480    if ( is_active_sidebar( 'sidebar-4' ) )
     481        $classes[] = 'footer-widgets';
     482
    479483    return $classes;
    480484}
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r25735 r25736  
    25182518        line-height: 1.6363636363;
    25192519        margin: 0 0 0 -100%;
     2520        min-height: 100vh;
    25202521        padding: 0 27px;
    25212522        width: 128px;
     2523    }
     2524    body.footer-widgets #secondary {
     2525        min-height: 0;
    25222526    }
    25232527    .site-description {
Note: See TracChangeset for help on using the changeset viewer.