The Media object represents a set of nested CSS blocks with a condition defined by a media query.
$media = $this->Css->Media();
The class inheritance for the object.
The configuration parameters for the template.
Name | Type | Default | Description |
---|---|---|---|
type | string | all | Defines the CSS media type to use. |
The properties affecting object behavior.
Property | Value | Description |
---|---|---|
Allow parent | true | Determines if the object can have a parent. |
Allow children | true | Determines if the object can have children. |
Allow events | false | Determines if events can be added to the object. |
Limit parent | Defines the allowed parents for the object, or any if none specified. | |
Limit children | CssRule | Defines the allowed children for the object, or any if none specified. |
None.