@value _dodgerBlue, _white from '../CommonCss/var-colors.css';
@value _px_0, _px_1, _px_2, _px_3, _px_5, _px_10, _px_12, _px_20, _per_100, _inherit from '../CommonCss/var-units.css';
@value _zero_8_rem, _zero_7_rem, _one_rem from '../CommonCss/var-typography.css';

.common{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: _dodgerBlue;
  color: _white;
  font-size: _zero_8_rem;
  font-weight: normal;
  text-transform: none
}
.disabled{
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none
}
/* shape css */
.rectagle{
  border-radius: _px_0
}
.rounded{
  border-radius: _px_3
}
.oval{
  border-radius: _px_20
}
/* size css */
.small{
  padding: _px_1 _px_5;
  font-size: _zero_7_rem
}
.medium{
  padding: _px_2 _px_10;
  font-size: _zero_8_rem
}
.large{
  padding : _px_3 _px_12;
  font-size: _one_rem
}
.stretch{
  height: _per_100;
  width: _per_100;
  font-size: _inherit
}

/* text overflow*/
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: _per_100
}
.common > :not(:last-child) {
    margin: 0 _px_10 0 0;
}
/* rtl */
html[dir="rtl"] .common >:not(:last-child){
  margin: 0 0 0 _px_10;
}
