Skip to content

Commit

Permalink
Add .aspect-none
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Nov 6, 2020
1 parent 4645e7b commit 73b57ef
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const aspectRatio = plugin(
position: 'relative',
paddingBottom: `calc(var(--aspect-h) / var(--aspect-w) * 100%)`,
},
},
{
[childSelectors]: {
position: 'absolute',
height: '100%',
Expand All @@ -34,6 +32,19 @@ const aspectRatio = plugin(
bottom: '0',
left: '0',
},
'.aspect-none': {
position: 'static',
paddingBottom: '0',
},
'.aspect-none > *': {
position: 'static',
height: 'auto',
width: 'auto',
top: 'auto',
right: 'auto',
bottom: 'auto',
left: 'auto',
},
},
Object.entries(values).map(([key, value]) => {
return {
Expand Down

0 comments on commit 73b57ef

Please sign in to comment.