style Dashboard
This commit is contained in:
22
node_modules/csso/lib/compressor/compress/property/font-weight.js
generated
vendored
Executable file
22
node_modules/csso/lib/compressor/compress/property/font-weight.js
generated
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
module.exports = function compressFontWeight(node) {
|
||||
var value = node.sequence.head.data;
|
||||
|
||||
if (value.type === 'Identifier') {
|
||||
switch (value.name) {
|
||||
case 'normal':
|
||||
node.sequence.head.data = {
|
||||
type: 'Number',
|
||||
info: value.info,
|
||||
value: '400'
|
||||
};
|
||||
break;
|
||||
case 'bold':
|
||||
node.sequence.head.data = {
|
||||
type: 'Number',
|
||||
info: value.info,
|
||||
value: '700'
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user