Merge pull request #875 from tailwindcss/widen-negative-value-support
Add support for negative prefixes in zIndex plugin
This commit is contained in:
commit
b5165acfdf
1 changed files with 3 additions and 2 deletions
|
|
@ -1,11 +1,12 @@
|
|||
import _ from 'lodash'
|
||||
import prefixNegativeModifiers from '../util/prefixNegativeModifiers'
|
||||
|
||||
export default function() {
|
||||
return function({ addUtilities, theme, variants }) {
|
||||
return function({ addUtilities, e, theme, variants }) {
|
||||
const utilities = _.fromPairs(
|
||||
_.map(theme('zIndex'), (value, modifier) => {
|
||||
return [
|
||||
`.z-${modifier}`,
|
||||
`.${e(prefixNegativeModifiers('z', modifier))}`,
|
||||
{
|
||||
'z-index': value,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue