We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3315e commit 9812ae7Copy full SHA for 9812ae7
tailwind.config.js
@@ -47,5 +47,25 @@ module.exports = {
47
variants: {
48
margin: ['responsive', 'last']
49
},
50
- plugins: []
+ plugins: [
51
+ function ({ addUtilities }) {
52
+ const newUtilities = {
53
+ '.pin-c-x': {
54
+ left: '50%',
55
+ transform: 'translateX(-50%)'
56
+ },
57
+ '.pin-c-y': {
58
+ top: '50%',
59
+ transform: 'translateY(-50%)'
60
61
+ '.pin-c': {
62
63
64
+ transform: 'translate3d(-50%, -50%, 0)'
65
+ }
66
67
+
68
+ addUtilities(newUtilities)
69
70
+ ]
71
}
0 commit comments