clay-0.15.0: CSS preprocessor as embedded Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Clay.Media

Synopsis

Media types.

all :: MediaType Source #

Suitable for all devices.

screen :: MediaType Source #

Intended primarily for screen-based devices.

print :: MediaType Source #

Intended primarily for printed material or in a print layout.

Deprecated.

These media types were deprecated by Media Queries 4.

Geometrical features.

Aspect ratio features.

Color related features.

Resolution related features.

Resolution value type.

data Resolution Source #

Instances

Instances details
Other Resolution Source # 
Instance details

Defined in Clay.Media

Val Resolution Source # 
Instance details

Defined in Clay.Media

Preference related features.

prefersColorScheme :: ColorScheme -> Feature Source #

Feature detecting whether user prefers light or dark color scheme.

Preference related values.

data ColorScheme Source #

A color scheme preferred by a user.

Instances

Instances details
Other ColorScheme Source # 
Instance details

Defined in Clay.Media

Val ColorScheme Source # 
Instance details

Defined in Clay.Media

light :: ColorScheme Source #

User indicates that they prefer a light theme with their interface, or that they have not indicated a preference.

dark :: ColorScheme Source #

User indicates that they prefer a dark theme with their interface.