Customizing Button
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-button-border-width | Number | $btn-border-width | 1px |
Description
The width of the border around the Button. | |||
$kendo-button-border-radius | Null | null | null |
Description
The border radius of the Button. | |||
$kendo-button-padding-x | Number | $btn-padding-x | 0.75rem |
Description
The horizontal padding of the Button. | |||
$kendo-button-sm-padding-x | Number | $btn-padding-x-sm | 0.5rem |
Description
The horizontal padding of the small Button. | |||
$kendo-button-md-padding-x | Number | $btn-padding-x | 0.75rem |
Description
The horizontal padding of the medium Button. | |||
$kendo-button-lg-padding-x | Number | $btn-padding-x-lg | 1rem |
Description
The horizontal padding of the large Button. | |||
$kendo-button-padding-y | Number | $btn-padding-y | 0.375rem |
Description
The vertical padding of the Button. | |||
$kendo-button-sm-padding-y | Number | $btn-padding-y-sm | 0.25rem |
Description
The vertical padding of the small Button. | |||
$kendo-button-md-padding-y | Number | $btn-padding-y | 0.375rem |
Description
The vertical padding of the medium Button. | |||
$kendo-button-lg-padding-y | Number | $btn-padding-y-lg | 0.5rem |
Description
The vertical padding of the large Button. | |||
$kendo-button-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Button. | |||
$kendo-button-font-size | Number | $btn-font-size | 1rem |
Description
The font size of the Button. | |||
$kendo-button-sm-font-size | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the small Button. | |||
$kendo-button-md-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the medium Button. | |||
$kendo-button-lg-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the large Button. | |||
$kendo-button-line-height | Number | $btn-line-height | 1.5 |
Description
The line height used along with the $kendo-font-size variable. | |||
$kendo-button-sm-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height used along with the $kendo-font-size variable of the small Button. | |||
$kendo-button-md-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height used along with the $kendo-font-size variable of the medium Button. | |||
$kendo-button-lg-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height used along with the $kendo-font-size variable of the large Button. | |||
$kendo-button-calc-size | Calculation | calc( calc( #{$kendo-button-line-height} * 1em ) + calc( #{$kendo-button-padding-y} * 2 ) + #{$kendo-button-border-width * 2} ) | calc(1.5 * 1em + 0.375rem * 2 + 2px) |
Description
The calculated height of the Button. | |||
$kendo-button-inner-calc-size | Calculation | calc( calc( #{$kendo-button-line-height} * 1em ) + calc( #{$kendo-button-padding-y} * 2 ) ) | calc(1.5 * 1em + 0.375rem * 2) |
Description
The calculated inner height of the Button excluding the border width. | |||
$kendo-button-sizes | Map | (
sm: (
padding-x: $kendo-button-sm-padding-x,
padding-y: $kendo-button-sm-padding-y,
font-size: $kendo-button-sm-font-size,
line-height: $kendo-button-sm-line-height
),
md: (
padding-x: $kendo-button-md-padding-x,
padding-y: $kendo-button-md-padding-y,
font-size: $kendo-button-md-font-size,
line-height: $kendo-button-md-line-height
),
lg: (
padding-x: $kendo-button-lg-padding-x,
padding-y: $kendo-button-lg-padding-y,
font-size: $kendo-button-lg-font-size,
line-height: $kendo-button-lg-line-height
)
) |
|
Description
The sizes map for the Button. | |||
$kendo-button-theme-colors | Map | k-map-merge(
$kendo-theme-colors,
( "base": if($kendo-enable-color-system, k-color( base ), #e4e7eb) )
) |
|
Description
The theme colors map for the Button. | |||
$kendo-button-bg | String | if($kendo-enable-color-system, k-color( base ), #e4e7eb) | var(--kendo-color-base, #dee2e6) |
Description
The base background of the Button. | |||
$kendo-button-text | String | if($kendo-enable-color-system, k-color( on-base ), k-contrast-color( $kendo-button-bg, $gray-900 )) | var(--kendo-color-on-base, #212529) |
Description
The base text color of the Button. | |||
$kendo-button-border | String | $kendo-button-bg | var(--kendo-color-base, #dee2e6) |
Description
The base border color of the Button. | |||
$kendo-button-gradient | Null | null | null |
Description
The base background gradient of the Button. | |||
$kendo-button-shadow | Null | null | null |
Description
The base shadow of the Button. | |||
$kendo-button-hover-bg | String | if($kendo-enable-color-system, k-color( base-hover ), k-color-darken( $kendo-button-bg, 7.5% )) | var(--kendo-color-base-hover, #ced4da) |
Description
The base background of the hovered Button. | |||
$kendo-button-hover-text | Null | null | null |
Description
The base text color of the hovered Button. | |||
$kendo-button-hover-border | String | if($kendo-enable-color-system, k-color( base-hover ), k-color-darken( $kendo-button-bg, 10% )) | var(--kendo-color-base-hover, #ced4da) |
Description
The base border color of the hovered Button. | |||
$kendo-button-hover-gradient | Null | null | null |
Description
The base background gradient of the hovered Button. | |||
$kendo-button-hover-shadow | Null | null | null |
Description
The base shadow of the hovered Button. | |||
$kendo-button-active-bg | String | if($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 10% )) | var(--kendo-color-base-active, #bdc4cb) |
Description
The base background color of the active Button. | |||
$kendo-button-active-text | Null | null | null |
Description
The base text color of the active Button. | |||
$kendo-button-active-border | String | if($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 12.5% )) | var(--kendo-color-base-active, #bdc4cb) |
Description
The base border color of the active Button. | |||
$kendo-button-active-gradient | Null | null | null |
Description
The base background gradient of the active Button. | |||
$kendo-button-active-shadow | Null | null | null |
Description
The base shadow of the active Button. | |||
$kendo-button-selected-bg | String | if($kendo-enable-color-system, k-color( primary-active ), k-color-darken( $kendo-color-primary, 10% )) | var(--kendo-color-primary-active, #0a58ca) |
Description
The base background color of the selected Button. | |||
$kendo-button-selected-text | String | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-button-selected-bg )) | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the selected Button. | |||
$kendo-button-selected-border | String | if($kendo-enable-color-system, k-color( primary-active ), k-color-darken( $kendo-color-primary, 12.5% )) | var(--kendo-color-primary-active, #0a58ca) |
Description
The border color of the selected Button. | |||
$kendo-button-selected-gradient | Null | $kendo-button-active-gradient | null |
Description
The background gradient of the selected Button. | |||
$kendo-button-selected-shadow | Null | $kendo-button-active-shadow | null |
Description
The base shadow of the selected Button. | |||
$kendo-button-focus-bg | String | if($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 10% )) | var(--kendo-color-base-active, #bdc4cb) |
Description
The base background of the focused Button. | |||
$kendo-button-focus-text | Null | null | null |
Description
The base text color of the focused Button. | |||
$kendo-button-focus-border | String | if($kendo-enable-color-system, k-color( base-active ), k-color-darken( $kendo-button-bg, 12.5% )) | var(--kendo-color-base-active, #bdc4cb) |
Description
The base border color of the focused Button. | |||
$kendo-button-focus-gradient | Null | null | null |
Description
The base background gradient of the focused Button. | |||
$kendo-button-focus-shadow | List | 0 0 0 .25rem if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 50%, transparent), rgba( $kendo-button-border, .5 )) | 0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-border, rgba(33, 37, 41, 0.13)) 50%, transparent) |
Description
The base shadow of the focused Button. | |||
$kendo-button-disabled-bg | Null | null | null |
Description
The base background of the disabled Button. | |||
$kendo-button-disabled-text | Null | null | null |
Description
The base text color of the disabled Button. | |||
$kendo-button-disabled-border | Null | null | null |
Description
The base border color of the disabled Button. | |||
$kendo-button-disabled-gradient | Null | null | null |
Description
The base background gradient of the disabled Button. | |||
$kendo-button-disabled-shadow | Null | null | null |
Description
The base shadow of the disabled Button. | |||
$kendo-flat-button-hover-opacity | Number | .08 | 0.08 |
Description
The overlay opacity of the hovered flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-focus-opacity | Null | null | null |
Description
The overlay opacity of the focused flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-active-opacity | Number | .16 | 0.16 |
Description
The overlay opacity of the active flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-selected-opacity | Number | .2 | 0.2 |
Description
The overlay opacity of the selected flat Button. Used to create a background for the flat Button. | |||
$kendo-flat-button-focus-ring-opacity | Number | .12 | 0.12 |
Description
The opacity of the flat Button focus ring. Used to create a border for the flat Button. | |||
$kendo-button-transition | List | $kendo-transition | color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out |
Description
The color transition of the Button. |