Module

CSSOM.Main

#IndexedRule

type IndexedRule a = { id :: Int, item :: a }

#CSSRules

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) }

#CSSStyleSheet

#getStyleSheetRuleListJS

getStyleSheetRuleListJS :: EffectFn1 CSSStyleSheet CSSRuleList

Get all the rules of a stylesheet, split by type

#insertRuleJS

insertRuleJS :: EffectFn2 CSSStyleSheet String Unit

Insert a style rule into a stylesheet via string

#deleteMediaRuleRuleJS

deleteMediaRuleRuleJS :: EffectFn2 CSSMediaRule Int Unit

Delete a style that applies to a media rule only

#insertMediaRuleRuleJS

insertMediaRuleRuleJS :: EffectFn2 CSSMediaRule String Unit

Insert a style that applies to a media rule only

#getMediaRuleRuleListJS

getMediaRuleRuleListJS :: EffectFn1 CSSMediaRule CSSRuleList

Get all the rules of a stylesheet, split by type

#getMediaRuleMediaTextJS

getMediaRuleMediaTextJS :: EffectFn1 CSSMediaRule String

Get the rule from the Media Rule

#CSSStyleRule

#getStyleRuleSelectorTextJS

getStyleRuleSelectorTextJS :: EffectFn1 CSSStyleRule String

Get the selector text of a CSSStyleRule

#getStyleRuleDeclarationTextJS

getStyleRuleDeclarationTextJS :: EffectFn1 CSSStyleRule String

Get the Style Declaration of a CSSStyleRule

#CSSImportRule

#CSSFontFaceRule

#CSSPageRule

#CSSKeyframesRule

#CSSKeyframeRule

#CSSRuleList

#getFilteredRuleListJS

getFilteredRuleListJS :: EffectFn1 CSSRuleList CSSRules

Get all the rules of a media rule, split by type

Modules