All Common CSS variables:

  • --smart-primary: The theme primary color.
  • --smart-primary-color: Text color on top of a primary background.
  • --smart-secondary: The theme secondary color.
  • --smart-secondary-color: Text color on top of a secondary background.
  • --smart-error: The theme error color.
  • --smart-error-color: Text color on top of a error background.
  • --smart-success: The theme success color.
  • --smart-success-color: Text color on top of a success background.
  • --smart-background: The theme background color. The background color appears behind scrollable content.
  • --smart-background-color: Text color on top of a background background.
  • --smart-surface: The theme surface color. Surface colors affect surfaces of components, such as cards, sheets, and menus.
  • --smart-surface-color: Text color on top of a surface surface.
  • --smart-disabled: The theme primary color in disabled state.
  • --smart-disabled-color: Text color on top of a theme background in disabled state.
  • --smart-font-size: Theme font-size.
  • --smart-font-family: Theme font-family.
  • --smart-border-width: Theme border-width.
  • --smart-border-radius: Theme border-radius.
  • --smart-border: The theme border settings.
  • --smart-outline: The theme border color.
  • --smart-arrow-size: Font size of the arrow elements.
  • --smart-editor-selection: Background color of the selected text.
  • --smart-editor-selection-color: Color of the selected text.
  • --smart-alternation-index0-color: Alternation color for index0.
  • --smart-alternation-index0-border-color: Alternation border color for index0.
  • --smart-alternation-index0-background: Alternation background color for index0.
  • --smart-alternation-index1-color: Alternation color for index1.
  • --smart-alternation-index1-border-color: Alternation border color for index1.
  • --smart-alternation-index1-background: Alternation background color for index1.
  • --smart-alternation-index2-color: Alternation color for index2.
  • --smart-alternation-index2-border-color: Alternation border color for index2.
  • --smart-alternation-index2-background: Alternation background color for index2.
  • --smart-tick-color: Default tick color for smartTank, smartSlider and smartGauge.
  • --smart-tick-label-color: Default tick label color for smartTank, smartSlider and smartGauge.
  • --smart-box-height: Default height for Dialog, Gauge, Accordion, Tabs, Tree, Array.
  • --smart-box-width: Default width for Dialog, Gauge, Accordion, Tabs, Tree, Array.
  • --smart-bar-height: Default height for headers and footers.
  • --smart-bar-width: Default width for headers and footers.
  • --smart-editor-height: Default height for editors.
  • --smart-editor-width: Default width for editors.
  • --smart-editor-drop-down-width: Default width for editors drop-down.
  • --smart-editor-drop-down-height: Default height for editors drop-down.
  • --smart-editor-label-padding: Default padding for inputs.
  • --smart-editor-addon-width: Default width for spin buttons, dropdown buttons.

Specific CSS variables for Drop Down Button styling:

  • --smart-drop-down-button-default-width: Defines DropDownButton and ComboBox default width.
  • --smart-drop-down-button-default-height: Defines DropDownButton and ComboBox default height.
  • --smart-drop-down-button-font-size: Defines element's font size.
  • --smart-drop-down-button-font-family: Defines element's font family.
  • --smart-drop-down-button-border-top-right-radius: Defines element's top-right border radius.
  • --smart-drop-down-button-border-top-left-radius: Defines element's top-left border radius.
  • --smart-drop-down-button-border-bottom-left-radius: Defines element's bottom-left border radius.
  • --smart-drop-down-button-border-bottom-right-radius: Defines element's bottom-right border radius.
  • --smart-drop-down-button-border-width: Defines element's font family.
  • --smart-drop-down-button-background: Defines element's background.
  • --smart-drop-down-button-border: Defines element's border color.
  • --smart-drop-down-button-color: Defines element's color.
  • --smart-drop-down-button-background-hover: Defines element's background color on hover state.
  • --smart-drop-down-button-border-hover: Defines element's border color on hover state.
  • --smart-drop-down-button-color-hover: Defines element's color on hover state.
  • --smart-drop-down-button-background-active: Defines element's background color on active state.
  • --smart-drop-down-button-border-active: Defines element's border color on active state.
  • --smart-drop-down-button-color-active: Defines element's color on active state.
  • --smart-drop-down-button-background-focus: Defines element's background color when it's focused.
  • --smart-drop-down-button-border-focus: Defines element's border color when it's focused.
  • --smart-drop-down-button-color-focus: Defines element's color when it's focused.

Specific CSS variables for DropDowns styling:

  • --smart-drop-down-element-width: Defines DropDownButton and ComboBox drop down default width.
  • --smart-drop-down-element-padding-size: Defines DropDownButton and ComboBox drop down default height.
  • --smart-drop-down-element-height: Defines DropDownButton and ComboBox drop down default height.
  • --smart-drop-down-element-max-width: Defines DropDownButton, ComboBox, TextBox popup max width.
  • --smart-drop-down-element-min-width: Defines DropDownButton, ComboBox, TextBox popup min width.
  • --smart-drop-down-element-max-height: Defines DropDownButton, ComboBox, TextBox popup max height.
  • --smart-drop-down-element-min-height: Defines DropDownButton, ComboBox, TextBox popup min height.
  • --smart-drop-down-button-width: Defines the width of the drop down button for all drop down elements: DropDownButton, ComboBox, DropDownList, DatetimePicker.
  • --smart-drop-down-resize-bar-height: DropDownButton, ComboBox, TextBox popup resize bar default height.
  • --smart-drop-down-vertical-offset: Defines the vertical offset between drop down and action button part.
  • --smart-drop-down-z-index: Defines dropDown's z-index.

The following CSS selectors can be used to style DropDownButton:

  • smart-drop-down-button - the element itself. Can be used to set width and height for the whole element.
    • .smart-container - the container that holds all of the internals of the element. Shoudn't be used for styling.
      • .smart-label - the label of the element.
      • .smart-content - a container for the internal contents of the element.
        • .smart-buttons-container - a container for the action button and the drop down buttons.
          • .smart-input .smart-action-button - an HTML SPAN element used as an action button.
          • .smart-drop-down-button - an HTML Span element used as a button for the drop down.
            • SPAN element - a SPAN element used for the icon of the button.
        • .smart-drop-down .smart-drop-down-container - a container for the drop down elements.
          • smart-scroll-viewer - smartScrollViewer - used to store the content of the popup.
          • .smart-drop-down-resize-bar - a resize bar that allows to resize the drop down element.
      • .smart-hint - the hint of the element.

Demo

<style>
        #dropdownbutton{
                    --smart-drop-down-element-max-height: 250px;
                    --smart-drop-down-button-border-top-right-radius: 50%;
                    --smart-drop-down-button-border-top-left-radius: 50%;
                    --smart-drop-down-button-border-bottom-left-radius: 50%;
                    --smart-drop-down-button-border-bottom-right-radius: 50%;
        }
</style>