Customizing Floating-action-button
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 | Number | k-math-div( $kendo-border-radius, 2 ) | 0.1875rem |
Description
The border radius of the FAB. | |||
$kendo-fab-font-family | List | $kendo-font-family | system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" |
Description
The font family of the FAB. | |||
$kendo-fab-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the FAB. | |||
$kendo-fab-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the FAB. | |||
$kendo-fab-padding-x | Number | k-map-get( $kendo-spacing, 4 ) | 1rem |
Description
The horizontal padding of the FAB. | |||
$kendo-fab-sm-padding-x | Number | k-math-div( $kendo-fab-padding-x, 2 ) | 0.5rem |
Description
The horizontal padding of the small FAB. | |||
$kendo-fab-md-padding-x | Number | $kendo-fab-padding-x | 1rem |
Description
The horizontal padding of the medium FAB. | |||
$kendo-fab-lg-padding-x | Number | ( $kendo-fab-padding-x * 1.5 ) | 1.5rem |
Description
The horizontal padding of the large FAB. | |||
$kendo-fab-padding-y | Number | $kendo-fab-padding-x | 1rem |
Description
The vertical padding of the FAB. | |||
$kendo-fab-sm-padding-y | Number | k-math-div( $kendo-fab-padding-y, 2 ) | 0.5rem |
Description
The vertical padding of the small FAB. | |||
$kendo-fab-md-padding-y | Number | $kendo-fab-padding-y | 1rem |
Description
The vertical padding of the medium FAB. | |||
$kendo-fab-lg-padding-y | Number | ( $kendo-fab-padding-y * 1.5 ) | 1.5rem |
Description
The vertical padding of the large FAB. | |||
$kendo-fab-icon-padding-x | Number | k-map-get( $kendo-spacing, 1 ) | 0.25rem |
Description
The horizontal padding of the FAB icon. | |||
$kendo-fab-icon-padding-y | Number | $kendo-fab-icon-padding-x | 0.25rem |
Description
The vertical padding of the FAB icon. | |||
$kendo-fab-icon-spacing | Number | k-map-get( $kendo-spacing, 0.5 ) | 0.125rem |
Description
The spacing of the FAB icon. | |||
$kendo-fab-items-padding-x | Number | 0px | 0px |
Description
The horizontal padding of the FAB items. | |||
$kendo-fab-items-padding-y | Number | k-map-get( $kendo-spacing, 4 ) | 1rem |
Description
The vertical padding of the FAB items. | |||
$kendo-fab-item-text-padding-x | Number | k-map-get( $kendo-spacing, 1 ) | 0.25rem |
Description
The horizontal padding of the FAB item text. | |||
$kendo-fab-item-text-padding-y | Number | $kendo-fab-item-text-padding-x | 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 | 4px | 4px |
Description
The border radius of the FAB item text. | |||
$kendo-fab-item-text-font-size | Number | $kendo-font-size-xs | 0.75rem |
Description
The font size of the FAB item text. | |||
$kendo-fab-item-text-line-height | Number | 14px | 14px |
Description
The line height of the FAB item text. | |||
$kendo-fab-item-icon-padding-x | Number | k-map-get( $kendo-spacing, 2 ) + $kendo-fab-icon-padding-x | 0.75rem |
Description
The horizontal padding of the FAB item icon. | |||
$kendo-fab-item-icon-padding-y | Number | $kendo-fab-item-icon-padding-x | 0.75rem |
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 | ("primary": #0d6efd, "secondary": #6c757d, "tertiary": #6f42c1, "info": #0dcaf0, "success": #198754, "warning": #ffc107, "error": #dc3545, "dark": #212529, "light": #f8f9fa, "inverse": #212529) |
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
)
) | (sm: (padding-x: 0.5rem, padding-y: 0.5rem), md: (padding-x: 1rem, padding-y: 1rem), lg: (padding-x: 1.5rem, padding-y: 1.5rem)) |
Description
The size map for the FAB. | |||
$kendo-fab-shadow | String | k-elevation(5) | var(--kendo-elevation-5, 0px 8px 16px 0px rgba(0, 0, 0, 0.15)) |
Description
The base shadow of the FAB. | |||
$kendo-fab-disabled-shadow | String | k-elevation(5) | var(--kendo-elevation-5, 0px 8px 16px 0px rgba(0, 0, 0, 0.15)) |
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 | Number | 3px | 3px |
Description
The outline width of the FAB. | |||
$kendo-fab-item-text | Color | $kendo-component-text | #212529 |
Description
The base text color of the FAB item. | |||
$kendo-fab-item-bg | Color | $kendo-component-bg | #ffffff |
Description
The base background color of the FAB item. | |||
$kendo-fab-item-border | Color | $kendo-component-border | #dee2e6 |
Description
The base border color of the FAB item. | |||
$kendo-fab-item-icon-text | Color | $kendo-button-text | #212529 |
Description
The base text color of the FAB item icon. | |||
$kendo-fab-item-icon-bg | Color | $kendo-button-bg | #e4e7eb |
Description
The base background color of the FAB item icon. | |||
$kendo-fab-item-icon-border | Color | $kendo-button-border | #e4e7eb |
Description
The base border color of the FAB item icon. | |||
$kendo-fab-item-shadow | String | $kendo-fab-shadow | var(--kendo-elevation-5, 0px 8px 16px 0px rgba(0, 0, 0, 0.15)) |
Description
The base shadow of the FAB item. | |||
$kendo-fab-item-disabled-shadow | String | $kendo-fab-disabled-shadow | var(--kendo-elevation-5, 0px 8px 16px 0px rgba(0, 0, 0, 0.15)) |
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 | Number | 3px | 3px |
Description
The outline width of the FAB item. | |||
$kendo-fab-item-outline-color | Color | $kendo-button-bg | #e4e7eb |
Description
The outline color of the FAB item. |