New to Kendo UI for Vue? Start a free 30-day trial
Customizing Tooltip
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-tooltip-padding-y | Number | ($kendo-padding-md-y * .75) | 3px |
Description
The vertical padding of the Tooltip. | |||
$kendo-tooltip-padding-x | Number | k-math-div( $kendo-padding-md-x, 2 ) | 8px |
Description
The horizontal padding of the Tooltip. | |||
$kendo-tooltip-border-width | Number | 0px | 0px |
Description
The width of the border around the Tooltip. | |||
$kendo-tooltip-border-radius | Number | $kendo-border-radius-md | 4px |
Description
The border radius of the Tooltip. | |||
$kendo-tooltip-font-family | List | $kendo-font-family | Roboto, "Helvetica Neue", sans-serif |
Description
The font family of the Tooltip. | |||
$kendo-tooltip-font-size | Number | $kendo-font-size-sm | 12px |
Description
The font size of the Tooltip. | |||
$kendo-tooltip-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the Tooltip. | |||
$kendo-tooltip-title-font-size | Number | ($kendo-tooltip-font-size * 1.25) | 15px |
Description
The font size of the Tooltip title. | |||
$kendo-tooltip-title-line-height | Number | 1 | 1 |
Description
The line height of the Tooltip title. | |||
$kendo-tooltip-callout-size | Number | 6px | 6px |
Description
The size of the Tooltip callout. | |||
$kendo-tooltip-bg | Color | material-color( gray, 700, .9 ) | rgba(97, 97, 97, 0.9) |
Description
The default background of the Tooltip. | |||
$kendo-tooltip-text | Color | get-base-contrast( gray, 700 ) | #ffffff |
Description
The default text color of the Tooltip. | |||
$kendo-tooltip-border | Color | $kendo-tooltip-bg | rgba(97, 97, 97, 0.9) |
Description
The default border color of the Tooltip. | |||
$kendo-tooltip-shadow | String | $box-shadow-depth-2 | var(--kendo-elevation-2, 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 3px 1px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14)) |
Description
The box-shadow of the Tooltip. | |||
$kendo-tooltip-theme-colors | Map | $kendo-theme-colors | ("primary": #3f51b5, "secondary": #e51a5f, "tertiary": #00695c, "info": #0058e9, "success": #37b400, "warning": #ffc000, "error": #f31700, "dark": #424242, "light": #f5f5f5, "inverse": #424242) |
Description
The theme colors map for the Tooltip. | |||
$kendo-tooltip-theme | Map | tooltip-theme( $kendo-tooltip-theme-colors ) | ("inverse": (color: white, background-color: #424242, border: #424242), "light": (color: black, background-color: #f5f5f5, border: #f5f5f5), "dark": (color: white, background-color: #424242, border: #424242), "error": (color: black, background-color: #f31700, border: #f31700), "warning": (color: black, background-color: #ffc000, border: #ffc000), "success": (color: black, background-color: #37b400, border: #37b400), "info": (color: white, background-color: #0058e9, border: #0058e9), "tertiary": (color: white, background-color: #00695c, border: #00695c), "secondary": (color: white, background-color: #e51a5f, border: #e51a5f), "primary": (color: white, background-color: #3f51b5, border: #3f51b5)) |
Description
The generated theme colors map for the Tooltip. |