/*
 * Copyright (c) 2019-present Sonatype, Inc.
 * This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License 2.0 which accompanies this
 * distribution and is available at https://www.eclipse.org/legal/epl-2.0/.
 */

// For dynamically calculating focus border styles based on height and width
// Border size is 2px border + 2px gap = 2 * 4px here to represents total space in each axis
// between border and control elements. Values are based on RSC design spec.

// For correct positioning of focus borders, NxRadio and NxCheckbox additionally require
// the left and top properties (currently specified in their respective .scss files)
@mixin radio-checkbox-focus-border($height, $width) {
    height: calc(#{$height} + 8px);
    width: calc(#{$width} + 8px);
}
