Load different images sizes depending on the screen size

Use responsive images `<picture>` to load different sizes
This commit is contained in:
2020-02-14 12:38:48 +01:00
parent 450de171e6
commit 3badc0c1d6
4 changed files with 21 additions and 15 deletions

View File

@@ -43,6 +43,7 @@
// Alignment (left or right for list view)
.align {
position: relative;
width: 100%;
max-width: 1180px;
margin: 0;
padding: 0;
@@ -53,6 +54,8 @@
overflow: hidden;
position: relative;
z-index: 2;
display: block;
width: 100%;
border-radius: 0;
box-shadow: 0 8px 18px rgba(#715E4E, 0.2);
user-select: none;
@@ -87,6 +90,7 @@
a {
display: block;
width: 100%;
text-decoration: none;
// Hover

View File

@@ -182,6 +182,9 @@
// Image
&__image {
&--img {
border-radius: 8px;
}
&--number {
font-size: rem(96px);
bottom: -88px;