New to Kendo UI for Angular? Start a free 30-day trial
Customizing Drawer
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-drawer-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the Drawer. | |||
$kendo-drawer-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The text color of the Drawer. | |||
$kendo-drawer-border | String | $kendo-component-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the Drawer. | |||
$kendo-drawer-border-width | Number | 1px | 1px |
Description
The border width of the Drawer. | |||
$kendo-drawer-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Drawer. | |||
$kendo-drawer-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Drawer. | |||
$kendo-drawer-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the Drawer. | |||
$kendo-drawer-content-padding-x | Null | null | null |
Description
The horizontal padding of the Drawer content. | |||
$kendo-drawer-content-padding-y | Null | null | null |
Description
The vertical padding of the Drawer content. | |||
$kendo-drawer-scrollbar-width | Number | 7px | 7px |
Description
The width of the Drawer scrollbar. | |||
$kendo-drawer-scrollbar-color | Color | rgba(156, 156, 156, .7) | rgba(156, 156, 156, 0.7) |
Description
The color of the Drawer scrollbar track. | |||
$kendo-drawer-scrollbar-bg | Color | #dedede | #dedede |
Description
The background color of the Drawer scrollbar thumb. | |||
$kendo-drawer-scrollbar-radius | Number | 20px | 20px |
Description
The border radius of the Drawer scrollbar. | |||
$kendo-drawer-scrollbar-hover-color | Color | rgba(156, 156, 156, 1) | rgb(156, 156, 156) |
Description
The hover color of the Drawer scrollbar track. | |||
$kendo-drawer-item-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the Drawer item. | |||
$kendo-drawer-item-padding-y | String | $kendo-padding-md-x | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Drawer item. | |||
$kendo-drawer-item-font-size | String | var( --kendo-font-size-lg, inherit ) | var(--kendo-font-size-lg, inherit) |
Description
The font size of the Drawer item. | |||
$kendo-drawer-item-line-height | String | var( --kendo-line-height-lg, normal ) | var(--kendo-line-height-lg, normal) |
Description
The line height of the Drawer item. | |||
$kendo-drawer-item-level-padding-x | String | $kendo-drawer-item-padding-x | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the Drawer item in each level. | |||
$kendo-drawer-item-level-count | Number | 5 | 5 |
Description
The count of the Drawer item levels. | |||
$kendo-drawer-icon-padding-x | String | k-spacing(0) | var(--kendo-spacing-0, 0px) |
Description
The horizontal padding of the Drawer icon. | |||
$kendo-drawer-icon-padding-y | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the Drawer icon. | |||
$kendo-drawer-mini-initial-width | Calculation | calc(2 * #{$kendo-drawer-item-padding-x} + #{$kendo-icon-size}) | calc(2 * var(--kendo-spacing-4, 1rem) + 16px) |
Description
The initial width of the mini Drawer. | |||
$kendo-drawer-hover-bg | String | $kendo-hover-bg | var(--kendo-color-base-hover, #ebebeb) |
Description
The background color of the hovered Drawer item. | |||
$kendo-drawer-hover-text | String | $kendo-hover-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The text color of the hovered Drawer item. | |||
$kendo-drawer-focus-bg | String | $kendo-drawer-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the focused Drawer item. | |||
$kendo-drawer-focus-shadow | List | $kendo-list-item-focus-shadow | inset 0 0 0 2px rgba(0, 0, 0, 0.12) |
Description
The box shadow of the focused Drawer item. | |||
$kendo-drawer-selected-bg | String | $kendo-selected-bg | var(--kendo-color-primary, #ff6358) |
Description
The background color of the selected Drawer item. | |||
$kendo-drawer-selected-text | String | $kendo-selected-text | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the selected Drawer item. | |||
$kendo-drawer-selected-hover-bg | String | $kendo-selected-hover-bg | var(--kendo-color-primary-hover, #ea5a51) |
Description
The background color of the selected and hovered Drawer item. | |||
$kendo-drawer-selected-hover-text | String | $kendo-selected-hover-text | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the selected and hovered Drawer item. |