Module
CSSOM.Main
- Package
- purescript-cssom
- Repository
- danieljharvey/purescript-cssom
#HasRuleList Source
class HasRuleList a where
Members
getRuleList' :: a -> Effect CSSRuleList
insertRule' :: a -> String -> Effect Unit
deleteRule' :: a -> Int -> Effect Unit
Instances
#IndexedRule Source
type IndexedRule a = { id :: Int, item :: a }
#CSSRules Source
type CSSRules = { fontFaceRules :: Array (IndexedRule CSSFontFaceRule), importRules :: Array (IndexedRule CSSImportRule), keyframeRules :: Array (IndexedRule CSSKeyframeRule), keyframesRules :: Array (IndexedRule CSSKeyframesRule), mediaRules :: Array (IndexedRule CSSMediaRule), pageRules :: Array (IndexedRule CSSPageRule), styleRules :: Array (IndexedRule CSSStyleRule) }
#getStyleSheetRuleListJS Source
getStyleSheetRuleListJS :: EffectFn1 CSSStyleSheet CSSRuleList
Get all the rules of a stylesheet, split by type
#insertRuleJS Source
insertRuleJS :: EffectFn2 CSSStyleSheet String Unit
Insert a style rule into a stylesheet via string
#deleteMediaRuleRuleJS Source
deleteMediaRuleRuleJS :: EffectFn2 CSSMediaRule Int Unit
Delete a style that applies to a media rule only
#insertMediaRuleRuleJS Source
insertMediaRuleRuleJS :: EffectFn2 CSSMediaRule String Unit
Insert a style that applies to a media rule only
#getMediaRuleRuleListJS Source
getMediaRuleRuleListJS :: EffectFn1 CSSMediaRule CSSRuleList
Get all the rules of a stylesheet, split by type
#getMediaRuleMediaTextJS Source
getMediaRuleMediaTextJS :: EffectFn1 CSSMediaRule String
Get the rule from the Media Rule
#getStyleRuleSelectorTextJS Source
getStyleRuleSelectorTextJS :: EffectFn1 CSSStyleRule String
Get the selector text of a CSSStyleRule
#getStyleRuleDeclarationTextJS Source
getStyleRuleDeclarationTextJS :: EffectFn1 CSSStyleRule String
Get the Style Declaration of a CSSStyleRule
#CSSRuleList Source
data CSSRuleList :: Type
#getFilteredRuleListJS Source
getFilteredRuleListJS :: EffectFn1 CSSRuleList CSSRules
Get all the rules of a media rule, split by type
- Modules
- CSSOM.
Main