Change aspect ratio to use the calc function

This commit is contained in:
Hannu Lyytikainen 2017-10-31 10:19:42 +02:00
parent b7b2cc66a2
commit 48cb1ef4f5

View file

@ -85,10 +85,10 @@
/* An image wrapper that defines the images aspect ratio */
.aspectWrapper {
padding-bottom: 46.1538%; /* 13:6 Aspect Ratio */
padding-bottom: calc(6 / 13 * 100%); /* 13:6 Aspect Ratio */
@media (--viewportMedium) {
padding-bottom: 66.6667%; /* 3:2 Aspect Ratio */
padding-bottom: calc(2 / 3 * 100%); /* 3:2 Aspect Ratio */
}
}