Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 73b57ef

Browse files
committedNov 6, 2020
Add .aspect-none
1 parent 4645e7b commit 73b57ef

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed
 

Diff for: ‎src/index.js

+13-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ const aspectRatio = plugin(
2323
position: 'relative',
2424
paddingBottom: `calc(var(--aspect-h) / var(--aspect-w) * 100%)`,
2525
},
26-
},
27-
{
2826
[childSelectors]: {
2927
position: 'absolute',
3028
height: '100%',
@@ -34,6 +32,19 @@ const aspectRatio = plugin(
3432
bottom: '0',
3533
left: '0',
3634
},
35+
'.aspect-none': {
36+
position: 'static',
37+
paddingBottom: '0',
38+
},
39+
'.aspect-none > *': {
40+
position: 'static',
41+
height: 'auto',
42+
width: 'auto',
43+
top: 'auto',
44+
right: 'auto',
45+
bottom: 'auto',
46+
left: 'auto',
47+
},
3748
},
3849
Object.entries(values).map(([key, value]) => {
3950
return {

0 commit comments

Comments
 (0)
Please sign in to comment.