Skip to content

Commit

Permalink
Create definition for pseudo-selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jul 17, 2024
1 parent 2ac04ea commit 1fab073
Showing 1 changed file with 37 additions and 56 deletions.
93 changes: 37 additions & 56 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1910,6 +1910,39 @@
}
]
},
"stylesElementsPseudoSelectorsProperties": {
"type": "object",
"properties": {
":hover": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":focus": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":active": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":visited": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":link": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":any-link": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
}
},
"stylesElementsPseudoSelectorsPropertyNames": {
"enum": [
":hover",
":focus",
":active",
":visited",
":link",
":any-link"
]
},
"stylesElementsPropertiesComplete": {
"description": "Styles defined on a per-element basis using the element's selector.",
"type": "object",
Expand All @@ -1921,26 +1954,7 @@
"$ref": "#/definitions/stylesProperties"
},
{
"properties": {
":hover": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":focus": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":active": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":visited": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":link": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":any-link": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
}
"$ref": "#/definitions/stylesElementsPseudoSelectorsProperties"
},
{
"propertyNames": {
Expand All @@ -1949,14 +1963,7 @@
"$ref": "#/definitions/stylesPropertyNames"
},
{
"enum": [
":hover",
":focus",
":active",
":visited",
":link",
":any-link"
]
"$ref": "#/definitions/stylesElementsPseudoSelectorsPropertyNames"
}
]
}
Expand All @@ -1970,26 +1977,7 @@
"$ref": "#/definitions/stylesProperties"
},
{
"properties": {
":hover": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":focus": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":active": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":visited": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":link": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":any-link": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
}
"$ref": "#/definitions/stylesElementsPseudoSelectorsProperties"
},
{
"propertyNames": {
Expand All @@ -1998,14 +1986,7 @@
"$ref": "#/definitions/stylesPropertyNames"
},
{
"enum": [
":hover",
":focus",
":active",
":visited",
":link",
":any-link"
]
"$ref": "#/definitions/stylesElementsPseudoSelectorsPropertyNames"
}
]
}
Expand Down

0 comments on commit 1fab073

Please sign in to comment.