Skip to content

Commit 6899a49

Browse files
committed
Add pin-none utility, remove width/height from pin
1 parent 45eff65 commit 6899a49

File tree

2 files changed

+41
-12
lines changed

2 files changed

+41
-12
lines changed

__tests__/fixtures/tailwind-output.css

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3413,6 +3413,13 @@ button,
34133413
position: relative;
34143414
}
34153415

3416+
.pin-none {
3417+
top: auto;
3418+
right: auto;
3419+
bottom: auto;
3420+
left: auto;
3421+
}
3422+
34163423
.pin-t {
34173424
top: 0;
34183425
}
@@ -3444,8 +3451,6 @@ button,
34443451
right: 0;
34453452
bottom: 0;
34463453
left: 0;
3447-
width: 100%;
3448-
height: 100%;
34493454
}
34503455

34513456
.resize-none {
@@ -7252,6 +7257,13 @@ button,
72527257
position: relative;
72537258
}
72547259

7260+
.sm\:pin-none {
7261+
top: auto;
7262+
right: auto;
7263+
bottom: auto;
7264+
left: auto;
7265+
}
7266+
72557267
.sm\:pin-t {
72567268
top: 0;
72577269
}
@@ -7283,8 +7295,6 @@ button,
72837295
right: 0;
72847296
bottom: 0;
72857297
left: 0;
7286-
width: 100%;
7287-
height: 100%;
72887298
}
72897299

72907300
.sm\:resize-none {
@@ -11092,6 +11102,13 @@ button,
1109211102
position: relative;
1109311103
}
1109411104

11105+
.md\:pin-none {
11106+
top: auto;
11107+
right: auto;
11108+
bottom: auto;
11109+
left: auto;
11110+
}
11111+
1109511112
.md\:pin-t {
1109611113
top: 0;
1109711114
}
@@ -11123,8 +11140,6 @@ button,
1112311140
right: 0;
1112411141
bottom: 0;
1112511142
left: 0;
11126-
width: 100%;
11127-
height: 100%;
1112811143
}
1112911144

1113011145
.md\:resize-none {
@@ -14932,6 +14947,13 @@ button,
1493214947
position: relative;
1493314948
}
1493414949

14950+
.lg\:pin-none {
14951+
top: auto;
14952+
right: auto;
14953+
bottom: auto;
14954+
left: auto;
14955+
}
14956+
1493514957
.lg\:pin-t {
1493614958
top: 0;
1493714959
}
@@ -14963,8 +14985,6 @@ button,
1496314985
right: 0;
1496414986
bottom: 0;
1496514987
left: 0;
14966-
width: 100%;
14967-
height: 100%;
1496814988
}
1496914989

1497014990
.lg\:resize-none {
@@ -18772,6 +18792,13 @@ button,
1877218792
position: relative;
1877318793
}
1877418794

18795+
.xl\:pin-none {
18796+
top: auto;
18797+
right: auto;
18798+
bottom: auto;
18799+
left: auto;
18800+
}
18801+
1877518802
.xl\:pin-t {
1877618803
top: 0;
1877718804
}
@@ -18803,8 +18830,6 @@ button,
1880318830
right: 0;
1880418831
bottom: 0;
1880518832
left: 0;
18806-
width: 100%;
18807-
height: 100%;
1880818833
}
1880918834

1881018835
.xl\:resize-none {

src/generators/position.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export default function() {
66
fixed: { position: 'fixed' },
77
absolute: { position: 'absolute' },
88
relative: { position: 'relative' },
9+
'pin-none': {
10+
top: 'auto',
11+
right: 'auto',
12+
bottom: 'auto',
13+
left: 'auto',
14+
},
915
'pin-t': { top: 0 },
1016
'pin-r': { right: 0 },
1117
'pin-b': { bottom: 0 },
@@ -17,8 +23,6 @@ export default function() {
1723
right: 0,
1824
bottom: 0,
1925
left: 0,
20-
width: '100%',
21-
height: '100%',
2226
},
2327
})
2428
}

0 commit comments

Comments
 (0)