Aspect Ratios

Aspect Ratios

Maintain aspect ratios of elements or embeds.

:choco-info: Reference Bootstrap

Choco-theme respects all Bootstrap Ratio documentation.

Aspect Ratios

1x1
4x3
16x9
21x9
700x506
1200x630

Sass Map

Add to the map below to generate additional aspect ratios. This map is found in choco-theme/scss/variables/_maps.scss.

$aspect-ratios-custom: (
    "700x506": calc(506 / 700 * 100%),
    "1200x630": calc(630 / 1200 * 100%)
);