mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
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,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…
x
Reference in New Issue
Block a user