mobify / stencil

DEPRECIATED - The latest Stencil development is currently taking place in the Adaptive.js repo.
MIT License
4 stars 0 forks source link

Ratio docs #92

Closed avelinet closed 9 years ago

avelinet commented 9 years ago

Status: Ready to merge

Reviewers: @kpeatt @jeffkamo @ry5n

jeffkamo commented 9 years ago

Other than my comment, +1

ry5n commented 9 years ago

We should probably link to some background on the technique and some use cases:

Could also expand the description, maybe something like this:

Fluid-width element with an intrinsic width/height ratio. Can also be used to fit make video content fit the width of its container. Also works well for featured areas with small and predictable text content – for example, a hero block with a background image and (maybe) a title.

Ratio is square by default and ships with 4 × 3 and 16 × 9 ratios as modifier classes. Create custom ratios by defining additional modifiers.

ry5n commented 9 years ago

Once the above comments are addressed, +1 from me.

jeffkamo commented 9 years ago

Comments have been addressed. Ready to merge!