module Miso.Style.Types
(
Style
, Styles (..)
, StyleSheet (..)
) where
import Miso.String (MisoString)
newtype StyleSheet = StyleSheet { StyleSheet -> [Styles]
getStyleSheet :: [Styles] }
deriving (StyleSheet -> StyleSheet -> Bool
(StyleSheet -> StyleSheet -> Bool)
-> (StyleSheet -> StyleSheet -> Bool) -> Eq StyleSheet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StyleSheet -> StyleSheet -> Bool
== :: StyleSheet -> StyleSheet -> Bool
$c/= :: StyleSheet -> StyleSheet -> Bool
/= :: StyleSheet -> StyleSheet -> Bool
Eq, Int -> StyleSheet -> ShowS
[StyleSheet] -> ShowS
StyleSheet -> String
(Int -> StyleSheet -> ShowS)
-> (StyleSheet -> String)
-> ([StyleSheet] -> ShowS)
-> Show StyleSheet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StyleSheet -> ShowS
showsPrec :: Int -> StyleSheet -> ShowS
$cshow :: StyleSheet -> String
show :: StyleSheet -> String
$cshowList :: [StyleSheet] -> ShowS
showList :: [StyleSheet] -> ShowS
Show)
type Style = (MisoString, MisoString)
data Styles
= Styles (MisoString, [Style])
| KeyFrame MisoString [(MisoString, [Style])]
| Media MisoString [(MisoString, [Style])]
deriving (Styles -> Styles -> Bool
(Styles -> Styles -> Bool)
-> (Styles -> Styles -> Bool) -> Eq Styles
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Styles -> Styles -> Bool
== :: Styles -> Styles -> Bool
$c/= :: Styles -> Styles -> Bool
/= :: Styles -> Styles -> Bool
Eq, Int -> Styles -> ShowS
[Styles] -> ShowS
Styles -> String
(Int -> Styles -> ShowS)
-> (Styles -> String) -> ([Styles] -> ShowS) -> Show Styles
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Styles -> ShowS
showsPrec :: Int -> Styles -> ShowS
$cshow :: Styles -> String
show :: Styles -> String
$cshowList :: [Styles] -> ShowS
showList :: [Styles] -> ShowS
Show)