We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4645e7b commit 73b57efCopy full SHA for 73b57ef
src/index.js
@@ -23,8 +23,6 @@ const aspectRatio = plugin(
23
position: 'relative',
24
paddingBottom: `calc(var(--aspect-h) / var(--aspect-w) * 100%)`,
25
},
26
- },
27
- {
28
[childSelectors]: {
29
position: 'absolute',
30
height: '100%',
@@ -34,6 +32,19 @@ const aspectRatio = plugin(
34
32
bottom: '0',
35
33
left: '0',
36
+ '.aspect-none': {
+ position: 'static',
37
+ paddingBottom: '0',
38
+ },
39
+ '.aspect-none > *': {
40
41
+ height: 'auto',
42
+ width: 'auto',
43
+ top: 'auto',
44
+ right: 'auto',
45
+ bottom: 'auto',
46
+ left: 'auto',
47
48
49
Object.entries(values).map(([key, value]) => {
50
return {
0 commit comments