Files
threshold-ui/addons/rose/app/styles/rose/variables/_sizing.scss
T
Lisbet Alvarez b7559c1f4e Icu 16542 upgrade ember addons rose (#2784)
* v4.12.2...v5.12.0

* fix: 🐛 update path name for hds styles

* chore: 🤖 ember init changes

* style: 💄 clear lint errors

* chore: 🤖 run yarn format in rose addon

* chore: 🤖 fix build failures

* chore: 🤖 yarn.lock file changes

* chore: 🤖 yarn.lock file updates

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16542
2025-05-02 15:13:45 -07:00

47 lines
617 B
SCSS

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
@use 'sass:map';
/**
* SASS variables for size and scale.
*/
$size-coefficients: (
xxl: 3,
// 48
xl: 2.25,
// 36
l: 1.5,
// 24
m: 1,
// 16 - base
s: 0.75,
// 12
xs: 0.5,
// 8
off-xs: 0.3125,
// 5
xxs: 0.25,
// 4
xxxs: 0.125,
// 2
xxxxs: 0.0625, // 1
);
/**
* Returns a size coefficient.
*/
@function size($name) {
@return map.get($size-coefficients, $name);
}
/**
* Returns a value in rem units equal to the requested size.
*/
@function rems($name) {
@return size($name) * 1rem;
}