Sass Variables
The Telerik and Kendo UI Button enables you to configure and customize its appearance through the available Sass variables.
Variable | Default Value | Computed Value | Value |
---|---|---|---|
kendo-button-border-width | 1px | 1px | Default: 1px Computed: 1px |
Description: The width of the border around the Button. | |||
kendo-button-border-radius | null | null | Default: null Computed: null |
Description: The border radius of the Button. | |||
kendo-button-padding-x | k-map-get( $kendo-spacing, 2 ) | 8px | Default: k-map-get( $kendo-spacing, 2 ) Computed: 8px |
Description: The horizontal padding of the Button. | |||
kendo-button-sm-padding-x | k-map-get( $kendo-spacing, 2 ) | 8px | Default: k-map-get( $kendo-spacing, 2 ) Computed: 8px |
Description: The horizontal padding of the small Button. | |||
kendo-button-md-padding-x | $kendo-button-padding-x | 8px | Default: $kendo-button-padding-x Computed: 8px |
Description: The horizontal padding of the medium Button. | |||
kendo-button-lg-padding-x | k-map-get( $kendo-spacing, 2 ) | 8px | Default: k-map-get( $kendo-spacing, 2 ) Computed: 8px |
Description: The horizontal padding of the large Button. | |||
kendo-button-padding-y | k-map-get( $kendo-spacing, 1 ) | 4px | Default: k-map-get( $kendo-spacing, 1 ) Computed: 4px |
Description: The vertical padding of the Button. | |||
kendo-button-sm-padding-y | k-map-get( $kendo-spacing, 0.5 ) | 2px | Default: k-map-get( $kendo-spacing, 0.5 ) Computed: 2px |
Description: The vertical padding of the small Button. | |||
kendo-button-md-padding-y | $kendo-button-padding-y | 4px | Default: $kendo-button-padding-y Computed: 4px |
Description: The vertical padding of the medium Button. | |||
kendo-button-lg-padding-y | k-map-get( $kendo-spacing, 2 ) | 8px | Default: k-map-get( $kendo-spacing, 2 ) Computed: 8px |
Description: The vertical padding of the large Button. | |||
kendo-button-font-family | $kendo-font-family | inherit | Default: $kendo-font-family Computed: inherit |
Description: The font family of the Button. | |||
kendo-button-font-size | $kendo-font-size-md | 14px | Default: $kendo-font-size-md Computed: 14px |
Description: The font size of the Button. | |||
kendo-button-sm-font-size | $kendo-font-size-md | 14px | Default: $kendo-font-size-md Computed: 14px |
Description: The font size of the small Button. | |||
kendo-button-md-font-size | $kendo-button-font-size | 14px | Default: $kendo-button-font-size Computed: 14px |
Description: The font size of the medium Button. | |||
kendo-button-lg-font-size | $kendo-font-size-lg | 16px | Default: $kendo-font-size-lg Computed: 16px |
Description: The font size of the large Button. | |||
kendo-button-line-height | $kendo-line-height-md | 1.4285714286 | Default: $kendo-line-height-md Computed: 1.4285714286 |
Description: The line height used along with the $kendo-font-size the. | |||
kendo-button-sm-line-height | $kendo-line-height-md | 1.4285714286 | Default: $kendo-line-height-md Computed: 1.4285714286 |
Description: The line height used along with the $kendo-font-size the of the small Button. | |||
kendo-button-md-line-height | $kendo-button-line-height | 1.4285714286 | Default: $kendo-button-line-height Computed: 1.4285714286 |
Description: The line height used along with the $kendo-font-size the of the medium Button. | |||
kendo-button-lg-line-height | $kendo-line-height-lg | 1.5 | Default: $kendo-line-height-lg Computed: 1.5 |
Description: The line height used along with the $kendo-font-size the of the large Button. | |||
kendo-button-calc-size | calc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} + #{$kendo-button-border-width * 2} ) | calc(1.4285714286em + 8px + 2px) | Default: calc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} + #{$kendo-button-border-width * 2} ) Computed: calc(1.4285714286em + 8px + 2px) |
Description: The calculated height of the Button. | |||
kendo-button-inner-calc-size | calc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} ) | calc(1.4285714286em + 8px) | Default: calc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} ) Computed: calc(1.4285714286em + 8px) |
Description: The calculated inner height of the Button excluding the border width. | |||
kendo-button-sizes | (
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
)
) | (sm: (padding-x: 8px, padding-y: 2px, font-size: 14px, line-height: 1.4285714286), md: (padding-x: 8px, padding-y: 4px, font-size: 14px, line-height: 1.4285714286), lg: (padding-x: 8px, padding-y: 8px, font-size: 16px, line-height: 1.5)) | Default: (
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
)
) Computed: (sm: (padding-x: 8px, padding-y: 2px, font-size: 14px, line-height: 1.4285714286), md: (padding-x: 8px, padding-y: 4px, font-size: 14px, line-height: 1.4285714286), lg: (padding-x: 8px, padding-y: 8px, font-size: 16px, line-height: 1.5)) |
Description: The sizes map for the Button. | |||
kendo-button-theme-colors | k-map-merge(
$kendo-theme-colors,
( "base": if($kendo-enable-color-system, k-color( base ), #f5f5f5) )
) | ("primary": #ff6358, "secondary": #666666, "tertiary": #03a9f4, "info": #0058e9, "success": #37b400, "warning": #ffc000, "error": #f31700, "dark": #424242, "light": #ebebeb, "inverse": #424242, "base": #f5f5f5) | Default: k-map-merge(
$kendo-theme-colors,
( "base": if($kendo-enable-color-system, k-color( base ), #f5f5f5) )
) Computed: ("primary": #ff6358, "secondary": #666666, "tertiary": #03a9f4, "info": #0058e9, "success": #37b400, "warning": #ffc000, "error": #f31700, "dark": #424242, "light": #ebebeb, "inverse": #424242, "base": #f5f5f5) |
Description: The theme colors map for the Button. | |||
kendo-button-bg | if($kendo-enable-color-system, k-color( base ), #f5f5f5) | #f5f5f5 | Default: if($kendo-enable-color-system, k-color( base ), #f5f5f5) Computed: #f5f5f5 |
Description: The base background of the Button. | |||
kendo-button-text | if($kendo-enable-color-system, k-color( on-base ), #424242) | #424242 | Default: if($kendo-enable-color-system, k-color( on-base ), #424242) Computed: #424242 |
Description: The base text color of the Button. | |||
kendo-button-border | if($kendo-enable-color-system, k-color( border ), rgba( black, .08 )) | rgba(0, 0, 0, 0.08) | Default: if($kendo-enable-color-system, k-color( border ), rgba( black, .08 )) Computed: rgba(0, 0, 0, 0.08) |
Description: The base border color of the Button. | |||
kendo-button-gradient | if($kendo-enable-color-system, null, (rgba( black, 0 ), rgba( black, .02 ))) | rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.02) | Default: if($kendo-enable-color-system, null, (rgba( black, 0 ), rgba( black, .02 ))) Computed: rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.02) |
Description: The base background gradient of the Button. | |||
kendo-button-shadow | null | null | Default: null Computed: null |
Description: The base shadow of the Button. | |||
kendo-button-hover-bg | if($kendo-enable-color-system, k-color( base-hover ), k-try-shade( $kendo-button-bg, .5 )) | #ebebeb | Default: if($kendo-enable-color-system, k-color( base-hover ), k-try-shade( $kendo-button-bg, .5 )) Computed: #ebebeb |
Description: The base background of the hovered Button. | |||
kendo-button-hover-text | null | null | Default: null Computed: null |
Description: The base text color of the hovered Button. | |||
kendo-button-hover-border | null | null | Default: null Computed: null |
Description: The base border color of the hovered Button. | |||
kendo-button-hover-gradient | null | null | Default: null Computed: null |
Description: The base background gradient of the hovered Button. | |||
kendo-button-hover-shadow | null | null | Default: null Computed: null |
Description: The base shadow of the hovered Button. | |||
kendo-button-active-bg | if($kendo-enable-color-system, k-color( base-active ), k-try-shade( $kendo-button-bg, 1.5 )) | #d8d8d8 | Default: if($kendo-enable-color-system, k-color( base-active ), k-try-shade( $kendo-button-bg, 1.5 )) Computed: #d8d8d8 |
Description: The base background color of the active Button. | |||
kendo-button-active-text | null | null | Default: null Computed: null |
Description: The base text color of the active Button. | |||
kendo-button-active-border | null | null | Default: null Computed: null |
Description: The base border color of the active Button. | |||
kendo-button-active-gradient | null | null | Default: null Computed: null |
Description: The base background gradient of the active Button. | |||
kendo-button-active-shadow | null | null | Default: null Computed: null |
Description: The base shadow of the active Button. | |||
kendo-button-selected-bg | $kendo-color-primary | #ff6358 | Default: $kendo-color-primary Computed: #ff6358 |
Description: The base background color of the selected Button. | |||
kendo-button-selected-text | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-button-selected-bg )) | white | Default: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-button-selected-bg )) Computed: white |
Description: The text color of the selected Button. | |||
kendo-button-selected-border | $kendo-button-selected-bg | #ff6358 | Default: $kendo-button-selected-bg Computed: #ff6358 |
Description: The border color of the selected Button. | |||
kendo-button-selected-gradient | $kendo-button-active-gradient | null | Default: $kendo-button-active-gradient Computed: null |
Description: The background gradient of the selected Button. | |||
kendo-button-selected-shadow | $kendo-button-active-shadow | null | Default: $kendo-button-active-shadow Computed: null |
Description: The base shadow of the selected Button. | |||
kendo-button-focus-bg | null | null | Default: null Computed: null |
Description: The base background of the focused Button. | |||
kendo-button-focus-text | null | null | Default: null Computed: null |
Description: The base text color of the focused Button. | |||
kendo-button-focus-border | null | null | Default: null Computed: null |
Description: The base border color of the focused Button. | |||
kendo-button-focus-gradient | null | null | Default: null Computed: null |
Description: The base background gradient of the focused Button. | |||
kendo-button-focus-shadow | 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), .08), rgba( $kendo-button-border, .08 )) | 0 0 0 2px rgba(0, 0, 0, 0.08) | Default: 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), .08), rgba( $kendo-button-border, .08 )) Computed: 0 0 0 2px rgba(0, 0, 0, 0.08) |
Description: The base shadow of the focused Button. | |||
kendo-button-disabled-bg | null | null | Default: null Computed: null |
Description: The base background of the disabled Button. | |||
kendo-button-disabled-text | null | null | Default: null Computed: null |
Description: The base text color of the disabled Button. | |||
kendo-button-disabled-border | null | null | Default: null Computed: null |
Description: The base border color of the disabled Button. | |||
kendo-button-disabled-gradient | null | null | Default: null Computed: null |
Description: The base background gradient of the disabled Button. | |||
kendo-button-disabled-shadow | null | null | Default: null Computed: null |
Description: The base shadow of the disabled Button. | |||
kendo-flat-button-hover-opacity | .04 | 0.04 | Default: .04 Computed: 0.04 |
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 | Default: null Computed: null |
Description: The overlay opacity of the focused flat Button. Used to create a background for the flat Button. | |||
kendo-flat-button-active-opacity | .16 | 0.16 | Default: .16 Computed: 0.16 |
Description: The overlay opacity of the active flat Button. Used to create background for the flat Button. | |||
kendo-flat-button-selected-opacity | .2 | 0.2 | Default: .2 Computed: 0.2 |
Description: The overlay opacity of the selected flat Button. Used to create background for the flat Button. | |||
kendo-flat-button-focus-ring-opacity | .12 | 0.12 | Default: .12 Computed: 0.12 |
Description: The opacity of the flat Button focus ring. Used to create a border for the flat Button. | |||
kendo-button-transition | color .2s ease-in-out | color 0.2s ease-in-out | Default: color .2s ease-in-out Computed: color 0.2s ease-in-out |
Description: The color transition of the flat Button. |