mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
31 lines
492 B
CSS
31 lines
492 B
CSS
.root {
|
|
display: block;
|
|
position: relative;
|
|
width: 200px;
|
|
margin-bottom: 70px;
|
|
}
|
|
|
|
/* Firefox doesn't support image aspect ratio inside flexbox */
|
|
.aspectWrapper {
|
|
padding-bottom: 66.6667%; /* 3:2 Aspect Ratio */
|
|
}
|
|
|
|
.rootForImageWithAspectRatio {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.rootForSizes {
|
|
display: block;
|
|
position: relative;
|
|
width: 200px;
|
|
margin-bottom: 70px;
|
|
|
|
@media (min-width: 601px) {
|
|
width: 400px;
|
|
}
|
|
}
|