Customizing Card
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-card-padding-x | Number | k-map-get( $kendo-spacing, 4 ) | 16px |
Description
The horizontal padding of the Card. | |||
$kendo-card-padding-y | Number | k-map-get( $kendo-spacing, 3 ) | 12px |
Description
The vertical padding of the Card. | |||
$kendo-card-border-width | Number | 0px | 0px |
Description
The width of the border around the Card. | |||
$kendo-card-border-radius | Number | $kendo-border-radius-md | 4px |
Description
The border radius of the Card. | |||
$kendo-card-inner-border-radius | Calculation | calc( #{$kendo-card-border-radius} - #{$kendo-card-border-width} ) | calc(4px - 0px) |
Description
The inner border radius of the Card. | |||
$kendo-card-font-family | List | $kendo-font-family | Roboto, "Helvetica Neue", sans-serif |
Description
The font family of the Card. | |||
$kendo-card-font-size | Number | $kendo-font-size-md | 14px |
Description
The font size of the Card. | |||
$kendo-card-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the Card. | |||
$kendo-card-deck-gap | Number | k-map-get( $kendo-spacing, 4 ) | 16px |
Description
The spacing between the Cards in the Card deck. | |||
$kendo-card-bg | Color | $kendo-component-bg | #ffffff |
Description
The background color of the Card. | |||
$kendo-card-text | Color | $kendo-component-text | rgba(0, 0, 0, 0.87) |
Description
The text color of the Card. | |||
$kendo-card-border | Color | $kendo-component-border | rgba(0, 0, 0, 0.12) |
Description
The border color of the Card. | |||
$kendo-card-shadow | String | $box-shadow-depth-1 | var(--kendo-elevation-1, 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 2px 1px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)) |
Description
The shadow of the Card. | |||
$kendo-card-focus-bg | Null | null | null |
Description
The background color of the focused Card. | |||
$kendo-card-focus-text | Null | null | null |
Description
The text color of the focused Card. | |||
$kendo-card-focus-border | Null | null | null |
Description
The border color of the focused Card. | |||
$kendo-card-focus-shadow | String | $box-shadow-depth-3 | var(--kendo-elevation-3, 0px 1px 8px 0px rgba(0, 0, 0, 0.2), 0px 3px 3px 0px rgba(0, 0, 0, 0.12), 0px 3px 4px 0px rgba(0, 0, 0, 0.14)) |
Description
The shadow of the focused Card. | |||
$kendo-card-header-padding-x | Number | $kendo-card-padding-x | 16px |
Description
The horizontal padding of the Card header. | |||
$kendo-card-header-padding-y | Number | $kendo-card-padding-y | 12px |
Description
The vertical padding of the Card header. | |||
$kendo-card-header-border-width | Number | 1px | 1px |
Description
The bottom border width of the Card header. | |||
$kendo-card-header-bg | Null | null | null |
Description
The background color of the Card header. | |||
$kendo-card-header-text | Null | null | null |
Description
The text color of the Card header. | |||
$kendo-card-header-border | Color | $kendo-card-border | rgba(0, 0, 0, 0.12) |
Description
The border color of the Card header. | |||
$kendo-card-body-padding-x | Number | k-map-get( $kendo-spacing, 4 ) | 16px |
Description
The horizontal padding of the Card body. | |||
$kendo-card-body-padding-y | Number | k-map-get( $kendo-spacing, 4 ) | 16px |
Description
The vertical padding of the Card body. | |||
$kendo-card-footer-padding-x | Number | $kendo-card-padding-x | 16px |
Description
The horizontal padding of the Card footer. | |||
$kendo-card-footer-padding-y | Number | $kendo-card-padding-y | 12px |
Description
The vertical padding of the Card footer. | |||
$kendo-card-footer-border-width | Number | 1px | 1px |
Description
The top border width of the Card footer. | |||
$kendo-card-footer-bg | Null | null | null |
Description
The background color of the Card footer. | |||
$kendo-card-footer-text | Null | null | null |
Description
The text color of the Card footer. | |||
$kendo-card-footer-border | Color | $kendo-card-border | rgba(0, 0, 0, 0.12) |
Description
The border color of the Card footer. | |||
$kendo-card-title-margin-bottom | Number | 12px | 12px |
Description
The bottom margin of the Card title. | |||
$kendo-card-title-font-size | Number | $kendo-h5-font-size | 24px |
Description
The font size of the Card title. | |||
$kendo-card-title-font-family | List | $kendo-font-family | Roboto, "Helvetica Neue", sans-serif |
Description
The font family of the Card title. | |||
$kendo-card-title-line-height | Number | 1.25 | 1.25 |
Description
The line height of the Card title. | |||
$kendo-card-title-font-weight | Number | 500 | 500 |
Description
The font weight of the Card title. | |||
$kendo-card-title-letter-spacing | Null | null | null |
Description
The letter spacing of the Card title. | |||
$kendo-card-subtitle-margin-bottom | Number | 12px | 12px |
Description
The bottom margin of the Card subtitle. | |||
$kendo-card-subtitle-font-size | Number | $kendo-font-size-md | 14px |
Description
The font size of the Card subtitle. | |||
$kendo-card-subtitle-font-family | List | $kendo-font-family | Roboto, "Helvetica Neue", sans-serif |
Description
The font family of the Card subtitle. | |||
$kendo-card-subtitle-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the Card subtitle. | |||
$kendo-card-subtitle-font-weight | Number | 500 | 500 |
Description
The font weight of the Card subtitle. | |||
$kendo-card-subtitle-letter-spacing | Null | null | null |
Description
The letter spacing of the Card subtitle. | |||
$kendo-card-subtitle-text | Color | $kendo-subtle-text | rgba(0, 0, 0, 0.54) |
Description
The text color of the Card subtitle. | |||
$kendo-card-img-max-width | Number | 100px | 100px |
Description
The maximum width of the Card image. | |||
$kendo-card-avatar-size | Number | 45px | 45px |
Description
The size of the Avatar in the Card. | |||
$kendo-card-avatar-spacing | Number | $kendo-card-header-padding-x | 16px |
Description
The spacing between the Avatar and the text in the Card. | |||
$kendo-card-actions-padding-x | Number | k-map-get( $kendo-spacing, 2 ) | 8px |
Description
The horizontal padding of the Card actions. | |||
$kendo-card-actions-padding-y | Number | k-map-get( $kendo-spacing, 2 ) | 8px |
Description
The vertical padding of the Card actions. | |||
$kendo-card-actions-border-width | Number | 1px | 1px |
Description
The top border width of the Card actions. | |||
$kendo-card-actions-gap | Number | k-map-get( $kendo-spacing, 2 ) | 8px |
Description
The spacing between the Card actions. | |||
$kendo-card-deck-scroll-button-radius | Number | 50% | 50% |
Description
The border radius of the scroll button in the Card deck. | |||
$kendo-card-deck-scroll-button-offset | Number | k-math-div( $kendo-card-deck-gap, 2 ) | 8px |
Description
The border radius of the scroll button in the Card deck. | |||
$kendo-card-callout-width | Number | 20px | 20px |
Description
The width of the Card callout. | |||
$kendo-card-callout-height | Number | 20px | 20px |
Description
The height of the Card callout. |