@import '../../style/themes/default';
@import '../../style/mixins';

@imagePrefixCls: fm-image;

.@{imagePrefixCls} {
  &-box {
    display: inline-block;
    overflow: hidden;
    font-size: 0;
    vertical-align: bottom;
    border: 1px solid @border-color-base;

    img {
      vertical-align: bottom;
    }

    div {
      font-size: @font-size-base;
    }

    &-cover,
    &-contain {
      img {
        width: auto \9;
        height: auto \9;
      }
    }
    &-background {
      background-color: #f4f5f6;
      background-repeat: no-repeat;
      background-position: 50% 50%;
      border: none;
      img {
        opacity: 0;
      }
    }
    &-no-background {
      background: none !important;
    }
  }
  &-noboder {
    border: none;
  }
}

