@import "../../style/themes/default";
@import "../../style/mixins/index";

@ticker-prefix-cls: ~"@{mk-prefix}-ticker";

.@{ticker-prefix-cls} {
  .reset-component;
  position: relative;
  overflow: hidden;
  height: 24px;
  line-height: 22px;
  padding: 0 10px;
  background-color: @tag-default-bg;
  border: 1px solid @border-color-split;
  border-radius: @border-radius-base;
  transition: padding .3s @ease-in-out;
  display: inline-block;
  &.remove-able {
    padding: 0 20px 0 10px;
  }

  &-content {
    height: 24px;
    line-height: 22px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    -webkit-transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  &-remove {
    font-style: normal;
    vertical-align: baseline;
    text-align: center;
    text-transform: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: @text-color-secondary;
    line-height: inherit;
    cursor: pointer;
    font-weight: bold;
    -webkit-transition: all .3s;
    transition: all .3s;
    display: inline-block;
    font-size: 12px;
    -webkit-transform: scale(0.83333333) rotate(0deg);
    -ms-transform: scale(0.83333333) rotate(0deg);
    transform: scale(0.83333333) rotate(0deg);
    position: absolute;
    right: 4px;
  }
}
