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 | var( --kendo-component-bg, initial ) | var(--kendo-component-bg, initial) |
Description
The background color of the Drawer. | |||
$kendo-drawer-text | String | var( --kendo-component-text, initial ) | var(--kendo-component-text, initial) |
Description
The text color of the Drawer. | |||
$kendo-drawer-border | String | var( --kendo-component-border, initial ) | var(--kendo-component-border, initial) |
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, inherit ) | var(--kendo-line-height, inherit) |
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 | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 46%, transparent), k-get-theme-color-var( neutral-90 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 46%, transparent) |
Description
The color of the Drawer scrollbar. | |||
$kendo-drawer-scrollbar-bg | String | if($kendo-enable-color-system, k-color( base-subtle ), k-get-theme-color-var( neutral-40 )) | var(--kendo-color-base-subtle, #edebe9) |
Description
The background of the Drawer scrollbar. | |||
$kendo-drawer-scrollbar-radius | Number | 20px | 20px |
Description
The border radius of the Drawer scrollbar. | |||
$kendo-drawer-scrollbar-hover-color | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 60%, transparent), k-get-theme-color-var( neutral-110 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 60%, transparent) |
Description
The hover color of the Drawer scrollbar. | |||
$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 | var( --kendo-padding-x, #{$kendo-padding-md-x} ) | var(--kendo-padding-x, var(--kendo-spacing-2, 0.5rem)) |
Description
The vertical padding of the Drawer item. | |||
$kendo-drawer-item-font-size | String | $kendo-drawer-font-size | var(--kendo-font-size, 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} + var( --kendo-icon-size, 1rem ) ) | calc(2 * var(--kendo-spacing-4, 1rem) + var(--kendo-icon-size, 1rem)) |
Description
The initial width of the mini Drawer. | |||
$kendo-drawer-item-ripple-border-width | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The border width of the Drawer item ripple. | |||
$kendo-drawer-item-ripple-border | String | if($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 )) | var(--kendo-color-primary, #0078d4) |
Description
The border color of the drawer item ripple | |||
$kendo-drawer-item-bg | String | $kendo-drawer-bg | var(--kendo-component-bg, initial) |
Description
The background color of the Drawer item. | |||
$kendo-drawer-item-text | String | $kendo-drawer-text | var(--kendo-component-text, initial) |
Description
The text color of the Drawer item. | |||
$kendo-drawer-item-icon-text | String | if($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 )) | var(--kendo-color-primary, #0078d4) |
Description
The text color of the Drawer item icon. | |||
$kendo-drawer-item-hover-bg | String | $kendo-drawer-item-bg | var(--kendo-component-bg, initial) |
Description
The background color of the hovered Drawer item. | |||
$kendo-drawer-item-hover-text | String | if($kendo-enable-color-system, k-color( primary-hover ), k-get-theme-color-var( primary-110 )) | var(--kendo-color-primary-hover, #106ebe) |
Description
The text color of the hovered Drawer item. | |||
$kendo-drawer-item-hover-icon-text | String | if($kendo-enable-color-system, k-color( primary-hover ), k-get-theme-color-var( primary-110 )) | var(--kendo-color-primary-hover, #106ebe) |
Description
The text color of the hovered Drawer item icon. | |||
$kendo-drawer-item-focus-bg | String | $kendo-drawer-item-bg | var(--kendo-component-bg, initial) |
Description
The background color of the focused Drawer item. | |||
$kendo-drawer-item-focus-text | String | $kendo-drawer-item-text | var(--kendo-component-text, initial) |
Description
The text color of the focused Drawer item. | |||
$kendo-drawer-item-focus-shadow | List | inset 0 0 0 1px if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130)) | inset 0 0 0 1px var(--kendo-color-base-emphasis, #605e5c) |
Description
The box shadow of the focused Drawer item. | |||
$kendo-drawer-item-focus-icon-text | String | $kendo-drawer-item-icon-text | var(--kendo-color-primary, #0078d4) |
Description
The text color of the focused Drawer item icon. | |||
$kendo-drawer-item-selected-font-weight | String | var( --kendo-font-weight-bold, normal ) | var(--kendo-font-weight-bold, normal) |
Description
The font weight of the selected Drawer item. | |||
$kendo-drawer-item-selected-bg | String | var( --kendo-selected-bg, initial ) | var(--kendo-selected-bg, initial) |
Description
The background color of the selected Drawer item. | |||
$kendo-drawer-item-selected-text | String | if($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black) | var(--kendo-color-on-app-surface, #323130) |
Description
The text color of the selected Drawer item. | |||
$kendo-drawer-item-selected-icon-text | String | if($kendo-enable-color-system, k-color( primary-active ), k-get-theme-color-var( primary-120 )) | var(--kendo-color-primary-active, #005a9e) |
Description
The text color of the selected Drawer item icon. | |||
$kendo-drawer-item-selected-hover-bg | String | var( --kendo-selected-hover-bg, inherit ) | var(--kendo-selected-hover-bg, inherit) |
Description
The background color of the selected and hovered Drawer item. | |||
$kendo-drawer-item-selected-hover-text | String | var( --kendo-selected-hover-text, inherit ) | var(--kendo-selected-hover-text, inherit) |
Description
The text color of the selected and hovered Drawer item. |