~alcinnz/haskell-stylist

21baea3da8a2e5a7ea88f2ad94d66b629f0b95ae — Adrian Cochrane 5 years ago 0cd2415
Fix: ConditionalStyles reversed CSS precedance.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/Data/CSS/Preprocessor/Conditions.hs
M src/Data/CSS/Preprocessor/Conditions.hs => src/Data/CSS/Preprocessor/Conditions.hs +1 -1
@@ 104,7 104,7 @@ resolveImports self responses = self {rules = map resolveImport $ rules self}

resolve :: StyleSheet s => (Text -> Query.Datum) -> (Token -> Query.Datum) ->
        s -> ConditionalStyles p -> s
resolve v t styles self = resolve' v t (rules self) styles
resolve v t styles self = resolve' v t (reverse $ rules self) styles
resolve' :: StyleSheet s => (Text -> Query.Datum) -> (Token -> Query.Datum) ->
        [ConditionalRule p] -> s -> s
resolve' v t (Priority x:rules) styles = resolve' v t rules $ setPriority x styles