Rename pin utilities to top/right/bottom/left/inset
This commit is contained in:
parent
eba4600c01
commit
1940e31b12
3 changed files with 88 additions and 88 deletions
|
|
@ -2,24 +2,24 @@ export default function() {
|
|||
return function({ addUtilities, config }) {
|
||||
addUtilities(
|
||||
{
|
||||
'.pin-none': {
|
||||
'.inset-auto': {
|
||||
top: 'auto',
|
||||
right: 'auto',
|
||||
bottom: 'auto',
|
||||
left: 'auto',
|
||||
},
|
||||
'.pin': {
|
||||
'.inset-0': {
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
},
|
||||
'.pin-y': { top: 0, bottom: 0 },
|
||||
'.pin-x': { right: 0, left: 0 },
|
||||
'.pin-t': { top: 0 },
|
||||
'.pin-r': { right: 0 },
|
||||
'.pin-b': { bottom: 0 },
|
||||
'.pin-l': { left: 0 },
|
||||
'.inset-y-0': { top: 0, bottom: 0 },
|
||||
'.inset-x-0': { right: 0, left: 0 },
|
||||
'.top-0': { top: 0 },
|
||||
'.right-0': { right: 0 },
|
||||
'.bottom-0': { bottom: 0 },
|
||||
'.left-0': { left: 0 },
|
||||
},
|
||||
config('variants.inset')
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue