- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
31 lines
595 B
JavaScript
31 lines
595 B
JavaScript
let Declaration = require('../declaration')
|
|
let flexSpec = require('./flex-spec')
|
|
|
|
class Flex extends Declaration {
|
|
/**
|
|
* Return property name by final spec
|
|
*/
|
|
normalize() {
|
|
return 'flex'
|
|
}
|
|
|
|
/**
|
|
* Return flex property for 2009 and 2012 specs
|
|
*/
|
|
prefixed(prop, prefix) {
|
|
let spec
|
|
;[spec, prefix] = flexSpec(prefix)
|
|
if (spec === 2009) {
|
|
return prefix + 'box-flex'
|
|
}
|
|
if (spec === 2012) {
|
|
return prefix + 'flex-positive'
|
|
}
|
|
return super.prefixed(prop, prefix)
|
|
}
|
|
}
|
|
|
|
Flex.names = ['flex-grow', 'flex-positive']
|
|
|
|
module.exports = Flex
|