Making WordPress.org

Changeset 7056


Ignore:
Timestamp:
04/06/2018 10:17:08 PM (8 years ago)
Author:
iandunn
Message:

WP15: Improve compatibility with IE11.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/themes/twentyseventeen-wp15/style.css

    r7044 r7056  
    140140 */
    141141@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
     142        .custom-header {
     143                min-height: 260px;
     144        }
     145
     146        .site-branding {
     147                padding: 1em 0;
     148        }
     149
    142150        .custom-logo-link img {
    143151                max-width: 150px;
     
    147155
    148156@media screen and ( min-width: 475px ) {
    149         .custom-logo-link img {
    150                 max-width: 300px;
    151                 max-height: 218px;
     157        @supports not (-ms-high-constrast: active) {
     158                .custom-logo-link img {
     159                        max-width: 300px;
     160                        max-height: 218px;
     161                }
    152162        }
    153163}
     
    225235}
    226236
     237.menu-top-menu-container {
     238        text-align: center;
     239}
     240
    227241.main-navigation.toggled-on .menu-top-menu-container {
    228242        position: absolute;
    229243        width: 100vw;
     244}
     245
     246@media screen and (min-width: 48em) {
     247        #top-menu {
     248                display: inline-block;
     249        }
     250}
     251
     252@supports ( display: grid ) {
     253        .main-navigation.toggled-on #top-menu {
     254                display: block;
     255        }
     256}
     257
     258.wp15-locale-switcher-container {
     259        text-align: center;
     260        padding-bottom: 1em;
    230261}
    231262
     
    235266                grid-row: 1;
    236267                display: grid;
     268                text-align: left;
     269                padding-bottom: 0;
    237270        }
    238271
     
    305338}
    306339
     340/*
     341 * IE <= 11 doesn't show SVG markers on the map, so treat it like a progressive enhancement.
     342 */
     343@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
     344        #wp15-events-map {
     345                display: none;
     346        }
     347}
     348
    307349@media screen and ( max-width: 48em ) {
    308350        #wp15-events-map {
     
    327369.wp15-events-list {
    328370        display: grid;
    329         grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
     371        grid-template-columns: repeat( auto-fill, minmax( 250px, 1fr ) );
    330372        grid-gap: 2em;
    331373        width: 80vw;
Note: See TracChangeset for help on using the changeset viewer.