main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 5 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
718 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.fontWeight = void 0;
|
---|
4 | var parser_1 = require("../syntax/parser");
|
---|
5 | exports.fontWeight = {
|
---|
6 | name: 'font-weight',
|
---|
7 | initialValue: 'normal',
|
---|
8 | type: 0 /* VALUE */,
|
---|
9 | prefix: false,
|
---|
10 | parse: function (_context, token) {
|
---|
11 | if (parser_1.isNumberToken(token)) {
|
---|
12 | return token.number;
|
---|
13 | }
|
---|
14 | if (parser_1.isIdentToken(token)) {
|
---|
15 | switch (token.value) {
|
---|
16 | case 'bold':
|
---|
17 | return 700;
|
---|
18 | case 'normal':
|
---|
19 | default:
|
---|
20 | return 400;
|
---|
21 | }
|
---|
22 | }
|
---|
23 | return 400;
|
---|
24 | }
|
---|
25 | };
|
---|
26 | //# sourceMappingURL=font-weight.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.