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

Clay.Media

Synopsis

Media types.

all :: MediaType #

Suitable for all devices.

screen :: MediaType #

Intended primarily for screen-based devices.

print :: MediaType #

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 :: Val a => a -> Feature #

minResolution :: Val a => a -> Feature #

maxResolution :: Val a => a -> Feature #

Resolution value type.

data Resolution #

Instances

Instances details
Other Resolution # 
Instance details

Defined in Clay.Media

Methods

other :: Value -> Resolution #

Val Resolution # 
Instance details

Defined in Clay.Media

Methods

value :: Resolution -> Value #

Preference related features.

prefersColorScheme :: ColorScheme -> Feature #

Feature detecting whether user prefers light or dark color scheme.

Preference related values.

data ColorScheme #

A color scheme preferred by a user.

Instances

Instances details
Other ColorScheme # 
Instance details

Defined in Clay.Media

Methods

other :: Value -> ColorScheme #

Val ColorScheme # 
Instance details

Defined in Clay.Media

Methods

value :: ColorScheme -> Value #

light :: ColorScheme #

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

dark :: ColorScheme #

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