<div></div>
 
div {
  $item-margin: 1vmin;
  width: calc(50vw - #{$item-margin});
  height: calc(50vw - #{$item-margin});
  background: red;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.