New to Kendo UI for Angular? Start a free 30-day trial
Customizing Timeline
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-timeline-spacing-x | String | k-spacing(10) | var(--kendo-spacing-10, 2.5rem) |
Description
The horizontal spacing of the Timeline. | |||
$kendo-timeline-spacing-y | String | k-spacing(10) | var(--kendo-spacing-10, 2.5rem) |
Description
The vertical spacing of the Timeline. | |||
$kendo-timeline-items-padding | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The padding between the Timeline's track items. | |||
$kendo-timeline-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Timeline. | |||
$kendo-timeline-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Timeline. | |||
$kendo-timeline-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the Timeline. | |||
$kendo-timeline-mobile-spacing-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal spacing of the mobile Timeline. | |||
$kendo-timeline-mobile-spacing-y | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The vertical spacing of the mobile Timeline. | |||
$kendo-timeline-track-arrow-width | Number | 30px | 30px |
Description
The width of the Timeline track arrow. | |||
$kendo-timeline-track-arrow-height | Number | 30px | 30px |
Description
The height of the Timeline track arrow. | |||
$kendo-timeline-track-arrow-disabled-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( base-subtle ) 60%, transparent), k-true-mix($kendo-button-bg, $kendo-body-bg, 65%)) | color-mix(in srgb, var(--kendo-color-base-subtle, #ebebeb) 60%, transparent) |
Description
The background color of the disabled Timeline track arrow. | |||
$kendo-timeline-track-arrow-disabled-text | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-base ) 60%, transparent), k-true-mix($kendo-button-text, $kendo-body-bg, 65%)) | color-mix(in srgb, var(--kendo-color-on-base, #3d3d3d) 60%, transparent) |
Description
The text color of the disabled Timeline track arrow. | |||
$kendo-timeline-track-arrow-disabled-border | String | if($kendo-enable-color-system, k-color( border ), k-true-mix(#000000, $kendo-body-bg, 4.8%)) | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the disabled Timeline track arrow. | |||
$kendo-timeline-track-size | Number | 6px | 6px |
Description
The size of the Timeline track. | |||
$kendo-timeline-track-wrap-padding-bottom | Number | k-math-div( $kendo-timeline-track-size, 2 ) | 3px |
Description
The bottom padding of the Timeline's track wrapper. | |||
$kendo-timeline-track-border-width | Number | 1px | 1px |
Description
The border width of the Timeline track. | |||
$kendo-timeline-track-margin-bottom | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The bottom margin of the Timeline track. | |||
$kendo-timeline-track-bottom-calc | Calculation | calc(#{k-math-div( $kendo-timeline-track-arrow-height, 2 )} + #{$kendo-timeline-track-wrap-padding-bottom}) | calc(15px + 3px) |
Description
The bottom offset of the Timeline track. | |||
$kendo-timeline-track-start-calc | Calculation | calc(#{$kendo-timeline-track-arrow-width} - 2 * #{$kendo-timeline-track-border-width}) | calc(30px - 2 * 1px) |
Description
The left offset of the Timeline track. | |||
$kendo-timeline-track-end-calc | Calculation | calc(#{$kendo-timeline-track-arrow-width} - 2 * #{$kendo-timeline-track-border-width}) | calc(30px - 2 * 1px) |
Description
The right offset of the Timeline track. | |||
$kendo-timeline-track-bg | String | $kendo-button-bg | var(--kendo-color-base, #f5f5f5) |
Description
The background color of the Timeline track. | |||
$kendo-timeline-track-border-color | String | $kendo-button-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the Timeline track. | |||
$kendo-timeline-track-item-focus-shadow | String | k-elevation(2) | var(--kendo-elevation-2, 0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12)) |
Description
The shadow of the Timeline's focused track items. | |||
$kendo-timeline-track-event-offset | Number | 36px | 36px |
Description
The offset of the Timeline track event. | |||
$kendo-timeline-flag-padding-x | String | $kendo-button-padding-x | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Timeline flag. | |||
$kendo-timeline-flag-padding-y | String | $kendo-button-padding-y | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the Timeline flag. | |||
$kendo-timeline-flag-line-height | String | $kendo-button-line-height | var(--kendo-line-height, normal) |
Description
The line height of the Timeline flag. | |||
$kendo-timeline-flag-min-width | Number | 80px | 80px |
Description
The minimum width of the Timeline flag. | |||
$kendo-timeline-flag-max-width | Calculation | calc(#{$kendo-timeline-flag-min-width} + 2 * #{$kendo-timeline-spacing-x}) | calc(80px + 2 * var(--kendo-spacing-10, 2.5rem)) |
Description
The maximum width of the Timeline flag. | |||
$kendo-timeline-mobile-flag-max-width | Calculation | calc(#{$kendo-timeline-flag-min-width} + 2 * #{$kendo-timeline-mobile-spacing-x}) | calc(80px + 2 * var(--kendo-spacing-4, 1rem)) |
Description
The maximum width of the mobile Timeline flag. | |||
$kendo-timeline-horizontal-flag-min-width | Number | 60px | 60px |
Description
The minimum width of the horizontal Timeline flag. | |||
$kendo-timeline-flag-bg | String | $kendo-color-primary | var(--kendo-color-primary, #ff6358) |
Description
The background color of the Timeline flag. | |||
$kendo-timeline-flag-text | String | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-timeline-flag-bg )) | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the Timeline flag. | |||
$kendo-timeline-flag-callout-width | Number | 10px | 10px |
Description
The width of the Timeline's flag callout. | |||
$kendo-timeline-flag-callout-height | Number | 10px | 10px |
Description
The height of the Timeline's flag callout. | |||
$kendo-timeline-flag-offset-bottom | Number | 4px | 4px |
Description
The bottom offset of the Timeline flag. | |||
$kendo-timeline-flag-margin-bottom-calc | Calculation | calc(#{$kendo-timeline-track-size} + 2 * #{$kendo-timeline-track-border-width} + #{$kendo-timeline-flag-offset-bottom} + #{$kendo-timeline-flag-callout-height}) | calc(6px + 2 * 1px + 4px + 10px) |
Description
The bottom margin of the Timeline flag. | |||
$kendo-timeline-date-width | Number | 50px | 50px |
Description
The width of the Timeline date. | |||
$kendo-timeline-date-margin-bottom | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The bottom margin of the Timeline date. | |||
$kendo-timeline-vertical-padding-calc | Calculation | calc(#{$kendo-timeline-spacing-x} + (#{$kendo-timeline-flag-min-width} - #{$kendo-timeline-track-size}) / 2) | calc(var(--kendo-spacing-10, 2.5rem) + (80px - 6px) / 2) |
Description
The padding of the vertical Timeline. | |||
$kendo-timeline-vertical-padding-with-dates-calc | Calculation | calc(#{$kendo-timeline-vertical-padding-calc} + #{$kendo-timeline-date-width}) | calc(calc(var(--kendo-spacing-10, 2.5rem) + (80px - 6px) / 2) + 50px) |
Description
The padding of the vertical Timeline date. | |||
$kendo-timeline-mobile-vertical-padding-calc | Calculation | calc(#{$kendo-timeline-mobile-spacing-x} + (#{$kendo-timeline-flag-min-width} - #{$kendo-timeline-track-size}) / 2) | calc(var(--kendo-spacing-4, 1rem) + (80px - 6px) / 2) |
Description
The padding of the vertical mobile Timeline. | |||
$kendo-timeline-mobile-vertical-padding-with-dates-calc | Calculation | calc(#{$kendo-timeline-mobile-vertical-padding-calc} + #{$kendo-timeline-date-width}) | calc(calc(var(--kendo-spacing-4, 1rem) + (80px - 6px) / 2) + 50px) |
Description
The padding of the vertical mobile Timeline date. | |||
$kendo-timeline-circle-width | Number | 16px | 16px |
Description
The width of the Timeline circle. | |||
$kendo-timeline-circle-height | Number | 16px | 16px |
Description
The height of the Timeline circle. | |||
$kendo-timeline-circle-bg | String | $kendo-color-primary | var(--kendo-color-primary, #ff6358) |
Description
The background color of the Timeline circle. | |||
$kendo-timeline-collapse-arrow-padding-x | String | $kendo-padding-md-x | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Timeline collapse arrow. | |||
$kendo-timeline-event-width | Number | 400px | 400px |
Description
The width of the Timeline event. | |||
$kendo-timeline-event-height | Number | 600px | 600px |
Description
The height of the Timeline event. | |||
$kendo-timeline-event-min-height-calc | Calculation | calc(2 * (#{$kendo-timeline-track-event-offset} - #{$kendo-card-border-width})) | calc(2 * (36px - 1px)) |
Description
The minimum height of the Timeline event. |