New to Kendo UI for Angular? Start a free 30-day trial
Customizing FloatingActionButton
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-fab-border-width | Number | 1px | 1px |
Description
The width of the border around the FAB. | |||
$kendo-fab-border-radius | String | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) |
Description
The border radius of the FAB. | |||
$kendo-fab-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the FAB. | |||
$kendo-fab-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the FAB. | |||
$kendo-fab-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the FAB. | |||
$kendo-fab-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the FAB. | |||
$kendo-fab-sm-padding-x | Calculation | calc( #{$kendo-fab-padding-x} / 2 ) | calc(var(--kendo-spacing-4, 1rem) / 2) |
Description
The horizontal padding of the small FAB. | |||
$kendo-fab-md-padding-x | String | $kendo-fab-padding-x | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the medium FAB. | |||
$kendo-fab-lg-padding-x | Calculation | calc( #{$kendo-fab-padding-x} * 1.5 ) | calc(var(--kendo-spacing-4, 1rem) * 1.5) |
Description
The horizontal padding of the large FAB. | |||
$kendo-fab-padding-y | String | $kendo-fab-padding-x | var(--kendo-spacing-4, 1rem) |
Description
The vertical padding of the FAB. | |||
$kendo-fab-sm-padding-y | Calculation | calc( #{$kendo-fab-padding-y} / 2 ) | calc(var(--kendo-spacing-4, 1rem) / 2) |
Description
The vertical padding of the small FAB. | |||
$kendo-fab-md-padding-y | String | $kendo-fab-padding-y | var(--kendo-spacing-4, 1rem) |
Description
The vertical padding of the medium FAB. | |||
$kendo-fab-lg-padding-y | Calculation | calc( #{$kendo-fab-padding-y} * 1.5 ) | calc(var(--kendo-spacing-4, 1rem) * 1.5) |
Description
The vertical padding of the large FAB. | |||
$kendo-fab-icon-padding-x | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The horizontal padding of the FAB icon. | |||
$kendo-fab-icon-padding-y | String | $kendo-fab-icon-padding-x | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The vertical padding of the FAB icon. | |||
$kendo-fab-icon-spacing | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The spacing of the FAB icon. | |||
$kendo-fab-items-padding-x | String | k-spacing(0) | var(--kendo-spacing-0, 0px) |
Description
The horizontal padding of the FAB items. | |||
$kendo-fab-items-padding-y | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The vertical padding of the FAB items. | |||
$kendo-fab-item-text-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal padding of the FAB item text. | |||
$kendo-fab-item-text-padding-y | String | $kendo-fab-item-text-padding-x | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the FAB item text. | |||
$kendo-fab-item-text-border-width | Number | 1px | 1px |
Description
The width of the FAB item text border. | |||
$kendo-fab-item-text-border-radius | Number | 2px | 2px |
Description
The border radius of the FAB item text. | |||
$kendo-fab-item-text-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font size of the FAB item text. | |||
$kendo-fab-item-text-line-height | Number | 1.2 | 1.2 |
Description
The line height of the FAB item text. | |||
$kendo-fab-item-icon-padding-x | Calculation | calc( #{k-spacing(2)} + #{$kendo-fab-icon-padding-x} ) | calc(var(--kendo-spacing-2, 0.5rem) + var(--kendo-spacing-0\.5, 0.125rem)) |
Description
The horizontal padding of the FAB item icon. | |||
$kendo-fab-item-icon-padding-y | Calculation | $kendo-fab-item-icon-padding-x | calc(var(--kendo-spacing-2, 0.5rem) + var(--kendo-spacing-0\.5, 0.125rem)) |
Description
The vertical padding of the FAB item icon. | |||
$kendo-fab-item-icon-border-width | Number | 0 | 0 |
Description
The width of the FAB item icon border. | |||
$kendo-fab-item-icon-border-radius | Number | 50% | 50% |
Description
The border radius of the FAB item icon. | |||
$kendo-fab-theme-colors | Map | $kendo-theme-colors |
|
Description
The theme colors map for the FAB. | |||
$kendo-fab-sizes | Map | (
sm: (
padding-x: $kendo-fab-sm-padding-x,
padding-y: $kendo-fab-sm-padding-y
),
md: (
padding-x: $kendo-fab-md-padding-x,
padding-y: $kendo-fab-md-padding-y
),
lg: (
padding-x: $kendo-fab-lg-padding-x,
padding-y: $kendo-fab-lg-padding-y
)
) |
|
Description
The size map for the FAB. | |||
$kendo-fab-shadow | String | k-elevation(5) | var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12)) |
Description
The base shadow of the FAB. | |||
$kendo-fab-disabled-shadow | String | k-elevation(5) | var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12)) |
Description
The shadow of the disabled FAB. | |||
$kendo-fab-active-shadow | Null | null | null |
Description
The shadow of the active FAB. | |||
$kendo-fab-outline-style | String | solid | solid |
Description
The outline style of the FAB. | |||
$kendo-fab-outline-width | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The outline width of the FAB. | |||
$kendo-fab-item-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The base text color of the FAB item. | |||
$kendo-fab-item-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The base background color of the FAB item. | |||
$kendo-fab-item-border | String | $kendo-component-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The base border color of the FAB item. | |||
$kendo-fab-item-icon-text | String | $kendo-button-text | var(--kendo-color-on-base, #3d3d3d) |
Description
The base text color of the FAB item icon. | |||
$kendo-fab-item-icon-bg | String | $kendo-button-bg | var(--kendo-color-base, #f5f5f5) |
Description
The base background color of the FAB item icon. | |||
$kendo-fab-item-icon-border | String | $kendo-button-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The base border color of the FAB item icon. | |||
$kendo-fab-item-shadow | String | $kendo-fab-shadow | var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12)) |
Description
The base shadow of the FAB item. | |||
$kendo-fab-item-disabled-shadow | String | $kendo-fab-disabled-shadow | var(--kendo-elevation-5, 0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12)) |
Description
The shadow of the disabled FAB item. | |||
$kendo-fab-item-active-shadow | Null | $kendo-fab-active-shadow | null |
Description
The shadow of the active FAB item. | |||
$kendo-fab-item-outline-style | String | solid | solid |
Description
The outline style of the FAB item. | |||
$kendo-fab-item-outline-width | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The outline width of the FAB item. | |||
$kendo-fab-item-outline-color | Color | rgba(0, 0, 0, .08) | rgba(0, 0, 0, 0.08) |
Description
The outline color of the FAB item. |