position: relative;
// This creates the base styles for the triangle pip
- &:before {
+ &:after {
position: absolute;
content: "";
width: 0;
// If we're dealing with small buttons, use these styles
@if $padding == small {
padding-#{$opposite-direction}: $dropdown-button-padding-sml;
- &:before {
+ &:after {
border-width: $dropdown-button-pip-size-sml;
#{$opposite-direction}: $dropdown-button-pip-opposite-sml;
margin-top: $dropdown-button-pip-top-sml;
// If we're dealing with default (medium) buttons, use these styles
@if $padding == medium {
padding-#{$opposite-direction}: $dropdown-button-padding-med;
- &:before {
+ &:after {
border-width: $dropdown-button-pip-size-med;
#{$opposite-direction}: $dropdown-button-pip-opposite-med;
margin-top: $dropdown-button-pip-top-med;
// If we're dealing with large buttons, use these styles
@if $padding == large {
padding-#{$opposite-direction}: $dropdown-button-padding-lrg;
- &:before {
+ &:after {
border-width: $dropdown-button-pip-size-lrg;
#{$opposite-direction}: $dropdown-button-pip-opposite-lrg;
margin-top: $dropdown-button-pip-top-lrg;
// We can control the pip color. We didn't use logic in this case, just set it and forget it.
@if $pip-color {
- &:before { border-color: $pip-color transparent transparent transparent; }
+ &:after { border-color: $pip-color transparent transparent transparent; }
}
}
&.tiny { @include dropdown-button(tiny,$base-style:false); }
&.small { @include dropdown-button(small,$base-style:false); }
&.large { @include dropdown-button(large,$base-style:false); }
- &.secondary:before { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
+ &.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
}
}
}