Skip to content

Commit

Permalink
Provide attribution for original CSS aspect ratio trick
Browse files Browse the repository at this point in the history
  • Loading branch information
Sérgio Gomes committed Mar 2, 2017
1 parent a7dfcda commit 3a29458
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
This package provides a simple implementation of fixed aspect ratio in pure CSS.
It requires support for [CSS Custom Properties](https://www.w3.org/TR/css-variables-1/).

Original implementation adapted from
Modular implementation approach adapted from
https://sgom.es/posts/2017-02-17-css-custom-properties-as-your-api/

CSS-only aspect ratio trick adapted from
https://alistapart.com/article/creating-intrinsic-ratios-for-video


## Rationale / background

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "css-aspect-ratio",
"version": "1.0.3",
"version": "1.0.4",
"description": "Simple implementation of fixed aspect ratio in pure CSS",
"style": "css-aspect-ratio.css",
"keywords": ["css", "aspect ratio"],
Expand Down

0 comments on commit 3a29458

Please sign in to comment.