New to Kendo UI for Angular? Start a free 30-day trial
Customizing Rating
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-rating-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Rating. | |||
$kendo-rating-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Rating. | |||
$kendo-rating-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the Rating. | |||
$kendo-rating-container-margin-x | String | $kendo-padding-sm-x | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal margin of the Rating container. | |||
$kendo-rating-item-padding-x | String | $kendo-padding-sm-x | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Rating item. | |||
$kendo-rating-item-padding-y | String | $kendo-padding-md-y | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Rating item. | |||
$kendo-rating-label-margin-x | String | $kendo-padding-md-x | var(--kendo-spacing-4, 1rem) |
Description
The horizontal margin of the Rating label. | |||
$kendo-rating-label-margin-y | String | $kendo-padding-md-y | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical margin of the Rating label. | |||
$kendo-rating-label-line-height | Number | $kendo-line-height-lg | 2 |
Description
The line height of the Rating label. | |||
$kendo-rating-icon-text | String | $kendo-subtle-text | var(--kendo-color-subtle, #596169) |
Description
The text color of the Rating icon. | |||
$kendo-rating-icon-selected-text | String | $kendo-selected-bg | var(--kendo-color-primary, #0d6efd) |
Description
The text color of the selected Rating icon. | |||
$kendo-rating-icon-hover-text | String | $kendo-selected-bg | var(--kendo-color-primary, #0d6efd) |
Description
The text color of the hovered Rating icon. | |||
$kendo-rating-icon-focus-text | String | $kendo-selected-bg | var(--kendo-color-primary, #0d6efd) |
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. |