Skip to content

Commit

Permalink
fix weird indentation in media-queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Warry committed Feb 17, 2017
1 parent a65514a commit f3bf584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Css/Structure/Output.elm
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ prettyPrintDeclaration declaration =
MediaRule mediaQueries styleBlocks ->
let
blocks =
(List.map (indent << prettyPrintStyleBlock) styleBlocks)
(List.map (indentLines << prettyPrintStyleBlock) styleBlocks)
|> String.join "\n\n"

query =
(List.map (\(MediaQuery str) -> str) mediaQueries)
|> String.join " "
in
"@media " ++ query ++ " {\n" ++ indentLines blocks ++ "\n}"
"@media " ++ query ++ " {\n" ++ blocks ++ "\n}"

Keyframes name steps ->
let
Expand Down

0 comments on commit f3bf584

Please sign in to comment.