Files

628 lines
15 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 234
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 60
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 6
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 6
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 6
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1,
"end": 6
},
"name": {
"type": "Ident",
"span": {
"start": 2,
"end": 6
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 7,
"end": 60
},
"name": {
"type": "PreservedToken",
"span": {
"start": 7,
"end": 8
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 13,
"end": 31
},
"name": {
"type": "DashedIdent",
"span": {
"start": 13,
"end": 25
},
"value": "main-color",
"raw": "--main-color"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 27,
"end": 31
},
"token": {
"Hash": {
"is_id": false,
"value": "06c",
"raw": "06c"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 37,
"end": 57
},
"name": {
"type": "DashedIdent",
"span": {
"start": 37,
"end": 51
},
"value": "accent-color",
"raw": "--accent-color"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 53,
"end": 57
},
"token": {
"Hash": {
"is_id": false,
"value": "006",
"raw": "006"
}
}
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 62,
"end": 92
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 62,
"end": 66
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 62,
"end": 66
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 62,
"end": 66
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 62,
"end": 66
},
"text": {
"type": "Ident",
"span": {
"start": 63,
"end": 66
},
"value": "foo",
"raw": "foo"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 67,
"end": 92
},
"name": {
"type": "PreservedToken",
"span": {
"start": 67,
"end": 68
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 73,
"end": 89
},
"name": {
"type": "DashedIdent",
"span": {
"start": 73,
"end": 83
},
"value": "fg-color",
"raw": "--fg-color"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 85,
"end": 89
},
"token": {
"Ident": {
"value": "blue",
"raw": "blue"
}
}
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 94,
"end": 135
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 94,
"end": 101
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 94,
"end": 101
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 94,
"end": 98
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "IdSelector",
"span": {
"start": 94,
"end": 98
},
"text": {
"type": "Ident",
"span": {
"start": 94,
"end": 98
},
"value": "foo",
"raw": "foo"
}
}
]
},
{
"type": "Combinator",
"span": {
"start": 98,
"end": 99
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 99,
"end": 101
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 99,
"end": 101
},
"name": {
"type": "WqName",
"span": {
"start": 99,
"end": 101
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 99,
"end": 101
},
"value": "h1",
"raw": "h1"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 102,
"end": 135
},
"name": {
"type": "PreservedToken",
"span": {
"start": 102,
"end": 103
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 108,
"end": 132
},
"name": {
"type": "Ident",
"span": {
"start": 108,
"end": 113
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 115,
"end": 132
},
"name": {
"type": "Ident",
"span": {
"start": 115,
"end": 118
},
"value": "var",
"raw": "var"
},
"value": [
{
"type": "DashedIdent",
"span": {
"start": 119,
"end": 131
},
"value": "main-color",
"raw": "--main-color"
}
]
}
],
"important": null
}
]
}
},
{
"type": "AtRule",
"span": {
"start": 137,
"end": 149
},
"name": {
"type": "DashedIdent",
"span": {
"start": 138,
"end": 146
},
"value": "custom",
"raw": "--custom"
},
"prelude": {
"type": "ListOfComponentValues",
"span": {
"start": 146,
"end": 147
},
"children": [
{
"type": "PreservedToken",
"span": {
"start": 146,
"end": 147
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 147,
"end": 149
},
"name": {
"type": "PreservedToken",
"span": {
"start": 147,
"end": 148
},
"token": "LBrace"
},
"value": []
}
},
{
"type": "AtRule",
"span": {
"start": 150,
"end": 171
},
"name": {
"type": "DashedIdent",
"span": {
"start": 151,
"end": 168
},
"value": "library1-custom",
"raw": "--library1-custom"
},
"prelude": {
"type": "ListOfComponentValues",
"span": {
"start": 168,
"end": 169
},
"children": [
{
"type": "PreservedToken",
"span": {
"start": 168,
"end": 169
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 169,
"end": 171
},
"name": {
"type": "PreservedToken",
"span": {
"start": 169,
"end": 170
},
"token": "LBrace"
},
"value": []
}
},
{
"type": "QualifiedRule",
"span": {
"start": 173,
"end": 233
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 173,
"end": 179
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 173,
"end": 179
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 173,
"end": 179
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 173,
"end": 179
},
"text": {
"type": "Ident",
"span": {
"start": 174,
"end": 179
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 180,
"end": 233
},
"name": {
"type": "PreservedToken",
"span": {
"start": 180,
"end": 181
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 186,
"end": 230
},
"name": {
"type": "DashedIdent",
"span": {
"start": 186,
"end": 203
},
"value": "vendor-property",
"raw": "--vendor-property"
},
"value": [
{
"type": "Function",
"span": {
"start": 205,
"end": 230
},
"name": {
"type": "DashedIdent",
"span": {
"start": 205,
"end": 222
},
"value": "vendor-function",
"raw": "--vendor-function"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 223,
"end": 229
},
"token": {
"String": {
"value": "test",
"raw": "\"test\""
}
}
}
]
}
],
"important": null
}
]
}
}
]
}