Making WordPress.org

Changeset 6993


Ignore:
Timestamp:
03/31/2018 01:00:27 AM (8 years ago)
Author:
iandunn
Message:

WP15: Format events list in columns.

Location:
sites/trunk/wp15.wordpress.net/public_html/content/themes/twentyseventeen-wp15
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/themes/twentyseventeen-wp15/page-about.php

    r6992 r6993  
    2828                                        <img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/images/confetti-divider.svg" alt="<?php esc_attr_e( 'Confetti with the WordPress logo and WP15 color scheme', 'wp15' ); ?>" />
    2929
    30                                         <p>
     30                                        <p class="wp10-nostalgia">
    3131                                                <?php printf(
    3232                                                        wp_kses_data( __( 'Check out <a href="%s">this post about the WordPress 10th anniversary</a>.', 'wp15' ) ),
  • sites/trunk/wp15.wordpress.net/public_html/content/themes/twentyseventeen-wp15/style.css

    r6988 r6993  
    138138 */
    139139.page-slug-about h1,
    140 .page-slug-about p {
     140.wp10-nostalgia {
    141141        text-align: center;
    142142}
     
    149149        position: relative;
    150150        height: 500px;
    151         width: 64vw;
     151        width: 80vw;
    152152        left: 50%;
    153153        right: 50%;
    154         margin-left: -32vw;
    155         margin-right: -32vw;
     154        margin-left: -40vw;
     155        margin-right: -40vw;
    156156        margin-top: 2em;
    157157        margin-bottom: 4em;
     
    159159}
    160160
     161@media screen and ( max-width: 48em ) {
     162        #wp15-events-map {
     163                width: 100%;
     164                margin: 2em auto 3em;
     165                left: auto;
     166                right: auto;
     167        }
     168}
     169
    161170.wp15-events-list {
     171        display: grid;
     172        grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
     173        grid-gap: 2em;
     174        width: 80vw;
     175        margin-left: calc( -1 * ( (80vw - 100%) / 2 ) );
    162176        list-style-type: none;
    163177}
    164178
    165179.wp15-events-list li {
    166         margin-bottom: 3em;
     180        margin-bottom: 1em;
    167181}
    168182
     
    171185.wp15-event-date-time {
    172186        margin-bottom: .5em;
    173         text-align: center;
    174187}
    175188
Note: See TracChangeset for help on using the changeset viewer.