blob: 4708174fe79aaf8e32d589e126af737e8cca104f [file] [log] [blame]
////
/// @group common/cash-register
////
/// Local variable to determine a fixed spacing between buttons in grid-like button arrangements.
$half-spacing: round($v-layout-spacing-vertical/2);
/// Local variable to define a base button height.
/// Two times this value should correspond with total height of vertically aligned textfields (with captions on top).
/// Only relevant for cash register/POS application so far.
$cash-button-base-height: $v-unit-size * $os-cash-zoom-factor - $half-spacing;
/* /// Resize fields according to cash zoom. Also used in _cash-register. Field width should be the same size as three regular (cash context) width buttons. */
/* $cash-field-width: make_even(($v-unit-size * 2 * $os-cash-zoom-factor * 3) - (2 * first-number($v-border)) + (2 * $v-layout-spacing-horizontal)); */
/// Resize fields according to cash zoom. Also used in _cash-register. This is the same width as two regular width buttons.
$cash-field-width: make_even(($v-unit-size * 2 * $os-cash-zoom-factor * 2) + (1 * $v-layout-spacing-horizontal));
/// Resize fields according to cash zoom. Also used in _cash-register. Field height should be the same size as one quad (cash context) height button.
/* $cash-field-height: ($v-unit-size * $os-cash-zoom-factor * 4) + ($v-layout-spacing-vertical); */
$cash-field-height: $cash-button-base-height + $v-layout-spacing-vertical;
$cash-field-height: $cash-button-base-height * 4 + $v-layout-spacing-vertical * 3;
/// Scale basic font size for components inside os-cash-register.
$font-size-adjustment: $os-cash-zoom-factor / 4 * 3;