Browse Source

Add fixedValues for some typography properties

pull/187/head
Artur Arseniev 9 years ago
parent
commit
67ddbef2e8
  1. 9
      src/style_manager/model/PropertyFactory.js

9
src/style_manager/model/PropertyFactory.js

@ -26,13 +26,20 @@ module.exports = () => ({
}
// Fixed values
switch(prop){
switch(prop) {
case 'margin-top': case 'margin-right': case 'margin-bottom': case 'margin-left':
case 'padding-top': case 'padding-right': case 'padding-bottom': case 'padding-left':
case 'width': case 'max-width': case 'min-width':
case 'height': case 'max-height': case 'min-height':
obj.fixedValues = ['initial', 'inherit', 'auto'];
break;
case 'font-size':
obj.fixedValues = ['medium', 'xx-small', 'x-small', 'small', 'large',
'x-large', 'xx-large', 'smaller', 'larger', 'length', 'initial', 'inherit'];
break;
case 'letter-spacing': case 'line-height':
obj.fixedValues = ['normal', 'initial', 'inherit'];
break;
}
// Type

Loading…
Cancel
Save