Adding missing CSS rules for right-to-left dir and converting px to percentages