Use more human names for text style utilities

This commit is contained in:
Adam Wathan 2017-10-19 09:27:12 -04:00
parent c7c658940b
commit 6319770198

View file

@ -3,17 +3,24 @@ import defineClasses from '../util/defineClasses'
export default function() {
return defineClasses({
'italic': { 'font-style': 'italic' },
'normal': { 'font-style': 'normal' },
'not-italic': { 'font-style': 'normal' },
'uppercase': { 'text-transform': 'uppercase' },
'lowercase': { 'text-transform': 'lowercase' },
'capitalize': { 'text-transform': 'capitalize' },
'transform-none': { 'text-transform': 'none' },
'normal-case': { 'text-transform': 'none' },
'underline': { 'text-decoration': 'underline' },
'line-through': { 'text-decoration': 'line-through' },
'decoration-none': { 'text-decoration': 'none' },
'no-underline': { 'text-decoration': 'none' },
'antialiased': {
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale'
},
'subpixel-antialiased': {
'-webkit-font-smoothing': 'auto',
'-moz-osx-font-smoothing': 'auto'
}
})
}