New to Kendo UI for Angular? Start a free 30-day trial
Customizing Floating-action-button
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-fab-border-width | 1px | ||
Description
The width of the border around the FAB. | |||
$kendo-fab-border-radius | var( --kendo-border-radius-md, #{$kendo-border-radius-md} ) | ||
Description
The border radius of the FAB. | |||
$kendo-fab-font-family | var( --kendo-font-family, inherit ) | ||
Description
The font family of the FAB. | |||
$kendo-fab-font-size | var( --kendo-font-size, inherit ) | ||
Description
The font size of the FAB. | |||
$kendo-fab-line-height | var( --kendo-line-height, normal ) | ||
Description
The line height of the FAB. | |||
$kendo-fab-padding-x | map.get( $kendo-spacing, 4 ) | ||
Description
The horizontal padding of the FAB. | |||
$kendo-fab-sm-padding-x | math.div( $kendo-fab-padding-x, 2 ) | ||
Description
The horizontal padding of the small FAB. | |||
$kendo-fab-md-padding-x | $kendo-fab-padding-x | ||
Description
The horizontal padding of the medium FAB. | |||
$kendo-fab-lg-padding-x | ( $kendo-fab-padding-x * 1.5 ) | ||
Description
The horizontal padding of the large FAB. | |||
$kendo-fab-padding-y | $kendo-fab-padding-x | ||
Description
The vertical padding of the FAB. | |||
$kendo-fab-sm-padding-y | math.div( $kendo-fab-padding-y, 2 ) | ||
Description
The vertical padding of the small FAB. | |||
$kendo-fab-md-padding-y | $kendo-fab-padding-y | ||
Description
The vertical padding of the medium FAB. | |||
$kendo-fab-lg-padding-y | ( $kendo-fab-padding-y * 1.5 ) | ||
Description
The vertical padding of the large FAB. | |||
$kendo-fab-focus-offset | $kendo-button-focus-offset | ||
Description
The offset of the focused FAB. | |||
$kendo-fab-focus-outline-width | $kendo-button-focus-outline-width | ||
Description
The outline width of the focused FAB. | |||
$kendo-fab-focus-outline-style | $kendo-button-focus-outline-style | ||
Description
The outline style of the focused FAB. | |||
$kendo-fab-icon-padding-x | map.get( $kendo-spacing, 0.5 ) | ||
Description
The horizontal padding of the FAB icon. | |||
$kendo-fab-icon-padding-y | $kendo-fab-icon-padding-x | ||
Description
The vertical padding of the FAB icon. | |||
$kendo-fab-icon-spacing | map.get( $kendo-spacing, 0.5 ) | ||
Description
The spacing of the FAB icon. | |||
$kendo-fab-items-padding-x | 0px | ||
Description
The horizontal padding of the FAB items. | |||
$kendo-fab-items-padding-y | map.get( $kendo-spacing, 4 ) | ||
Description
The vertical padding of the FAB items. | |||
$kendo-fab-item-text-padding-x | map.get( $kendo-spacing, 1 ) | ||
Description
The horizontal padding of the FAB item text. | |||
$kendo-fab-item-text-padding-y | map.get( $kendo-spacing, 1 ) | ||
Description
The vertical padding of the FAB item text. | |||
$kendo-fab-item-text-border-width | 1px | ||
Description
The width of the FAB item text border. | |||
$kendo-fab-item-text-border-style | solid | ||
Description
The border style of the FAB item text. | |||
$kendo-fab-item-text-border-radius | var( --kendo-border-radius-md, #{$kendo-border-radius-md} ) | ||
Description
The border radius of the FAB item text. | |||
$kendo-fab-item-text-font-size | var( --kendo-font-size-sm, inherit ) | ||
Description
The font size of the FAB item text. | |||
$kendo-fab-item-text-line-height | var( --kendo-line-height-sm, inherit ) | ||
Description
The line height of the FAB item text. | |||
$kendo-fab-item-text-offset-x | map.get( $kendo-spacing, 2 ) | ||
Description
The bottom margin of the FAB item text. | |||
$kendo-fab-item-focus-offset | $kendo-button-focus-offset | ||
Description
The offset of the focused FAB item. | |||
$kendo-fab-item-focus-outline-width | $kendo-button-focus-outline-width | ||
Description
The outline width of the focused FAB item. | |||
$kendo-fab-item-focus-outline-style | $kendo-button-focus-outline-style | ||
Description
The outline style of the focused FAB item. | |||
$kendo-fab-item-icon-padding-x | map.get( $kendo-spacing, 2 ) + $kendo-fab-icon-padding-x | ||
Description
The horizontal padding of the FAB item icon. | |||
$kendo-fab-item-icon-padding-y | $kendo-fab-item-icon-padding-x | ||
Description
The vertical padding of the FAB item icon. | |||
$kendo-fab-item-icon-border-width | 1px | ||
Description
The border width of the FAB item icon. | |||
$kendo-fab-item-icon-border-style | solid | ||
Description
The border style of the FAB item icon. | |||
$kendo-fab-item-icon-border-radius | 50% | ||
Description
The border radius of the FAB item icon. | |||
$kendo-fab-theme-colors | (
solid: map.get( $kendo-button-theme-colors, "solid")
) | ||
Description
The theme colors map for the FAB. | |||
$kendo-fab-sizes | (
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-item-offset-y | map.get( $kendo-spacing, 2 ) | ||
Description
The bottom margin of the FAB item. | |||
$kendo-fab-item-text | k-get-theme-color-var( neutral-160 ) | ||
Description
The base text color of the FAB item. | |||
$kendo-fab-item-bg | var( --kendo-component-bg, inherit ) | ||
Description
The base background color of the FAB item. | |||
$kendo-fab-item-border | k-get-theme-color-var( neutral-110 ) | ||
Description
The base border color of the FAB item. | |||
$kendo-fab-item-hover-text | var( --kendo-hover-text, inherit ) | ||
Description
The text color of the hovered FAB item. | |||
$kendo-fab-item-hover-bg | var( --kendo-hover-bg, inherit ) | ||
Description
The background color of the hovered FAB item. | |||
$kendo-fab-item-hover-border | k-get-theme-color-var( neutral-110 ) | ||
Description
The border color of the hovered FAB item. | |||
$kendo-fab-item-focus-text | k-get-theme-color-var( neutral-160 ) | ||
Description
The text color of the focused FAB item. | |||
$kendo-fab-item-focus-bg | var( --kendo-component-bg, inherit ) | ||
Description
The background color of the focused FAB item. | |||
$kendo-fab-item-focus-border | k-get-theme-color-var( neutral-110 ) | ||
Description
The border color of the focused FAB item. | |||
$kendo-fab-item-active-text | var( --kendo-selected-text, inherit ) | ||
Description
The text color of the active FAB item. | |||
$kendo-fab-item-active-bg | var( --kendo-selected-bg, inherit ) | ||
Description
The background color of the active FAB item. | |||
$kendo-fab-item-active-border | k-get-theme-color-var( neutral-110 ) | ||
Description
The border color of the active FAB item. |