Tank CSS Styling

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 Tank styling:

  • --smart-tank-default-width: Tank default width.
  • --smart-tank-default-height: Tank default height.
  • --smart-tank-scale-size: Tank scale size.
  • --smart-tank-thumb-width: Tank thumb width.
  • --smart-tank-thumb-height: Tank thumb height.
  • --smart-tank-tooltip-width: Tank tooltip width.
  • --smart-tank-tooltip-height: Tank thumb height.
  • --smart-tank-tick-size: Tank tick size. Horizontal Tank tick height = Vertical Tank tick width.
  • --smart-tank-minor-tick-size: Tank minor tick size.
  • --smart-tank-minimum-track-size: Tank horizontal track min-height, vertical track min-width.
  • --smart-tank-font-family: Tank font family.
  • --smart-tank-font-size: Tank font size.
  • --smart-tank-border-top-right-radius: Tank top-right border radius.
  • --smart-tank-border-top-left-radius: Tank top-left border radius.
  • --smart-tank-border-bottom-left-radius: Tank bottom-left border radius.
  • --smart-tank-border-bottom-right-radius: Tank bottom-right border radius.
  • --smart-tank-border-width: Tank border width.
  • --smart-tank-background: Tank background color.
  • --smart-tank-border: Tank border color.
  • --smart-tank-color: Tank color.
  • --smart-tank-background-active: Tank background color on active state.
  • --smart-tank-border-active: Tank border color on active state.
  • --smart-tank-color-active: Tank color on active state.

The following CSS selectors can be used to style Tank:

  • smart-tank - the element itself. Can be used to set width and height for the whole element.
    • .smart-container - a container that holds the inner structure of the element. Normally it shoudn't be used for styling.
      • .smart-scale .smart-scale-near - a DIV element used to draw the near scale of the tank.
      • .smart-track - a DIV container that holds the fill, thumbs and inner track (used when the ticks are placed on the track).
      • .smart-value - a DIV element that represents the fill ( the value ) of the tank.
        • .smart-bubble-container - a container for the 'bubble' animations.
          • .smart-bubble - a bubble.
        • .smart-tooltip - a DIV element that represents the tooltip of the first thumb.
          • .smart-tooltip-content - a DIV element that holds the value for the first thumb tooltip.
      • .smart-thumb - a DIV element that represents the first thumb of the tank.
        • .smart-thumb-label - a label for the thumb. Used by some themes.
      • .smart-track-ticks-container - a DIV element that represents the inner scale of the tank ( when ticksPosition is set to "track").
      • .smart-scale .smart-scale-far - a DIV element used to draw the far scale of the tank.