Header menu logo Sutil

CssMedia Type

Helpers for basic CSS media queries

Static members

Static member Description

CssMedia.custom (condition, rules)

Full Usage: CssMedia.custom (condition, rules)

Parameters:
Returns: StyleSheetDefinition

Create a @media CSS rule for a custom condition and stylesheet

condition : string
rules : StyleSheetDefinition list
Returns: StyleSheetDefinition

CssMedia.maxWidth (maxWidth, rules)

Full Usage: CssMedia.maxWidth (maxWidth, rules)

Parameters:
Returns: StyleSheetDefinition

Create a @media (max-width: <nnn>) CSS rule

maxWidth : ICssUnit
rules : StyleSheetDefinition list
Returns: StyleSheetDefinition

CssMedia.minWidth (minWidth, rules)

Full Usage: CssMedia.minWidth (minWidth, rules)

Parameters:
Returns: StyleSheetDefinition

Create a @media (min-width: <nnn>) CSS rule

minWidth : ICssUnit
rules : StyleSheetDefinition list
Returns: StyleSheetDefinition

Type something to start searching.