rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,518 lines (1,517 loc) • 651 kB
JSON
{
"type": "Program",
"start": 0,
"end": 3104,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 95,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"name": "Component"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 26,
"end": 43,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 43
}
},
"value": "../../core/bane",
"rawValue": "../../core/bane",
"raw": "\"../../core/bane\""
}
},
{
"type": "ImportDeclaration",
"start": 45,
"end": 84,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 39
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 52,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 52,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 13
}
},
"name": "$clamp"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 64,
"end": 83,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 38
}
},
"value": "clamp-js/clamp.js",
"rawValue": "clamp-js/clamp.js",
"raw": "\"clamp-js/clamp.js\""
}
},
{
"type": "ImportDeclaration",
"start": 85,
"end": 127,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 92,
"end": 96,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 92,
"end": 96,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 11
}
},
"name": "Tabs"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 102,
"end": 126,
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 41
}
},
"value": "../tabs/tabs_component",
"rawValue": "../tabs/tabs_component",
"raw": "\"../tabs/tabs_component\""
}
},
{
"type": "ImportDeclaration",
"start": 128,
"end": 151,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 23
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 135,
"end": 136,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 8
}
},
"local": {
"type": "Identifier",
"start": 135,
"end": 136,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 8
}
},
"name": "$"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 142,
"end": 150,
"loc": {
"start": {
"line": 4,
"column": 14
},
"end": {
"line": 4,
"column": 22
}
},
"value": "jquery",
"rawValue": "jquery",
"raw": "\"jquery\""
}
},
{
"type": "ImportDeclaration",
"start": 153,
"end": 179,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 26
}
},
"specifiers": [],
"source": {
"type": "Literal",
"start": 160,
"end": 178,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 25
}
},
"value": "./_articles.scss",
"rawValue": "./_articles.scss",
"raw": "\"./_articles.scss\""
}
},
{
"type": "Identifier",
"start": 181,
"end": 3068,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 92,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 187,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 23
}
},
"name": "ArticlesComponent"
},
"superClass": {
"type": "Identifier",
"start": 213,
"end": 222,
"loc": {
"start": {
"line": 8,
"column": 32
},
"end": {
"line": 8,
"column": 41
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 223,
"end": 3068,
"loc": {
"start": {
"line": 8,
"column": 42
},
"end": {
"line": 92,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 227,
"end": 952,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 28,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 227,
"end": 237,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 237,
"end": 952,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 28,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 238,
"end": 245,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 20
}
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 247,
"end": 952,
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 28,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 253,
"end": 295,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 46
}
},
"expression": {
"type": "AssignmentExpression",
"start": 253,
"end": 294,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 45
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 253,
"end": 266,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 253,
"end": 257,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 258,
"end": 266,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 17
}
},
"name": "articles"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 269,
"end": 294,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 282,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 269,
"end": 277,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 269,
"end": 273,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 274,
"end": 277,
"loc": {
"start": {
"line": 10,
"column": 25
},
"end": {
"line": 10,
"column": 28
}
},
"name": "$el"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 278,
"end": 282,
"loc": {
"start": {
"line": 10,
"column": 29
},
"end": {
"line": 10,
"column": 33
}
},
"name": "find"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 283,
"end": 293,
"loc": {
"start": {
"line": 10,
"column": 34
},
"end": {
"line": 10,
"column": 44
}
},
"value": ".article",
"rawValue": ".article",
"raw": "\".article\""
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 300,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 300,
"end": 337,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 300,
"end": 313,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 300,
"end": 304,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 305,
"end": 313,
"loc": {
"start": {
"line": 11,
"column": 9
},
"end": {
"line": 11,
"column": 17
}
},
"name": "maxLines"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 316,
"end": 337,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 41
}
},
"left": {
"type": "MemberExpression",
"start": 316,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 316,
"end": 323,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 27
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 324,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 36
}
},
"name": "maxLines"
},
"computed": false
},
"operator": "||",
"right": {
"type": "Literal",
"start": 336,
"end": 337,
"loc": {
"start": {
"line": 11,
"column": 40
},
"end": {
"line": 11,
"column": 41
}
},
"value": 6,
"rawValue": 6,
"raw": "6"
}
}
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Retrieved via getComputedStyle($0)[\"line-height\"] ish",
"start": 343,
"end": 399,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 60
}
},
"range": [
343,
399
]
}
]
},
{
"type": "ExpressionStatement",
"start": 404,
"end": 482,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 82
}
},
"expression": {
"type": "AssignmentExpression",
"start": 404,
"end": 481,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 81
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 404,
"end": 424,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 404,
"end": 408,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 409,
"end": 424,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 24
}
},
"name": "titleLineHeight"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "LogicalExpression",
"start": 427,
"end": 481,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 81
}
},
"left": {
"type": "MemberExpression",
"start": 427,
"end": 450,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 50
}
},
"object": {
"type": "Identifier",
"start": 427,
"end": 434,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 34
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 435,
"end": 450,
"loc": {
"start": {
"line": 13,
"column": 35
},
"end": {
"line": 13,
"column": 50
}
},
"name": "titleLineHeight"
},
"computed": false
},
"operator": "||",
"right": {
"type": "ObjectExpression",
"start": 454,
"end": 481,
"loc": {
"start": {
"line": 13,
"column": 54
},
"end": {
"line": 13,
"column": 81
}
},
"properties": [
{
"type": "Property",
"start": 456,
"end": 467,
"loc": {
"start": {
"line": 13,
"column": 56
},
"end": {
"line": 13,
"column": 67
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 456,
"end": 463,
"loc": {
"start": {
"line": 13,
"column": 56
},
"end": {
"line": 13,
"column": 63
}
},
"name": "desktop"
},
"value": {
"type": "Literal",
"start": 465,
"end": 467,
"loc": {
"start": {
"line": 13,
"column": 65
},
"end": {
"line": 13,
"column": 67
}
},
"value": 35,
"rawValue": 35,
"raw": "35"
},
"kind": "init"
},
{
"type": "Property",
"start": 469,
"end": 479,
"loc": {
"start": {
"line": 13,
"column": 69
},
"end": {
"line": 13,
"column": 79
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 469,
"end": 475,
"loc": {
"start": {
"line": 13,
"column": 69
},
"end": {
"line": 13,
"column": 75
}
},
"name": "mobile"
},
"value": {
"type": "Literal",
"start": 477,
"end": 479,
"loc": {
"start": {
"line": 13,
"column": 77
},
"end": {
"line": 13,
"column": 79
}
},
"value": 23,
"rawValue": 23,
"raw": "23"
},
"kind": "init"
}
]
}
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Retrieved via getComputedStyle($0)[\"line-height\"] ish",
"start": 343,
"end": 399,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 60
}
},
"range": [
343,
399
]
}
]
},
{
"type": "ExpressionStatement",
"start": 487,
"end": 565,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 82
}
},
"expression": {
"type": "AssignmentExpression",
"start": 487,
"end": 564,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 81
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 487,
"end": 507,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 487,
"end": 491,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 492,
"end": 507,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 24
}
},
"name": "blurbLineHeight"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 510,
"end": 564,
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 81
}
},
"left": {
"type": "MemberExpression",
"start": 510,
"end": 533,
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 50
}
},
"object": {
"type": "Identifier",
"start": 510,
"end": 517,
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 34
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 518,
"end": 533,
"loc": {
"start": {
"line": 14,
"column": 35
},
"end": {
"line": 14,
"column": 50
}
},
"name": "blurbLineHeight"
},
"computed": false
},
"operator": "||",
"right": {
"type": "ObjectExpression",
"start": 537,
"end": 564,
"loc": {
"start": {
"line": 14,
"column": 54
},
"end": {
"line": 14,
"column": 81
}
},
"properties": [
{
"type": "Property",
"start": 539,
"end": 550,
"loc": {
"start": {
"line": 14,
"column": 56
},
"end": {
"line": 14,
"column": 67
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 539,
"end": 546,
"loc": {
"start": {
"line": 14,
"column": 56
},
"end": {
"line": 14,
"column": 63
}
},
"name": "desktop"
},
"value": {
"type": "Literal",
"start": 548,
"end": 550,
"loc": {
"start": {
"line": 14,
"column": 65
},
"end": {
"line": 14,
"column": 67
}
},
"value": 27,
"rawValue": 27,
"raw": "27"
},
"kind": "init"
},
{
"type": "Property",
"start": 552,
"end": 562,
"loc": {
"start": {
"line": 14,
"column": 69
},
"end": {
"line": 14,
"column": 79
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 552,
"end": 558,
"loc": {
"start": {
"line": 14,
"column": 69
},
"end": {
"line": 14,
"column": 75
}
},
"name": "mobile"
},
"value": {
"type": "Literal",
"start": 560,
"end": 562,
"loc": {
"start": {
"line": 14,
"column": 77
},
"end": {
"line": 14,
"column": 79
}
},
"value": 18,
"rawValue": 18,
"raw": "18"
},
"kind": "init"
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"start": 570,
"end": 616,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 50
}
},
"expression": {
"type": "AssignmentExpression",
"start": 570,
"end": 615,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 49
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 570,
"end": 586,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 570,
"end": 574,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 575,
"end": 586,
"loc": {
"start": {
"line": 15,
"column": 9
},
"end": {
"line": 15,
"column": 20
}
},
"name": "mobileWidth"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 589,
"end": 615,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 49
}
},
"left": {
"type": "MemberExpression",
"start": 589,
"end": 608,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 589,
"end": 596,
"loc": {