Added mixin function for converting px2percentage

Added mixin function for converting px2percentage