mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Make listStyleType customizable
This commit is contained in:
parent
137159aaa9
commit
7b8ebc525e
@ -329,5 +329,8 @@ module.exports = function() {
|
||||
'0': 0,
|
||||
default: 1,
|
||||
},
|
||||
listStyleType: {
|
||||
none: 'none',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,12 +1,18 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
export default function() {
|
||||
return function({ addUtilities, config }) {
|
||||
addUtilities(
|
||||
{
|
||||
'.list-none': {
|
||||
'list-style-type': 'none',
|
||||
},
|
||||
},
|
||||
config('variants.listStyleType')
|
||||
return function({ addUtilities, e, config }) {
|
||||
const utilities = _.fromPairs(
|
||||
_.map(config('theme.listStyleType'), (value, modifier) => {
|
||||
return [
|
||||
`.${e(`list-${modifier}`)}`,
|
||||
{
|
||||
'list-style-type': value,
|
||||
},
|
||||
]
|
||||
})
|
||||
)
|
||||
|
||||
addUtilities(utilities, config('variants.listStyleType'))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user