/*
* @Author: zhongjiahao
* @Date:   2016-09-12 14:10:08
* @Last Modified by:   zhongjiahao
* @Last Modified time: 2016-10-18 16:36:10
*/

.btn-group {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  .btn,
  .btn-icon {
    @include rem(margin-left, 10);
    &:first-child {
      margin-left: 0;
    }
  }
  &.btn-group_is-stick {
    .btn {
      margin-left: -1px;
    }
  }
}

.btn-group_vertical {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  .btn,
  .btn-icon {
    display: block;
    width: 100%;
    max-width: 100%;
    &:first-child {
      margin-top: 0;
    }
  }
  &.btn-group_is-stick {
    .btn {
      margin-top: 0;
      margin-bottom: 1px;
    }
  }
}
