Make WordPress Core

Changeset 49823


Ignore:
Timestamp:
12/17/2020 02:03:37 PM (6 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Prevent <iframe> embeds from being too narrow.

This fixes an issue where <iframe> embeds were being pushed to the side of the screen and compressed to the point of being unusable.

Props helen, mukesh27, poena, thorlentz.
Fixes #52004.

Location:
trunk/src/wp-content/themes/twentytwentyone
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/css/ie.css

    r49801 r49823  
    58675867        max-width: 100% !important;
    58685868}
    5869 @media only screen and (min-width: 482px) {
    5870 
    5871         .entry-content > iframe[style] {
    5872                 max-width: 30px !important;
    5873         }
    5874 }
    58755869
    58765870.entry-footer {
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/06-components/entry.scss

    r49574 r49823  
    5454                margin: var(--global--spacing-vertical) 0 !important;
    5555                max-width: 100% !important;
    56 
    57                 @include media(mobile) {
    58                         max-width: var(--global--spacing-vertical) !important;
    59                 }
    6056        }
    6157
  • trunk/src/wp-content/themes/twentytwentyone/style-rtl.css

    r49801 r49823  
    41364136        max-width: 100% !important;
    41374137}
    4138 @media only screen and (min-width: 482px) {
    4139 
    4140         .entry-content > iframe[style] {
    4141                 max-width: var(--global--spacing-vertical) !important;
    4142         }
    4143 }
    41444138
    41454139.entry-footer {
  • trunk/src/wp-content/themes/twentytwentyone/style.css

    r49801 r49823  
    41564156        max-width: 100% !important;
    41574157}
    4158 @media only screen and (min-width: 482px) {
    4159 
    4160         .entry-content > iframe[style] {
    4161                 max-width: var(--global--spacing-vertical) !important;
    4162         }
    4163 }
    41644158
    41654159.entry-footer {
Note: See TracChangeset for help on using the changeset viewer.