Fix tooltip margin mixin for latest Sass version

Latest version of Sass change the way parentheses are handled, which
generate properties like `transform: translateY-8px`.
I also move the mixin to the mixins file + reuse the mixin where it's appropriate.