/// /// Forty by HTML5 UP /// html5up.net | @ajlkn /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) /// /* Image */ .image { border: 0; display: inline-block; position: relative; img { display: block; } &.shadow { img { @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold)); @media screen and (prefers-color-scheme: dark) { @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold)); } } } &.left, &.right { max-width: 30%; img { width: 100%; } } &.left { float: left; margin: 0 1.5em 0.5em 1em; top: 0.25em; } &.right { float: right; margin: 0 1em 0.5em 1.5em; top: 0.25em; } &.fit { display: block; margin: 0 0 _size(element-margin) 0; width: 100%; img { width: 100%; } } &.main { display: block; margin: (_size(element-margin) * 1.25) 0; width: 100%; img { width: 100%; } @include breakpoint('<=small') { margin: (_size(element-margin) * 0.75) 0; } } &.w-full { width: 100%; } &.h-auto { height: auto; } } .image.signature { &.left, &.right { max-width: 60%; } @media screen and (prefers-color-scheme: dark) { filter: invert(84%) sepia(12%) saturate(486%) hue-rotate(197deg) brightness(84%) contrast(87%); } } .circle > img { @include circle(200px, "block"); @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold)); @media screen and (prefers-color-scheme: dark) { @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold)); } } video { display: block !important; &.left { float: left; margin: 0 1.5em 1.25em 0; top: 0.25em; } &.right { float: right; margin: 0 0 1.25em 1.5em; top: 0.25em; } &.fit { display: block; margin: 0 0 _size(element-margin) 0; width: 100%; } } .animate-fade { animation: fadeIn 750ms ease-in-out; } figure { figcaption { p { text-align: center; } } } // signature inside single articles div#post-signature { clear: both; overflow: hidden; width: 100%; margin: 0; div#signature { margin: 0; padding: 0; img.signature { margin: 0; margin-right: 4em; width: 350px; } } } .section-blog { .spotlights { .image { max-height: 20em; overflow: hidden; } } }