Aspect ratio on uses image and media query sizes.

This commit is contained in:
Bradley Shellnut 2023-04-11 12:04:42 -07:00
parent 602d31d8ce
commit 49ba7ecd2d

View file

@ -41,7 +41,7 @@
</div>
<div class="uses-block-styles">
<div class="uses-image">
<Img class="portfolio-image better-blur" style="width: 100%; max-height: 480px;" src={desktop} alt="Clean desk with Samsung monitor and Ducky Keyboard" loading="eager" />
<Img class="uses-image better-blur" src={desktop} alt="Clean desk with Samsung monitor and Ducky Keyboard" loading="eager" />
</div>
<h2>Hardware & Accessories</h2>
<ul>
@ -494,16 +494,6 @@
Bitwarden
</a>
</li>
<li>
<a
target="_blank"
aria-label="Element Messaging App"
href="https://element.io/"
rel="noreferrer"
>
Element (Riot.im)
</a>
</li>
<li>
<a
target="_blank"
@ -594,4 +584,15 @@
}
}
}
:global(.uses-image) {
margin-left: auto;
margin-right: auto;
aspect-ratio: 4 / 3;
max-height: 480px;
@media(max-width: 800px) {
max-height: 350px;
}
}
</style>