

.ici-btn {
  position: relative;
  overflow: hidden;
  .ici-btn-process{
    position: absolute;
    top:0;
    left:0;
    height:100%;
    width:100%;
    text-shadow: 0 0 2px rgba(0,0,0,.5);
  }

  .btn-process-enter{
    width: 0%;
  }
  .btn-process-enter-active{
    transition: 1s all ease;
  }

  .btn-process-leave-active{
    transition: 0s all ease-in !important;
  }

  //创建标准的按钮
  .create-type(@type,@color,@bgColor) {
    &.ici-btn-@{type}, &.ici-btn-@{type}-flat,&.ici-btn-@{type} .ici-btn-process, &.ici-btn-@{type}-flat .ici-btn-process {
      background-color: @bgColor;
      border-color: @bgColor;
      color: @color;

      &:visited {
        color: @color
      }

      &:hover, &:focus {
        background-color: lighten(@bgColor, 10%);
        border-color: lighten(@bgColor, 10%);
        color: @color;
      }

      &:active, &.active, &.is-active {
        background-color: desaturate(@bgColor, 10%);
        border-color: desaturate(@bgColor, 10%);
        color: darken(@bgColor, 10%);
      }
    }

    &.ici-btn-@{type} {
      &.ici-btn-border, &.ici-btn-border-thin, &.ici-btn-border-thick {
        color: @bgColor;

        &:hover, &:focus {
          background-color: fade(lighten(@bgColor, 10%), 90%);
          color: fade(@color, 90);
        }

        &:active, &.active, &.is-active {
          background-color: fade(desaturate(@bgColor, 10%), 70%);
          color: fade(@color, 50);
          opacity: .3
        }
      }

      //浮雕效果
      &.ici-btn-raised {
        border-color: darken(@bgColor, 5%);
        background: -webkit-gradient(linear, left top, left bottom, from(lighten(@bgColor, 5%)), to(darken(@bgColor, 5%)));

        &:hover, &:focus {
          background: -webkit-gradient(linear, left top, left bottom, from(lighten(@bgColor, 8%)), to(darken(@bgColor, 7%)));
        }

        &:active, &.active, &.is-active {
          border-color: darken(@bgColor, 10%);
          background: desaturate(@bgColor, 10%)
        }
      }

    }

  }

  .create-type(~'inverse', #EEE, #222);

  .create-type(~'primary', #FFF, @color-primary);

  .create-type(~'action', #FFF, @color-success);
  .create-type(~'highlight', #FFF, @color-warning);
  .create-type(~'caution', #FFF, @color-danger);

  user-select: none;
  color: #666;
  background-color: #EEE;
  font-weight: 300;
  font-size: 13px;
  font-family: Roboto, RobotoDraft, Helvetica, Arial, sans-serif, "Microsoft YaHei", "微软雅黑";
  text-decoration: none;
  text-align: center;
  line-height: 32px;
  height: 32px;
  padding: 0 32px;
  margin: 0;
  display: inline-block;
  appearance: none;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  transition-property: all;
  transition-duration: .3s;

  &:visited {
    color: #666
  }

  &:hover, &:focus {
    background-color: #f6f6f6;
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .2);
  }

  &:active, &.active {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
    background-color: #eee;
    border-color: #cfcfcf;
    color: #d4d4d4;
    -webkit-transition-duration: 0s;
    transition-duration: 0s;
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  &.disabled, &.is-disabled, &:disabled {
    top: 0 !important;
    background: #EEE !important;
    border: 1px solid #DDD !important;
    text-shadow: 0 1px 1px white !important;
    color: #CCC !important;
    cursor: default !important;
    appearance: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    opacity: .8 !important
  }


  &.ici-btn-raised {
    border-color: #e1e1e1;
    border-style: solid;
    border-width: 1px;
    line-height: 32px;
    background: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#e1e1e1));
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15)
  }

  &.ici-btn-raised:hover, &.ici-btn-raised:focus {
    background: -webkit-gradient(linear, left top, left bottom, from(white), to(gainsboro));
  }

  &.ici-btn-raised:active, &.ici-btn-raised.active, &.ici-btn-raised.is-active {
    background: #eee;
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0px 1px 0 white;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0px 1px 0 white
  }

  @baseColor: #444;
  @baseBgColor: #d4d4d4;

  &.ici-btn-border, &.ici-btn-border-thin, &.ici-btn-border-thick {
    color: @baseColor;

    &:hover, &:focus {
      background-color: fade(lighten(@baseBgColor, 10%), 90%);
      color: fade(@baseColor, 90);
    }

    &:active, &.active, &.is-active {
      background-color: fade(desaturate(@baseBgColor, 10%), 70%);
      color: fade(@baseColor, 50);
      opacity: .3
    }
  }

  &.ici-btn-block, &.ici-btn-stacked {
    display: block
  }

  &.ici-btn-square {
    border-radius: 0
  }

  &.ici-btn-box {
    border-radius: 10px
  }

  &.ici-btn-rounded {
    border-radius: 4px
  }

  &.ici-btn-pill {
    border-radius: 200px
  }

  &.ici-btn-circle {
    border-radius: 100%
  }

  &.ici-btn-circle, &.ici-btn-box, &.ici-btn-square {
    padding: 0 !important;
    width: 32px;

    &.ici-btn-giant {
      width: 60px
    }

    &.ici-btn-jumbo {
      width: 50px
    }

    &.ici-btn-large {
      width: 40px
    }

    &.ici-btn-normal {
      width: 32px
    }

    &.ici-btn-small {
      width: 26px
    }

    &.ici-btn-tiny {
      width: 22px
    }
  }


  &.ici-btn-border, &.ici-btn-border-thin, &.ici-btn-border-thick {
    background: 0;
    border-width: 2px;
    border-style: solid;
    line-height: 30px;

    &:hover {
      background-color: rgba(255, 255, 255, 0.9)
    }

    &:active, &.active, &.is-active {
      -webkit-box-shadow: none;
      box-shadow: none;
      text-shadow: none;
      -webkit-transition-property: all;
      transition-property: all;
      -webkit-transition-duration: .3s;
      transition-duration: .3s
    }

    &.ici-btn-giant {
      line-height: 66px
    }

    &.ici-btn-jumbo {
      line-height: 56px
    }

    &.ici-btn-large {
      line-height: 46px
    }

    &.ici-btn-normal {
      line-height: 36px
    }

    &.ici-btn-small {
      line-height: 26px
    }

    &.ici-btn-tiny {
      line-height: 20px
    }
  }

  &.ici-btn-border-thin {
    border-width: 1px
  }

  &.ici-btn-border-thick {
    border-width: 3px
  }


  &.ici-btn-group {
    position: relative;
    display: inline-block
  }

  &.ici-btn-group:after {
    content: " ";
    display: block;
    clear: both
  }


  &.ici-btn-giant {
    font-size: 24px;
    height: 60px;
    line-height: 60px;
    padding: 0 60px
  }

  &.ici-btn-jumbo {
    font-size: 20px;
    height: 50px;
    line-height: 50px;
    padding: 0 50px
  }

  &.ici-btn-large {
    font-size: 16px;
    height: 40px;
    line-height: 40px;
    padding: 0 40px
  }

  &.ici-btn-normal {
    font-size: 13px;
    height: 32px;
    line-height: 32px;
    padding: 0 32px
  }

  &.ici-btn-small {
    font-size: 12px;
    height: 26px;
    line-height: 26px;
    padding: 0 26px
  }

  &.ici-btn-tiny {
    font-size: 10px;
    height: 22px;
    line-height: 22px;
    padding: 0 22px
  }

  &.ici-btn-block {
    width: 100%;
    padding: 0 !important;
  }

  .loading-hide{
    opacity: 0;
  }

}

