
// Template settings menu
.df-roboto {
  font-family: 'Roboto', sans-serif;
}

.df-settings {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  @include transition(all 0.2s);

  &.show {
    right: 200px;

    .df-settings-link {
      position: relative;

      &,&:hover,&:focus {
        background-color: #fff;
        border-color: $color-ui-03;
        color: $gray-900;
        box-shadow: -5px 0 10px rgba($gray-900, .1);
      }
    }
  }
}

.df-settings-link {
  position: absolute;
  top: 98px;
  left: -44px;
  width: 45px;
  height: 45px;
  background-color: $gray-900;
  border: 1px solid transparent;
  border-right-width: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: $border-radius;
  border-bottom-left-radius: $border-radius;
  @include transition($transition-base);
  z-index: 1;

  &:hover,
  &:focus {
    color: #fff;
    background-color: $gray-800;
    box-shadow: 0 0 10px 2px rgba($gray-900, .1);
  }

  @-webkit-keyframes rotating {
    from {
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  @keyframes rotating {
    from {
      -ms-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -ms-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  svg {
    width: 20px;
    height: 20px;
    -webkit-animation: rotating 3s linear infinite;
    -moz-animation: rotating 3s linear infinite;
    -ms-animation: rotating 3s linear infinite;
    -o-animation: rotating 3s linear infinite;
    animation: rotating 3s linear infinite;
  }
}

.df-settings-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: #fff;
  border-left: 1px solid $color-ui-03;
  box-shadow: 0 0 15px rgba($gray-900, .1);
  padding: 0 20px;
  overflow-y: auto;

  label {
    display: block;
    line-height: 1;
  }
}

.df-skin,
.df-mode {
  height: 20px;
  border: 1px solid $border-color;
  display: flex;
  margin-bottom: 5px;
  padding: 2px;

  &:hover,
  &:focus {
    border-color: $color-ui-04;
    box-shadow: 0 0 0 1px $color-ui-04;
  }

  &.active {
    border-color: $blue;
    box-shadow: 0 0 0 1px $blue;
    position: relative;

    &::before {
      content: '\EB7A';
      font-family: 'remixicon';
      font-size: 16px;
      position: absolute;
      top: 50%;
      left: 50%;
      line-height: 0.1;
      margin-left: -5px;
      margin-top: -1px;
      color: $blue;
      text-indent: -2.5px;
    }

    ~ span { color: $blue; }
  }

  &.disabled {
    cursor: default;
    border-color: $border-color;
    box-shadow: none;
    opacity: .75;
  }

  > span {
    display: block;
    flex: 1;
  }
}

.df-skin-deepblue {
  span:first-child { background-color: lighten($color-brand-01, 15%); }
  span:last-child { background-color: lighten($color-brand-02, 10%); }
}

.df-skin-charcoal {
  span:first-child { background-color: $color-ui-02; }
  span:last-child { background-color: #2d353e; }
}

.df-skin-gradient1 {
  span:first-child { background-color: $indigo; }
  span:last-child { background-color: $blue; }
}

.df-skin-name {
  font-size: 9px;
  font-weight: $font-weight-semibold;
  font-family: $font-family-system;
  text-transform: uppercase;
  display: block;
  text-align: center;
  color: $color-text-03;
}
