Sass Variables
The Telerik and Kendo UI ColorGradient enables you to configure and customize its appearance through the available Sass variables.
Variable | Default Value | Computed Value | Value |
---|---|---|---|
kendo-color-gradient-spacer | k-spacing(3) | var(--kendo-spacing-3, 0.75rem) | Default: k-spacing(3) Computed: var(--kendo-spacing-3, 0.75rem) |
Description: The spacer of the ColorGradient. | |||
kendo-color-gradient-width | 272px | 272px | Default: 272px Computed: 272px |
Description: The width of the ColorGradient. | |||
kendo-color-gradient-border-width | 1px | 1px | Default: 1px Computed: 1px |
Description: The width of the border around the ColorGradient. | |||
kendo-color-gradient-border-radius | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) | Default: k-border-radius(md) Computed: var(--kendo-border-radius-md, 0.25rem) |
Description: The border radius of the ColorGradient. | |||
kendo-color-gradient-padding-y | $kendo-color-gradient-spacer | var(--kendo-spacing-3, 0.75rem) | Default: $kendo-color-gradient-spacer Computed: var(--kendo-spacing-3, 0.75rem) |
Description: The vertical padding of the ColorGradient. | |||
kendo-color-gradient-padding-x | $kendo-color-gradient-padding-y | var(--kendo-spacing-3, 0.75rem) | Default: $kendo-color-gradient-padding-y Computed: var(--kendo-spacing-3, 0.75rem) |
Description: The horizontal padding of the ColorGradient. | |||
kendo-color-gradient-gap | $kendo-color-gradient-spacer | var(--kendo-spacing-3, 0.75rem) | Default: $kendo-color-gradient-spacer Computed: var(--kendo-spacing-3, 0.75rem) |
Description: The spacing between the sections of the ColorGradient. | |||
kendo-color-gradient-font-family | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) | Default: var( --kendo-font-family, inherit ) Computed: var(--kendo-font-family, inherit) |
Description: The font family of the ColorGradient. | |||
kendo-color-gradient-font-size | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) | Default: var( --kendo-font-size, inherit ) Computed: var(--kendo-font-size, inherit) |
Description: The font size of the ColorGradient. | |||
kendo-color-gradient-line-height | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) | Default: var( --kendo-line-height, normal ) Computed: var(--kendo-line-height, normal) |
Description: The line height of the ColorGradient. | |||
kendo-color-gradient-text | $kendo-component-text | var(--kendo-color-on-app-surface, #3d3d3d) | Default: $kendo-component-text Computed: var(--kendo-color-on-app-surface, #3d3d3d) |
Description: The text color of the ColorGradient. | |||
kendo-color-gradient-bg | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) | Default: $kendo-component-bg Computed: var(--kendo-color-surface-alt, #ffffff) |
Description: The background color of the ColorGradient. | |||
kendo-color-gradient-border | $kendo-component-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) | Default: $kendo-component-border Computed: var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description: The border color of the ColorGradient. | |||
kendo-color-gradient-focus-border | null | null | Default: null Computed: null |
Description: The border color of the focused ColorGradient. | |||
kendo-color-gradient-focus-shadow | k-elevation(3) | var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12)) | Default: k-elevation(3) Computed: var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12)) |
Description: The box shadow of the focused ColorGradient. | |||
kendo-color-gradient-canvas-border-radius | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) | Default: k-border-radius(md) Computed: var(--kendo-border-radius-md, 0.25rem) |
Description: The border radius of the ColorGradient canvas. | |||
kendo-color-gradient-canvas-gap | $kendo-color-gradient-spacer | var(--kendo-spacing-3, 0.75rem) | Default: $kendo-color-gradient-spacer Computed: var(--kendo-spacing-3, 0.75rem) |
Description: The spacing between the items of the ColorGradient canvas. | |||
kendo-color-gradient-canvas-rectangle-height | 180px | 180px | Default: 180px Computed: 180px |
Description: The height the ColorGradient canvas hsv rectangle. | |||
kendo-color-gradient-slider-track-size | 10px | 10px | Default: 10px Computed: 10px |
Description: The width of the ColorGradient slider. | |||
kendo-color-gradient-slider-border-radius | 10px | 10px | Default: 10px Computed: 10px |
Description: The border radius of the ColorGradient slider. | |||
kendo-color-gradient-slider-draghandle-border-width | 3px | 3px | Default: 3px Computed: 3px |
Description: The width of the border around the ColorGradient slider drag handle. | |||
kendo-color-gradient-slider-vertical-size | 180px | 180px | Default: 180px Computed: 180px |
Description: The height of the ColorGradient vertical slider. | |||
kendo-color-gradient-slider-horizontal-size | 100% | 100% | Default: 100% Computed: 100% |
Description: The width of the ColorGradient horizontal slider. | |||
kendo-color-gradient-draghandle-width | 14px | 14px | Default: 14px Computed: 14px |
Description: The width of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-height | 14px | 14px | Default: 14px Computed: 14px |
Description: The height of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-border-width | 1px | 1px | Default: 1px Computed: 1px |
Description: The width of the border around the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-outline-width | 1px | 1px | Default: 1px Computed: 1px |
Description: The width of the outline around the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-border-radius | 50% | 50% | Default: 50% Computed: 50% |
Description: The border radius of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-text | null | null | Default: null Computed: null |
Description: The text color of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-bg | transparent | transparent | Default: transparent Computed: transparent |
Description: The background color of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-border | rgba( $kendo-color-white, .8) | rgba(255, 255, 255, 0.8) | Default: rgba( $kendo-color-white, .8) Computed: rgba(255, 255, 255, 0.8) |
Description: The color of the border around the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-focus-shadow | $kendo-color-black | #000000 | Default: $kendo-color-black Computed: #000000 |
Description: The focus color of the outline around the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-hover-shadow | $kendo-color-black | #000000 | Default: $kendo-color-black Computed: #000000 |
Description: The hover color of the outline around the ColorGradient canvas drag handle. | |||
kendo-color-gradient-draghandle-shadow | k-elevation(2) | rgba(0, 0, 0, 0.5) | Default: k-elevation(2) Computed: rgba(0, 0, 0, 0.5) |
Description: The box shadow of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-canvas-draghandle-margin-y | - k-math-div( $kendo-color-gradient-draghandle-height, 2 ) | -7px | Default: - k-math-div( $kendo-color-gradient-draghandle-height, 2 ) Computed: -7px |
Description: The vertical margin of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-canvas-draghandle-margin-x | - k-math-div( $kendo-color-gradient-draghandle-width, 2 ) | -7px | Default: - k-math-div( $kendo-color-gradient-draghandle-width, 2 ) Computed: -7px |
Description: The horizontal margin of the ColorGradient canvas drag handle. | |||
kendo-color-gradient-input-width | 46px | 46px | Default: 46px Computed: 46px |
Description: The width of the ColorGradient input. | |||
kendo-color-gradient-input-gap | calc( #{$kendo-color-gradient-spacer} / 1.5 ) | calc(var(--kendo-spacing-3, 0.75rem) / 1.5) | Default: calc( #{$kendo-color-gradient-spacer} / 1.5 ) Computed: calc(var(--kendo-spacing-3, 0.75rem) / 1.5) |
Description: The spacing between the ColorGradient inputs. | |||
kendo-color-gradient-input-label-gap | calc( #{$kendo-color-gradient-spacer} / 3 ) | calc(var(--kendo-spacing-3, 0.75rem) / 3) | Default: calc( #{$kendo-color-gradient-spacer} / 3 ) Computed: calc(var(--kendo-spacing-3, 0.75rem) / 3) |
Description: The spacing between the ColorGradient inputs and their labels. | |||
kendo-color-gradient-input-label-text | $kendo-subtle-text | var(--kendo-color-subtle, #666666) | Default: $kendo-subtle-text Computed: var(--kendo-color-subtle, #666666) |
Description: The text color of the ColorGradient input labels. | |||
kendo-color-gradient-contrast-ratio-font-weight | var( --kendo-font-weight-bold, normal ) | var(--kendo-font-weight-bold, normal) | Default: var( --kendo-font-weight-bold, normal ) Computed: var(--kendo-font-weight-bold, normal) |
Description: The font weight of the ColorGradient contrast ratio text. | |||
kendo-color-gradient-contrast-spacer | calc( #{$kendo-color-gradient-spacer} / 1.5 ) | calc(var(--kendo-spacing-3, 0.75rem) / 1.5) | Default: calc( #{$kendo-color-gradient-spacer} / 1.5 ) Computed: calc(var(--kendo-spacing-3, 0.75rem) / 1.5) |
Description: The spacing between the items in the ColorGradient contrast tool. |