/* * Prevent cases of amp-img converted from img to appear with stretching by using object-fit to scale. * See . * Also use object-fit:contain in worst case scenario when we can't figure out dimensions for an image. */ amp-img.amp-wp-enforced-sizes[layout="intrinsic"] > img, .amp-wp-unknown-size > img { object-fit: contain; } amp-fit-text blockquote, amp-fit-text h1, amp-fit-text h2, amp-fit-text h3, amp-fit-text h4, amp-fit-text h5, amp-fit-text h6 { font-size: inherit; } /** * Override a style rule in Twenty Sixteen and Twenty Seventeen. * It set display:none for audio elements. * This selector is the same, though it adds body and uses amp-audio instead of audio. */ body amp-audio:not([controls]) { display: inline-block; height: auto; } /* * Style the default template messages for submit-success, submit-error, and submitting. These elements are inserted * by the form sanitizer when a POST form lacks the action-xhr attribute. */ .amp-wp-default-form-message > p { margin: 1em 0; padding: 0.5em; } .amp-wp-default-form-message[submitting] > p, .amp-wp-default-form-message[submit-success] > p.amp-wp-form-redirecting { font-style: italic; } .amp-wp-default-form-message[submit-success] > p:not(.amp-wp-form-redirecting) { border: solid 1px #008000; background-color: #90ee90; color: #000; } .amp-wp-default-form-message[submit-error] > p { border: solid 1px #f00; background-color: #ffb6c1; color: #000; } /* Prevent showing empty success message in the case of an AMP-Redirect-To response header. */ .amp-wp-default-form-message[submit-success] > p:empty { display: none; }