added mixin for creating an element with a specific ratio