update caret mixins for better positioning