/*
The MIT License (MIT)

Copyright (c) 2017 akveo.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
 */
@import '../../styles/themes';
@import '~@nebular/theme/styles/core/mixins';
@import '~@nebular/theme/styles/core/functions';

@include nb-install-component() {
  .themes-switcher {
    display: flex;
    font-size: 1.25rem;
    padding: 0.8rem 1.25rem;
    align-items: center;
    cursor: pointer;
    background-color: nb-theme(switcher-background);
    border-radius: nb-theme(radius);

    &:hover {
      $color: nb-theme(switcher-background);
      $percentage: nb-theme(switcher-background-percentage);

      background-color: tint($color, $percentage);
    }

    span {
      margin: 0 1.2rem;
    }

    i {
      color: nb-theme(color-primary);
      font-size: 1.8rem;
      border-radius: 50%;
      position: relative;

      @include nb-for-theme(default) {
        color: nb-theme(color-success);
      }

      @include nb-for-theme(corporate) {
        color: nb-theme(color-fg-highlight);
      }

      &::before {
        // Hack for IE11, IE11 should not set background
        background: nb-theme(drops-icon-line-gadient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
  }
}


