fix some sass output for unary operators.
This commit is contained in:
parent
b6f7a9ea86
commit
960c665a7d
@ -253,11 +253,13 @@ module Sass
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
class UnaryOperation < Node
|
class UnaryOperation < Node
|
||||||
|
unless defined? OPERATORS_TO_SASS
|
||||||
OPERATORS_TO_SASS = {
|
OPERATORS_TO_SASS = {
|
||||||
:minus => "-",
|
:minus => "-",
|
||||||
:div => "/",
|
:div => "/",
|
||||||
:not => "not "
|
:not => "not "
|
||||||
}
|
}
|
||||||
|
end
|
||||||
def to_sass(format = :text)
|
def to_sass(format = :text)
|
||||||
"#{OPERATORS_TO_SASS[@operator]}#{@operand.to_sass}"
|
"#{OPERATORS_TO_SASS[@operator]}#{@operand.to_sass}"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user