File: wp-includes/class-wp-theme-json.php
-
Applies a block style variation class to a feature selector.
-
Extracts the block name from the block metadata path.
-
Updates button width declarations to use a calc() formula for percentage values.
-
Returns the appropriate selector for a block support feature’s preset CSS variables.
-
Splits a selector list into separate selectors.
-
Checks whether a viewport breakpoint value is a safe CSS length.
-
Converts a valid viewport breakpoint size to pixels for ordering checks.
-
Sanitizes and normalizes viewport breakpoint settings.
-
Returns CSS media queries for responsive viewport style states.
-
Preserves valid typed settings from input to output based on type markers in schema.
-
Updates the text indent selector for paragraph blocks based on the textIndent setting.
-
Processes pseudo-selectors for any node (block or variation).
-
Merges two sets of spacing size presets.
-
Generates a set of spacing sizes by starting with a medium size and applying an operator with an increment value to generate the rest of the sizes outward from the medium size. The medium slug is ’50’ with the rest of the slugs being 10 apart. The generated names use t-shirt sizing.
-
Generates a selector for a block style variation.
-
Collects valid block style variations keyed by block type.
-
Remove insecure element styles within a variation or block.
-
Remove insecure styles from inner blocks and their elements.
-
Scopes the selectors for a given style node.
-
Unwraps shared block style variations.
-
Return the input schema at the root and per origin.
-
Generates style declarations for a node’s features e.g., color, border, typography etc. that have custom selectors in their related block’s metadata.
-
Replaces CSS variables with their values in place.
-
Resolves the values of CSS variables in the given styles.
-
This is used to convert the internal representation of variables to the CSS representation.
-
Given a tree, converts the internal representation of variables to the CSS representation.
-
Returns the selectors metadata for a block.
-
Generates all the element selectors for a block.
-
Prepends a sub-selector to an existing one.
-
Removes indirect properties from the given input node and sets in the given output node.