-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcss.js
69 lines (47 loc) · 1.25 KB
/
css.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const _ = require('lodash')
var root = {}
const _copyProp = function(o, s, prop, defaultVal) {
let propVal = _.get(s, prop, defaultVal)
if (propVal) {
_.set(o, prop, propVal)
}
}
const _initObj = function(o, s) {
return _copyProp({}, s, 'type')
}
const atCharSet = function(source) {
var obj = _initObj(source, t)
_copyProp(obj, source, 'rule')
_.set(obj, 'value', getVal(t.value))
}
const mediaQueries = function(source, t) {
}
const mediaQuery = function(source, t) {
if ('expressions' in o) {
}
}
const mediaQueryExpression = function(source, t) {
}
const declarations = function(source, t) {
_.forEach(source, (o) => {
})
}
const declaration = = function(source, t) {
var object = {}
_copyProp(object, source, 'type', 'UNKNOWN')
_copyProp(object, source, 'property', 'UNKNOWN')
_copyProp(object, source, 'type', 'UNKNOWN')
}
const demensions = function(source, t) {
}
const demension = function(source, t) {
}
const _function = function(source, t) {
var object = {}
_copyProp(object, source, 'type', 'UNKNOWN')
_copyProp(object, source, 'name')
_.set(object,
'parameters',
_.map(_.get(source, 'parameters', []), (o) => o.fullQuailfied || o.value)
)
}