amp-img CSS
- amp-img CSS
from Weston Ruter
[data-product-id="winner"] {
top: 54%;
left: 46%;
content: "winner";
}
.wp-block-image {
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
max-width: 100%;
}
.wp-block-image amp-img {
max-width: 100%;
}
.wp-block-image.aligncenter {
text-align: center;
}
.wp-block-image .aligncenter,
.wp-block-image.is-resized {
display: table;
margin-left: 0;
margin-right: 0;
}
.wp-block-image .aligncenter > figcaption,
.wp-block-image.is-resized > figcaption {
caption-side: bottom;
display: table-caption;
}
.wp-block-image .aligncenter {
margin-left: auto;
margin-right: auto;
}
.wp-block-image figcaption {
color: #555d66;
font-size: 13px;
margin-bottom: 1em;
margin-top: 0.5em;
text-align: center;
}
@font-face {
font-family: "NonBreakingSpaceOverride";
src: url("data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMoAA0AAAAACDQAAALTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCahEICjx3CywAATYCJANUBCAFhiEHgWwbXQfILgpsY+rQRRARwyAs6uL7pxzYhxEE+32b3aeHmifR6tklkS9hiZA0ewkqGRJE+H7/+6378ASViK/PGeavqJyOzsceKi1s3BCiQsiOdn1r/RBgIJYEgCUhbm/8/8/h4saPssnTNkkiWUBrTRtjmQSajw3Ui3pZ3LYDPD+XG2C3JA/yKAS8/rU5eNfuGqRf4eNNgV4YAlIIgxglEkWe6FYpq10+wi3g+/nUgvgPFczNrz/RsTgVm/zfbPuHZlsuQECxuyqBcQwKFBjFgKO8AqP4bAN9tFJtnM9xPcbNjeXS/x1wY/xU52f5W/X1+9cnH4YwKIaoRRAkUkj/YlAAeF/624foiIDBgBmgQBeGAyhBljUPZUm/l2dTvmpqcBDUOHdbPZWd8JsBAsGr4w8/EDn82/bUPx4eh0YNrQTBuHO2FjQEAGBwK0DeI37DpQVqdERS4gZBhpeUhWCfLFz7J99aEBgsJCHvUGAdAPp4IADDCAPCEFMGpMZ9AQpTfQtQGhLbGVBZFV8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YAAR6AEMAAAABAAAAANXtRbgAAAAA2AhRFAAAAADYCNuG")
format("woff");
}
html {
line-height: 1.15;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
a {
background-color: transparent;
}
amp-img {
border-style: none;
}
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
[hidden] {
display: none;
}
html {
font-size: 22px;
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #111;
font-family: "NonBreakingSpaceOverride", "Hoefler Text",
"Baskerville Old Face", Garamond, "Times New Roman", serif;
font-weight: 400;
font-size: 1em;
line-height: 1.8;
margin: 0;
text-rendering: optimizeLegibility;
}
.entry-footer,
h1 {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
}
h1 {
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.2;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1 {
font-size: 2.25em;
}
@media only screen and (min-width: 768px) {
h1 {
font-size: 2.8125em;
}
}
.entry-title {
font-size: 1.6875em;
}
@media only screen and (min-width: 768px) {
.entry-title {
font-size: 2.25em;
}
}
.entry-footer,
amp-img:after {
font-size: 0.71111em;
}
.entry-title {
hyphens: auto;
word-break: break-word;
}
@media only screen and (min-width: 768px) {
.entry-title {
hyphens: none;
}
}
a {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:focus {
text-decoration: underline;
}
html {
box-sizing: border-box;
}
::-moz-selection {
background-color: #bfdcea;
}
::selection {
background-color: #bfdcea;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
background-color: #fff;
}
a {
transition: color 110ms ease-in-out;
color: #0073aa;
}
a:hover,
a:active {
color: #005177;
outline: 0;
text-decoration: none;
}
a:focus {
outline: thin;
outline-style: dotted;
text-decoration: underline;
}
h1 {
clear: both;
margin: 1rem 0;
}
h1:not(.site-title):before {
background: #767676;
content: " ";
display: block;
height: 2px;
margin: 1rem 0;
width: 1em;
}
amp-img {
height: auto;
max-width: 100%;
position: relative;
}
figure {
margin: 0;
}
a {
transition: color 110ms ease-in-out;
color: #0073aa;
}
a:visited {
color: #0073aa;
}
a:hover,
a:active {
color: #005177;
outline: 0;
text-decoration: none;
}
a:focus {
outline: thin dotted;
text-decoration: underline;
}
@keyframes slide_in_right {
100% {
transform: translateX(0%);
}
}
@keyframes fade_in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
width: 1px;
}
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip-path: none;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000;
}
:root:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_)
.screen-reader-text:focus {
clip: auto;
}
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
.entry-content:before,
.entry-content:after {
content: "";
display: table;
table-layout: fixed;
}
.entry-content:after {
clear: both;
}
:root:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_)
.screen-reader-text {
position: absolute;
word-wrap: normal;
}
.entry {
margin-top: calc(6 * 1rem);
}
.entry:first-of-type {
margin-top: 0;
}
.entry .entry-header {
margin: calc(3 * 1rem) 1rem 1rem;
position: relative;
}
@media only screen and (min-width: 768px) {
.entry .entry-header {
margin: calc(3 * 1rem) calc(10% + 60px) 1rem;
}
}
.entry .entry-title {
margin: 0;
}
.entry .entry-title:before {
background: #767676;
content: " ";
display: block;
height: 2px;
margin: 1rem 0;
width: 1em;
}
.entry .entry-title a {
color: inherit;
}
.entry .entry-title a:hover {
color: #4a4a4a;
}
.entry .entry-footer {
color: #767676;
font-weight: 500;
}
.entry .entry-footer > span {
margin-right: 1rem;
display: inline-block;
}
.entry .entry-footer > span:last-child {
margin-right: 0;
}
.entry .entry-footer a {
transition: color 110ms ease-in-out;
color: currentColor;
}
.entry .entry-footer a:hover {
text-decoration: none;
color: #0073aa;
}
.entry .entry-footer {
margin: calc(2 * 1rem) 1rem 1rem;
}
@media only screen and (min-width: 768px) {
.entry .entry-footer {
margin: 1rem calc(10% + 60px) calc(3 * 1rem);
max-width: calc(8 * (100vw / 12) - 28px);
}
}
@media only screen and (min-width: 768px) {
.entry .entry-footer {
max-width: calc(6 * (100vw / 12) - 28px);
}
}
.entry .entry-content {
max-width: calc(100% - (2 * 1rem));
margin: 0 1rem;
}
@media only screen and (min-width: 768px) {
.entry .entry-content {
max-width: 80%;
margin: 0 10%;
padding: 0 60px;
}
}
.entry .entry-content a {
text-decoration: underline;
}
.entry .entry-content a:hover {
text-decoration: none;
}
.entry .entry-content > * {
margin: 32px 0;
max-width: 100%;
}
@media only screen and (min-width: 768px) {
.entry .entry-content > * {
max-width: calc(8 * (100vw / 12) - 28px);
}
}
@media only screen and (min-width: 1168px) {
.entry .entry-content > * {
max-width: calc(6 * (100vw / 12) - 28px);
}
}
@media only screen and (min-width: 768px) {
.entry .entry-content > * {
margin: 32px 0;
}
}
.entry .entry-content > * > *:first-child {
margin-top: 0;
}
.entry .entry-content > * > *:last-child {
margin-bottom: 0;
}
.entry .entry-content > *.aligncenter {
margin-left: auto;
margin-right: auto;
}
@media only screen and (min-width: 768px) {
.entry .entry-content > *.aligncenter {
max-width: calc(8 * (100vw / 12) - 28px);
}
}
@media only screen and (min-width: 1168px) {
.entry .entry-content > *.aligncenter {
max-width: calc(6 * (100vw / 12) - 28px);
}
}
@media only screen and (min-width: 768px) {
.entry .entry-content > *.aligncenter {
margin-left: 0;
margin-right: 0;
}
}
.entry .entry-content .entry-content,
.entry .entry-content .entry {
margin: inherit;
max-width: inherit;
padding: inherit;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .entry-content,
.entry .entry-content .entry {
margin: inherit;
max-width: inherit;
padding: inherit;
}
}
.entry .entry-content .wp-block-image {
max-width: 100%;
}
.entry .entry-content .wp-block-image amp-img {
display: block;
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-image .aligncenter {
max-width: calc(8 * (100vw / 12) - 28px);
}
}
@media only screen and (min-width: 1168px) {
.entry .entry-content .wp-block-image .aligncenter {
max-width: calc(6 * (100vw / 12) - 28px);
}
}
@media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-image .aligncenter {
margin: 0;
width: calc(8 * (100vw / 12) - 28px);
}
.entry .entry-content .wp-block-image .aligncenter amp-img {
margin: 0 auto;
}
}
@media only screen and (min-width: 1168px) {
.entry .entry-content .wp-block-image .aligncenter {
width: calc(6 * (100vw / 12) - 28px);
}
.entry .entry-content .wp-block-image .aligncenter amp-img {
margin: 0 auto;
}
}
.entry .entry-content .wp-block-image figcaption {
font-size: 0.71111em;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
line-height: 1.6;
margin: 0;
padding: 0.5rem;
text-align: center;
}
figure.aligncenter {
text-align: center;
}
@media print {
@media print {
@page {
margin: 2cm;
}
.entry {
margin-top: 1em;
}
.entry .entry-header {
margin: 0;
}
body {
font: 13pt Georgia, "Times New Roman", Times, serif;
line-height: 1.3;
color: #000;
}
:root:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) body {
background: #fff;
}
h1 {
font-size: 24pt;
}
a {
page-break-inside: avoid;
}
h1 {
page-break-after: avoid;
page-break-inside: avoid;
}
amp-img {
page-break-inside: avoid;
page-break-after: avoid;
}
a:link,
a:visited,
a {
background: transparent;
font-weight: bold;
text-decoration: underline;
text-align: left;
}
a {
page-break-inside: avoid;
}
a[href^="http"]:after {
content: " < " attr(href) "> ";
}
a:after > amp-img {
content: "";
}
article a[href^="#"]:after {
content: "";
}
a:not(:local-link):after {
content: " < " attr(href) "> ";
}
.entry .entry-title:before,
.entry-footer {
display: none;
}
}
}