Global CSS API: Controls - Date

The following CSS custom properties are used for the date control UI, namely the date picker.

Enhanced UI Date Picker

Properties used for enhanced date picker control UI.

PropertyDescriptionDefault
Base
--gf-ctrl-date-picker-bg-colorBackground color.var(--gf-ctrl-bg-color)
--gf-ctrl-date-picker-shadowBox shadow.0 0 1px rgba(18, 25, 97, 0.24), 0 24px 24px rgba(18, 25, 97, 0.03), 0 2px 2px rgba(18, 25, 97, 0.03), 0 4px 4px rgba(18, 25, 97, 0.03), 0 8px 8px rgba(18, 25, 97, 0.03), 0 16px 16px rgba(18, 25, 97, 0.03)
--gf-ctrl-date-picker-padding-yVertical (top/bottom) padding.16px 12px
--gf-ctrl-date-picker-padding-y-viewport-smVertical (top/bottom) padding for wider viewports.16px
--gf-ctrl-date-picker-padding-xHorizontal (left/right) padding.12px
--gf-ctrl-date-picker-padding-x-viewport-smHorizontal (left/right) padding for wider viewports.16px
--gf-ctrl-date-picker-margin-y-startVertical start (top) margin.12px
--gf-ctrl-date-picker-radiusBorder radius.var(--gf-ctrl-radius-max-md)
--gf-ctrl-date-picker-widthWidth.250px
--gf-ctrl-date-picker-width-viewport-smWidth for wider viewports.300px
Icon
--gf-ctrl-date-picker-header-icons-widthIcon width.20px
--gf-ctrl-date-picker-header-icons-colorIcon color.var(--gf-ctrl-icon-color)
--gf-ctrl-date-picker-header-icons-color-hoverIcon color on hover.var(--gf-ctrl-icon-color-hover)
--gf-ctrl-date-picker-header-icons-font-sizeIcon font size.20px
Title
--gf-ctrl-date-picker-title-colorTitle color.var(--gf-color-secondary-contrast)
--gf-ctrl-date-picker-title-font-sizeTitle font size.12px
--gf-ctrl-date-picker-title-font-size-viewport-smTitle font size for wider viewports.14px
--gf-ctrl-date-picker-title-font-weightTitle font weight.500
--gf-ctrl-date-picker-title-gapTitle gap.4px
--gf-ctrl-date-picker-title-gap-viewport-smTitle gap for wider viewports.8px
--gf-ctrl-date-picker-title-line-heightTitle line height.1.5
--gf-ctrl-date-picker-title-margin-xTitle horizontal (left/right) margin.4px
--gf-ctrl-date-picker-title-margin-x-viewport-smTitle horizontal (left/right) margin for wider viewports.8px
Dropdown
--gf-ctrl-date-picker-dropdown-bg-imgDropdown icon background image.var(--gf-icon-ctrl-select)
--gf-ctrl-date-picker-dropdown-bg-positionDropdown icon background position.var(--gf-ctrl-select-icon-position)
--gf-ctrl-date-picker-dropdown-bg-sizeDropdown icon background size.var(--gf-ctrl-select-icon-size)
--gf-ctrl-date-picker-dropdown-border-colorDropdown border color.var(--gf-color-in-ctrl-light-darker)
--gf-ctrl-date-picker-dropdown-border-styleDropdown border style.var(--gf-ctrl-border-style)
--gf-ctrl-date-picker-dropdown-border-widthDropdown border width.var(--gf-ctrl-border-width)
--gf-ctrl-date-picker-dropdown-shadowDropdown box shadow.0 1px 2px rgba(0, 0, 0, 0.05)
--gf-ctrl-date-picker-dropdown-text-alignDropdown text alignment.start
Table
--gf-ctrl-date-picker-table-margin-y-startTable top margin.16px
--gf-ctrl-date-picker-table-margin-y-endTable bottom margin.0
Table - Head Cell
--gf-ctrl-date-picker-head-cell-font-sizeHead cell font size.12px
--gf-ctrl-date-picker-head-cell-font-weightHead cell font weight.600
--gf-ctrl-date-picker-head-cell-line-heightHead cell line height.1.33
Table - Cell
--gf-ctrl-date-picker-cell-paddingCell padding.1px
--gf-ctrl-date-picker-cell-padding-yCell block (top/bottom) padding.6px
--gf-ctrl-date-picker-cell-padding-y-viewport-smCell vertical (top/bottom) padding for wider viewports.var(--gf-ctrl-date-picker-cell-padding)
--gf-ctrl-date-picker-cell-heightCell height.29px
--gf-ctrl-date-picker-cell-height-viewport-smCell height for wider viewports.40px
--gf-ctrl-date-picker-cell-font-sizeCell font size.14px
--gf-ctrl-date-picker-cell-font-weightCell font weight.400
--gf-ctrl-date-picker-cell-line-heightCell line height.1.43
Table - Cell Content
--gf-ctrl-date-picker-cell-content-align-itemsCell content alignment.center
--gf-ctrl-date-picker-cell-content-bg-color-disabledCell content background color when disabled.transparent
--gf-ctrl-date-picker-cell-content-bg-color-hoverCell content background color on hover.var(--gform-theme-color-uber-light-blue)
--gf-ctrl-date-picker-cell-content-bg-color-selectedCell content background color when selected.var(--gf-color-in-ctrl-primary)
--gf-ctrl-date-picker-cell-content-borderCell content border.var(--gf-ctrl-border-width) var(--gf-ctrl-border-style) var(--gf-color-in-ctrl-primary)
--gf-ctrl-date-picker-cell-content-radiusCell content border radius.var(--gf-ctrl-radius-max-md)
--gf-ctrl-date-picker-cell-content-colorCell content color.var(--gf-color-secondary-contrast)
--gf-ctrl-date-picker-cell-content-color-disabledCell content color when disabled.var(--gform-theme-color-uber-light)
--gf-ctrl-date-picker-cell-content-color-hoverCell content color on hover.var(--gf-ctrl-date-picker-cell-content-color)
--gf-ctrl-date-picker-cell-content-color-selectedCell content color when selected.var(--gf-color-in-ctrl-primary-contrast)
--gf-ctrl-date-picker-cell-content-widthCell content width.27px
--gf-ctrl-date-picker-cell-content-width-viewport-smCell content width for wider viewports.100%