0 | module Web.Internal.CssTypes
  1 |
  2 | import JS
  3 |
  4 | %default total
  5 |
  6 |
  7 |
  8 | --------------------------------------------------------------------------------
  9 | --          Interfaces
 10 | --------------------------------------------------------------------------------
 11 |
 12 | export data CSSGroupingRule : Type where [external]
 13 |
 14 | export
 15 | ToFFI CSSGroupingRule CSSGroupingRule where toFFI = id
 16 |
 17 | export
 18 | FromFFI CSSGroupingRule CSSGroupingRule where fromFFI = Just
 19 |
 20 | export
 21 | SafeCast CSSGroupingRule where
 22 |   safeCast = unsafeCastOnPrototypeName "CSSGroupingRule"
 23 |
 24 | export data CSSImportRule : Type where [external]
 25 |
 26 | export
 27 | ToFFI CSSImportRule CSSImportRule where toFFI = id
 28 |
 29 | export
 30 | FromFFI CSSImportRule CSSImportRule where fromFFI = Just
 31 |
 32 | export
 33 | SafeCast CSSImportRule where
 34 |   safeCast = unsafeCastOnPrototypeName "CSSImportRule"
 35 |
 36 | export data CSSMarginRule : Type where [external]
 37 |
 38 | export
 39 | ToFFI CSSMarginRule CSSMarginRule where toFFI = id
 40 |
 41 | export
 42 | FromFFI CSSMarginRule CSSMarginRule where fromFFI = Just
 43 |
 44 | export
 45 | SafeCast CSSMarginRule where
 46 |   safeCast = unsafeCastOnPrototypeName "CSSMarginRule"
 47 |
 48 | export data CSSNamespaceRule : Type where [external]
 49 |
 50 | export
 51 | ToFFI CSSNamespaceRule CSSNamespaceRule where toFFI = id
 52 |
 53 | export
 54 | FromFFI CSSNamespaceRule CSSNamespaceRule where fromFFI = Just
 55 |
 56 | export
 57 | SafeCast CSSNamespaceRule where
 58 |   safeCast = unsafeCastOnPrototypeName "CSSNamespaceRule"
 59 |
 60 | export data CSSPageRule : Type where [external]
 61 |
 62 | export
 63 | ToFFI CSSPageRule CSSPageRule where toFFI = id
 64 |
 65 | export
 66 | FromFFI CSSPageRule CSSPageRule where fromFFI = Just
 67 |
 68 | export
 69 | SafeCast CSSPageRule where
 70 |   safeCast = unsafeCastOnPrototypeName "CSSPageRule"
 71 |
 72 | export data CSSPseudoElement : Type where [external]
 73 |
 74 | export
 75 | ToFFI CSSPseudoElement CSSPseudoElement where toFFI = id
 76 |
 77 | export
 78 | FromFFI CSSPseudoElement CSSPseudoElement where fromFFI = Just
 79 |
 80 | export
 81 | SafeCast CSSPseudoElement where
 82 |   safeCast = unsafeCastOnPrototypeName "CSSPseudoElement"
 83 |
 84 | export data CSSRule : Type where [external]
 85 |
 86 | export
 87 | ToFFI CSSRule CSSRule where toFFI = id
 88 |
 89 | export
 90 | FromFFI CSSRule CSSRule where fromFFI = Just
 91 |
 92 | export
 93 | SafeCast CSSRule where
 94 |   safeCast = unsafeCastOnPrototypeName "CSSRule"
 95 |
 96 | export data CSSRuleList : Type where [external]
 97 |
 98 | export
 99 | ToFFI CSSRuleList CSSRuleList where toFFI = id
100 |
101 | export
102 | FromFFI CSSRuleList CSSRuleList where fromFFI = Just
103 |
104 | export
105 | SafeCast CSSRuleList where
106 |   safeCast = unsafeCastOnPrototypeName "CSSRuleList"
107 |
108 | export data CSSStyleDeclaration : Type where [external]
109 |
110 | export
111 | ToFFI CSSStyleDeclaration CSSStyleDeclaration where toFFI = id
112 |
113 | export
114 | FromFFI CSSStyleDeclaration CSSStyleDeclaration where fromFFI = Just
115 |
116 | export
117 | SafeCast CSSStyleDeclaration where
118 |   safeCast = unsafeCastOnPrototypeName "CSSStyleDeclaration"
119 |
120 | export data CSSStyleRule : Type where [external]
121 |
122 | export
123 | ToFFI CSSStyleRule CSSStyleRule where toFFI = id
124 |
125 | export
126 | FromFFI CSSStyleRule CSSStyleRule where fromFFI = Just
127 |
128 | export
129 | SafeCast CSSStyleRule where
130 |   safeCast = unsafeCastOnPrototypeName "CSSStyleRule"
131 |
132 | export data CSSStyleSheet : Type where [external]
133 |
134 | export
135 | ToFFI CSSStyleSheet CSSStyleSheet where toFFI = id
136 |
137 | export
138 | FromFFI CSSStyleSheet CSSStyleSheet where fromFFI = Just
139 |
140 | export
141 | SafeCast CSSStyleSheet where
142 |   safeCast = unsafeCastOnPrototypeName "CSSStyleSheet"
143 |
144 | export data MediaList : Type where [external]
145 |
146 | export
147 | ToFFI MediaList MediaList where toFFI = id
148 |
149 | export
150 | FromFFI MediaList MediaList where fromFFI = Just
151 |
152 | export
153 | SafeCast MediaList where
154 |   safeCast = unsafeCastOnPrototypeName "MediaList"
155 |
156 | export data StyleSheet : Type where [external]
157 |
158 | export
159 | ToFFI StyleSheet StyleSheet where toFFI = id
160 |
161 | export
162 | FromFFI StyleSheet StyleSheet where fromFFI = Just
163 |
164 | export
165 | SafeCast StyleSheet where
166 |   safeCast = unsafeCastOnPrototypeName "StyleSheet"
167 |
168 | export data StyleSheetList : Type where [external]
169 |
170 | export
171 | ToFFI StyleSheetList StyleSheetList where toFFI = id
172 |
173 | export
174 | FromFFI StyleSheetList StyleSheetList where fromFFI = Just
175 |
176 | export
177 | SafeCast StyleSheetList where
178 |   safeCast = unsafeCastOnPrototypeName "StyleSheetList"
179 |
180 |
181 |
182 | --------------------------------------------------------------------------------
183 | --          Mixins
184 | --------------------------------------------------------------------------------
185 |
186 | export data ElementCSSInlineStyle : Type where [external]
187 |
188 | export
189 | ToFFI ElementCSSInlineStyle ElementCSSInlineStyle where toFFI = id
190 |
191 | export
192 | FromFFI ElementCSSInlineStyle ElementCSSInlineStyle where fromFFI = Just
193 |
194 | export data LinkStyle : Type where [external]
195 |
196 | export
197 | ToFFI LinkStyle LinkStyle where toFFI = id
198 |
199 | export
200 | FromFFI LinkStyle LinkStyle where fromFFI = Just
201 |