Use more human names for text style utilities
This commit is contained in:
parent
c7c658940b
commit
6319770198
1 changed files with 10 additions and 3 deletions
|
|
@ -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'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue