Customizing Rating
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-rating-font-family | List | $kendo-font-family | Roboto, "Helvetica Neue", sans-serif |
Description
The font family of the Rating. | |||
$kendo-rating-font-size | Number | $kendo-font-size-md | 14px |
Description
The font size of the Rating. | |||
$kendo-rating-line-height | Number | $kendo-line-height-md | 2 |
Description
The line height of the Rating. | |||
$kendo-rating-container-margin-x | Number | k-math-div( $kendo-padding-sm-x, 2 ) | 4px |
Description
The horizontal margin of the Rating container. | |||
$kendo-rating-item-padding-x | Number | k-math-div( $kendo-padding-sm-x, 2 ) | 4px |
Description
The horizontal padding of the Rating item. | |||
$kendo-rating-item-padding-y | Number | $kendo-padding-md-y | 4px |
Description
The vertical padding of the Rating item. | |||
$kendo-rating-label-margin-x | Number | $kendo-padding-sm-x | 8px |
Description
The horizontal margin of the Rating label. | |||
$kendo-rating-label-margin-y | Number | $kendo-padding-md-y | 4px |
Description
The vertical margin of the Rating label. | |||
$kendo-rating-label-line-height | Number | $kendo-line-height-lg | 1.5 |
Description
The line height of the Rating label. | |||
$kendo-rating-icon-text | Color | $kendo-subtle-text | rgba(0, 0, 0, 0.54) |
Description
The text color of the Rating icon. | |||
$kendo-rating-icon-selected-text | Color | $kendo-color-primary-darker | #303f9f |
Description
The text color of the selected Rating icon. | |||
$kendo-rating-icon-hover-text | Color | $kendo-color-primary-darker | #303f9f |
Description
The text color of the hovered Rating icon. | |||
$kendo-rating-icon-focus-text | Color | $kendo-color-primary-darker | #303f9f |
Description
The text color of the focused Rating icon. | |||
$kendo-rating-icon-focus-shadow | List | 0 2px 4px rgba( black, .1 ) | 0 2px 4px rgba(0, 0, 0, 0.1) |
Description
The shadow of the focused Rating icon. | |||
$kendo-rating-icon-focus-selected-shadow | List | 0 2px 4px rgba( black, .1) | 0 2px 4px rgba(0, 0, 0, 0.1) |
Description
The shadow of the focused and selected Rating icon. |