// ================================================================================================
//   File Name: pallette-tooltip.scss
//   Description: Tooltip color system styles
//   ----------------------------------------------------------------------------------------------
//   Item Name: Robust - Responsive Admin Theme
//   Version: 1.2
//   Author: PIXINVENT
//   Author URL: http://www.themeforest.net/user/pixinvent
// ================================================================================================


@function color-function($color, $type) {
  @if map-has-key($colors, $color) {
    $curr_color: map-get($colors, $color);
    @if map-has-key($curr_color, $type) {
      @return map-get($curr_color, $type);
    }
  }
  // @warn "Unknown `#{name}` in $colors.";
  @return null;
}

// Color palettes
@import "palette-variables";
// Overrides user variable
@import "../../../../assets/scss/colors/palette-variables";

@each $color_name, $color in $colors {
  @each $color_type, $color_value in $color {
    @if $color_type == "base" {
      .tooltip-bg-#{$color_name}{
        .tooltip-inner{
          background-color: $color_value;
          &:before{
            border-top-color: $color_value !important;
          }
        }
      }
      .tooltip-text-#{$color_name}{
        .tooltip-inner{
          color: $color_value;
        }
      }
    }
  }
}