// Lightning Design System 2.3.1
// Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license

.slds-theme {
  /**
   * @summary Sets the background color to white
   *
   * @selector .slds-theme_default
   * @modifier
   */
  &_default,
  &--default {
    @include theme(default);
  }

  /**
   * @summary Sets the background color to gray
   *
   * @selector .slds-theme_shade
   * @modifier
   */
  &_shade,
  &--shade {
    @include theme(shade);
  }

  /**
   * @summary Sets the background color to dark blue
   *
   * @selector .slds-theme_inverse
   * @modifier
   */
  &_inverse,
  &--inverse {
    @include theme(inverse);
    border-color: $color-background-inverse;
  }

  /**
   * @summary Sets the background color to darker blue
   *
   * @selector .slds-theme_alt-inverse
   * @modifier
   */
  &_alt-inverse,
  &--alt-inverse {
    @include theme(alt-inverse);
    border-color: $color-background-alt-inverse;
  }

  /**
   * @summary Sets the background color to green
   *
   * @selector .slds-theme_success
   * @modifier
   */
  &_success,
  &--success {
    @include inverse-links;
    background-color: $color-background-toast-success;
  }

  /**
   * @summary Sets the background color to gray-ish blue
   *
   * @selector .slds-theme_info
   * @modifier
   */
  &_info,
  &--info {
    @include inverse-links;
    background-color: $color-background-toast;
  }

  /**
   * @summary Sets the background color to yellow
   *
   * @selector .slds-theme_warning
   * @modifier
   */
  &_warning,
  &--warning {
    background-color: $color-background-warning;
    color: $color-text-default;

    .slds-icon,
    .slds-button__icon {
      fill: $color-text-icon-default;
    }

    a:not(.slds-button--neutral),
    button:not(.slds-button--neutral) {
      color: $color-text-default;
      text-decoration: underline;
    }
  }

  /**
   * @summary Sets the background color to red
   *
   * @selector .slds-theme_error
   * @modifier
   */
  &_error,
  &--error {
    @include inverse-links;
    background-color: $color-background-toast-error;
  }

  /**
   * @summary Sets the background color to black
   *
   * @selector .slds-theme_offline
   * @modifier
   */
  &_offline,
  &--offline {
    @include inverse-links;
    background-color: #444;
  }

  /**
   * @summary Adds striped background
   *
   * @selector .slds-theme_alert-texture
   * @modifier
   */
  &_alert-texture,
  &--alert-texture {
    @include gradient-striped;
  }

  // Is this being used?
  &_inverse-text,
  &--inverse-text {
    @include inverse-links;
  }
}
