@import 'mixin';
@import 'extend';
@import 'variables';

/* Icon Picker */

.kungfu-icon-picker-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  @include transform(translate(-50%, -50%));
  width: 660px;
  height: 410px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid $border-color;
  @include box-shadow(0, 1px, 2px, rgba(0, 0, 0, 0.1));
  overflow: hidden;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;

  .kungfu-popup-header {
    position: relative;
  }
  .kungfu-popup-title {
    margin: 0;
    padding: 10px;
    background: #f6f6f6;
    font-size: 16px;
  }
  .kungfu-popup-close {
    position: absolute;
    top: 50%;
    right: 10px;
    @extend %translate-0-50p;
  }
  .icon-picker-control {
    padding: 10px;
  }
  .search-box {
    position: relative;
    input {
      width: 100%;
      padding-right: 25px;
    }
    i {
      position: absolute;
      top: 7px;
      right: 7px;
    }
  }
  ul {
    margin: 0;
    padding: 0 5px;
    height: 280px;
    overflow-y: scroll;
    &:before {
      content: " ";
      display: table;
    }
    li {
      display: inline-block;
      margin: 5px;
      float: left;
      a {
        display: block;
        text-decoration: none;
        color: #373737;
        border: 1px solid #eee;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-size: 18px;
        &:hover {
          border-color: #999;
          background: #efefef;
        }
        span {
          display: inline;
          line-height: inherit;
          font-size: inherit;
        }
      }
    }
  }
}

.icon-picker-control {
  p {
    margin: 0 0 10px;
  }
  a {
    padding: 5px;
    text-decoration: none;
    line-height: 32px;
    width: 25px;
    span {
      display: inline;
      vertical-align: middle;
    }
  }
  input {
    width: 200px;
  }
  select {
    margin: 0 auto;
    display: inline-block;
    width: 132px;
  }
}

.kungfu-icon-picker-wrapper {
  margin-bottom: 20px;
  .kungfu-button-icon-picker {
    margin-top: 10px;
  }
}
