Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- all :: MediaType
- screen :: MediaType
- print :: MediaType
- aural :: MediaType
- braille :: MediaType
- handheld :: MediaType
- projection :: MediaType
- tty :: MediaType
- tv :: MediaType
- embossed :: MediaType
- width :: Size LengthUnit -> Feature
- minWidth :: Size LengthUnit -> Feature
- maxWidth :: Size LengthUnit -> Feature
- height :: Size LengthUnit -> Feature
- minHeight :: Size LengthUnit -> Feature
- maxHeight :: Size LengthUnit -> Feature
- deviceWidth :: Size LengthUnit -> Feature
- minDeviceWidth :: Size LengthUnit -> Feature
- maxDeviceWidth :: Size LengthUnit -> Feature
- deviceHeight :: Size LengthUnit -> Feature
- minDeviceHeight :: Size LengthUnit -> Feature
- maxDeviceHeight :: Size LengthUnit -> Feature
- aspectRatio :: (Integer, Integer) -> Feature
- minAspectRatio :: (Integer, Integer) -> Feature
- maxAspectRatio :: (Integer, Integer) -> Feature
- deviceAspectRatio :: (Integer, Integer) -> Feature
- minDeviceAspectRatio :: (Integer, Integer) -> Feature
- maxDeviceAspectRatio :: (Integer, Integer) -> Feature
- color :: Feature
- monochrome :: Feature
- scan :: Feature
- grid :: Feature
- minColor :: Integer -> Feature
- maxColor :: Integer -> Feature
- colorIndex :: Integer -> Feature
- minColorIndex :: Integer -> Feature
- maxColorIndex :: Integer -> Feature
- minMonochrome :: Integer -> Feature
- maxMonochrome :: Integer -> Feature
- resolution :: Val a => a -> Feature
- minResolution :: Val a => a -> Feature
- maxResolution :: Val a => a -> Feature
- data Resolution
- dpi :: Integer -> Resolution
- dppx :: Integer -> Resolution
- prefersColorScheme :: ColorScheme -> Feature
- data ColorScheme
- light :: ColorScheme
- dark :: ColorScheme
Media types.
Deprecated.
These media types were deprecated by Media Queries 4.
Geometrical features.
deviceWidth :: Size LengthUnit -> Feature Source #
minDeviceWidth :: Size LengthUnit -> Feature Source #
maxDeviceWidth :: Size LengthUnit -> Feature Source #
deviceHeight :: Size LengthUnit -> Feature Source #
minDeviceHeight :: Size LengthUnit -> Feature Source #
maxDeviceHeight :: Size LengthUnit -> Feature Source #
Aspect ratio features.
Color related features.
monochrome :: Feature Source #
colorIndex :: Integer -> Feature Source #
minColorIndex :: Integer -> Feature Source #
maxColorIndex :: Integer -> Feature Source #
minMonochrome :: Integer -> Feature Source #
maxMonochrome :: Integer -> Feature Source #
Resolution related features.
resolution :: Val a => a -> Feature Source #
minResolution :: Val a => a -> Feature Source #
maxResolution :: Val a => a -> Feature Source #
Resolution value type.
data Resolution Source #
Instances
Other Resolution Source # | |
Defined in Clay.Media other :: Value -> Resolution Source # | |
Val Resolution Source # | |
Defined in Clay.Media value :: Resolution -> Value Source # |
dpi :: Integer -> Resolution Source #
dppx :: Integer -> Resolution Source #
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
Other ColorScheme Source # | |
Defined in Clay.Media other :: Value -> ColorScheme Source # | |
Val ColorScheme Source # | |
Defined in Clay.Media value :: ColorScheme -> Value Source # |
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.