| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.CSS.Preprocessor.Text
Description
Lowers certain CSS properties to plain text.
Synopsis
- data TextStyle p
- resolve :: PropertyParser p => StyleTree (TextStyle p) -> StyleTree p
- resolveWithCounterStyles :: PropertyParser p => CounterStore' -> StyleTree (TextStyle p) -> StyleTree p
- data CounterStore' = CounterStore {}
Documentation
PropertyParser decorator that parses & lowers certain CSS properties to plain text.
Instances
| PropertyParser p => PropertyParser (TextStyle p) Source # | |
Defined in Data.CSS.Preprocessor.Text Methods inherit :: TextStyle p -> TextStyle p # priority :: TextStyle p -> [Text] # shorthand :: TextStyle p -> Text -> [Token] -> [(Text, [Token])] # longhand :: TextStyle p -> TextStyle p -> Text -> [Token] -> Maybe (TextStyle p) # getVars :: TextStyle p -> Props # setVars :: Props -> TextStyle p -> TextStyle p # pseudoEl :: TextStyle p -> Text -> (TextStyle p -> Maybe (TextStyle p) -> TextStyle p) -> TextStyle p # | |
resolve :: PropertyParser p => StyleTree (TextStyle p) -> StyleTree p Source #
Returns inner PropertyParser with text properties applied.
resolveWithCounterStyles :: PropertyParser p => CounterStore' -> StyleTree (TextStyle p) -> StyleTree p Source #
data CounterStore' Source #
Constructors
| CounterStore | |
Fields | |
Instances
| StyleSheet CounterStore' Source # | |
Defined in Data.CSS.Preprocessor.Text.CounterStyle Methods setPriority :: Int -> CounterStore' -> CounterStore' # setPriorities :: [Int] -> CounterStore' -> CounterStore' # addRule :: CounterStore' -> StyleRule -> CounterStore' # addAtRule :: CounterStore' -> Text -> [Token] -> (CounterStore', [Token]) # | |