@value _white, _carnation from '../CommonCss/var-colors.css';
@value _px_0, _px_4, _px_5, _px_20, _px_30, _px_32, _px_35, _px_45, _px_60, _px_75, _px_100, _per_100, _inherit from '../CommonCss/var-units.css';
@value _zero_7_rem, _zero_8_7_rem, _one_rem from '../CommonCss/var-typography.css';

.common {
  position: relative;
  background-color: _carnation;
  color : _white;
  font-weight: normal;
  text-transform: none;
  border-color: _carnation;
  display: flex;
  align-items: center;
  justify-content: center
}
.common:after{
  position: absolute;
  content: '';
  top: _per_100;
  background-color: transparent;
  border-style: solid;
  width: _px_0;
  height: _px_0
}

.left{
  border-radius: _px_0 _px_4 _px_4 _px_0;
}
.left:after{
  left: _px_0;
  border-width: _px_0 _px_20 _px_20 _px_0;
  border-color: transparent;
  border-right-color: _inherit
}
.right:after{
  left: auto;
  right: _px_0;
  border-width: _px_20 _px_20 _px_0 _px_0;
  border-color: transparent;
  border-top-color: _inherit
}
.right{
  text-align: left;
  border-radius: _px_5 _px_0 _px_0 _px_5
}

/* size css */
.tiny {
  height: _px_20;
  width: _px_45;
  font-size: _zero_7_rem
}
.small {
  height: _px_30;
  width: _px_60;
  font-size: _zero_7_rem
}
.medium {
  height: _px_32;
  width: _px_75;
  font-size: _zero_8_7_rem
}
.large {
  height: _px_35;
  width: _px_100;
  font-size: _one_rem
}

.common > :not(:last-child) {
    margin: 0 _px_5 0 0
}
/* rtl */
html[dir="rtl"] .common > :not(:last-child){
  margin: 0 0 0 _px_5
}
html[dir="rtl"] .right{
  border-radius: _px_0 _px_4 _px_4 _px_0;
}
html[dir="rtl"] .left{
  border-radius: _px_5 _px_0 _px_0 _px_5
}
html[dir="rtl"] .right:after{
  right: auto;
  left: _px_0;
  border-width: _px_0 _px_20 _px_20 _px_0;
  border-color: transparent;
  border-right-color: _inherit
}
html[dir="rtl"] .left:after{
  left: auto;
  right: _px_0;
  border-width: _px_20 _px_20 _px_0 _px_0;
  border-color: transparent;
  border-top-color: _inherit
}
