New to Kendo UI for Angular? Start a free 30-day trial
Customizing Badge
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-badge-border-width | Number | 1px | 1px |
Description
The width of the border around the Badge. | |||
$kendo-badge-border-radius | String | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) |
Description
The border radius of the Badge. | |||
$kendo-badge-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal padding of the Badge. | |||
$kendo-badge-sm-padding-x | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The horizontal padding of the small Badge. | |||
$kendo-badge-md-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal padding of the medium Badge. | |||
$kendo-badge-lg-padding-x | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
The horizontal padding of the large Badge. | |||
$kendo-badge-padding-y | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the Badge. | |||
$kendo-badge-sm-padding-y | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The vertical padding of the small Badge. | |||
$kendo-badge-md-padding-y | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the medium Badge. | |||
$kendo-badge-lg-padding-y | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
The vertical padding of the large Badge. | |||
$kendo-badge-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font sizes of the Badge. | |||
$kendo-badge-sm-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font size of the small Badge. | |||
$kendo-badge-md-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font size of the medium Badge. | |||
$kendo-badge-lg-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font size of the large Badge. | |||
$kendo-badge-line-height | Number | 1 | 1 |
Description
The line heights used along with the $kendo-font-size variable. | |||
$kendo-badge-sm-line-height | Number | $kendo-badge-line-height | 1 |
Description
The line height used along with the $kendo-font-size variable of the small Badge. | |||
$kendo-badge-md-line-height | Number | $kendo-badge-line-height | 1 |
Description
The line height used along with the $kendo-font-size variable of the medium Badge. | |||
$kendo-badge-lg-line-height | Number | $kendo-badge-line-height | 1 |
Description
The line height used along with the $kendo-font-size variable of the large Badge. | |||
$kendo-badge-min-width | Calculation | calc( #{$kendo-badge-line-height * 1em} + calc( #{$kendo-badge-padding-y} * 2 ) + #{$kendo-badge-border-width * 2}) | calc(1em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px) |
Description
The calculated minimum width of the circular Badge. | |||
$kendo-badge-sm-min-width | Calculation | calc( #{$kendo-badge-sm-line-height * 1em} + calc( #{$kendo-badge-sm-padding-y} * 2 ) + #{$kendo-badge-border-width * 2} ) | calc(1em + var(--kendo-spacing-0\.5, 0.125rem) * 2 + 2px) |
Description
The calculated minimum width of the small circular Badge. | |||
$kendo-badge-md-min-width | Calculation | calc( #{$kendo-badge-md-line-height * 1em} + calc( #{$kendo-badge-md-padding-y} * 2 ) + #{$kendo-badge-border-width * 2} ) | calc(1em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px) |
Description
The calculated minimum width of the medium circular Badge. | |||
$kendo-badge-lg-min-width | Calculation | calc( #{$kendo-badge-lg-line-height * 1em} + calc( #{$kendo-badge-lg-padding-y} * 2 ) + #{$kendo-badge-border-width * 2} ) | calc(1em + var(--kendo-spacing-1\.5, 0.375rem) * 2 + 2px) |
Description
The calculated minimum width of the large circular Badge. | |||
$kendo-badge-sizes | Map | (
sm: (
padding-x: $kendo-badge-sm-padding-x,
padding-y: $kendo-badge-sm-padding-y,
font-size: $kendo-badge-sm-font-size,
line-height: $kendo-badge-sm-line-height,
min-width: $kendo-badge-sm-min-width
),
md: (
padding-x: $kendo-badge-md-padding-x,
padding-y: $kendo-badge-md-padding-y,
font-size: $kendo-badge-md-font-size,
line-height: $kendo-badge-md-line-height,
min-width: $kendo-badge-md-min-width
),
lg: (
padding-x: $kendo-badge-lg-padding-x,
padding-y: $kendo-badge-lg-padding-y,
font-size: $kendo-badge-lg-font-size,
line-height: $kendo-badge-lg-line-height,
min-width: $kendo-badge-lg-min-width
)
) |
|
Description
The sizes map for the Badge. |