@import "../settings/settings.globalVars";
@import "tools.convertPxToRem";

@mixin layoutWith($context) {
  @if map-has-key($settings, "panel") {
    @each $property, $values in $settings {
      @if $property == "panel" {
        @each $property, $value in $values {
          .has-panel-#{$property} #{$context} {
            width: calc(100% - #{rem($value)});
          }
        }
      }
    }
  } @else {
    @error 'No property with key "panel" available.';
  }
}
