source: frontend/node_modules/cssstyle/lib/properties/fontWeight.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 505 bytes
Line 
1'use strict';
2
3var valid_weights = [
4 'normal',
5 'bold',
6 'bolder',
7 'lighter',
8 '100',
9 '200',
10 '300',
11 '400',
12 '500',
13 '600',
14 '700',
15 '800',
16 '900',
17 'inherit',
18];
19
20module.exports.isValid = function isValid(v) {
21 return valid_weights.indexOf(v.toLowerCase()) !== -1;
22};
23
24module.exports.definition = {
25 set: function(v) {
26 this._setProperty('font-weight', v);
27 },
28 get: function() {
29 return this.getPropertyValue('font-weight');
30 },
31 enumerable: true,
32 configurable: true,
33};
Note: See TracBrowser for help on using the repository browser.