.toggle-panel {
  background: $primary-dark;
  color: rgba($white, 0.5);
  right: -35px;
  @include material-card();
  border-top-left-radius: 0;
  em {
    color: $white;
    font-size: 12px;
  }
  h1,
  h2,
  h3 {
    color: $white;
  }
  h1 {
    display: none;
  }
  a {
    color: $white;
  }
  ul {
    li {
      font-size: 14px;
    }
  }
  .widgets-picker > .row {
    .inactive {
      i {
        @include material-card();
        background: $solid-grey !important;
      }
    }
    .locked {
      cursor: initial;
      i {
        box-shadow: none;
        background: transparent !important;
      }
    }
    .cell {
      text-align: center;
      line-height: 18px;
      height: 100px;
    }
    i {
      box-shadow: 0 2px 3px $shadow inset;
      border-radius: 10px;
    }
    .widget-picker__name {
      display: block;
      font-size: 14px;
      margin: 5px 0 15px;
    }
    .cell:nth-child(6n) {
      i {
        background: $green;
      }
    }
    .cell:nth-child(6n + 1) {
      i {
        background: $cyan;
      }
    }
    .cell:nth-child(6n + 2) {
      i {
        background: $purple;
      }
    }
    .cell:nth-child(6n + 3) {
      i {
        background: $pink;
      }
    }
    .cell:nth-child(6n + 4) {
      i {
        background: $red;
      }
    }
    .cell:nth-child(6n + 5) {
      i {
        background: $yellow;
      }
    }
  }
  i {
    display: inline-block;
    width: 55px;
    height: 55px;
    @include run-transition(all);
  }
}

.toggle-panel.hide + ul.icons-tabs {
  right: -35px;
}

/// PAGES-EDITOR-PANEL

.icons-tabs.pages-editor-panel {
  position: fixed;
  top: 80px;
  z-index: 200;
  right: 300px;
}

.toggle-panel.hide + ul.icons-tabs.pages-editor-panel i {
  transform: rotate(0deg);
}
ul.icons-tabs.pages-editor-panel i {
  transform: rotate(180deg);
  text-indent: -5px;
  color: black;
}

.toggle-panel.hide + ul.icons-tabs.pages-editor-panel {
  right: 0;
}

.toggle-panel.pages-editor-panel {
  position: fixed;
  top: 80px;
  right: 0;
  z-index: 300;
  height: calc(100% - 85px);
  overflow-y: auto;

  .toggle {
    min-height: 105%;
  }

  .sniplets {
    // media
    @for $i from 1 through length($colorz) {
      .sniplet-media:nth-child(#{length($colorz)}n + #{$i}) {
        background: nth($colorz, $i);
      }
    }

    .sniplet {
      // override apps sniplets
      &.workspace.carousel {
        background: $pink;
      }
      &.navigation.pages {
        background: $orange;
      }
      i:before {
        color: $white;
      }
    }
  }

  input.search {
    color: $white;
  }
  @include placeholder {
    color: rgba($white, 0.5);
    font-style: italic;
    font-size: 13px;
    opacity: 1;
  }
  input.search + i.search {
    position: absolute;
    right: -10px;
    font-size: 22px;
    height: 30px;
    width: 30px;
    //color: $white;
  }
}
