@mixin wizard-step($bgColor, $shadowTone) { color: $white; text-shadow: 0 1px 0 darken($bgColor, $shadowTone); background: $bgColor; &:before { border-top-color: $bgColor; border-bottom-color: $bgColor; } &:after { border-left-color: $bgColor; } } @mixin wizard-step-group($bgColor) { a { @include wizard-step($bgColor, 15%); } &:hover a { @include wizard-step(darken($bgColor, 20%), 20%); } } .wizard-nav { position: relative; list-style-type: none; li { position: relative; float: left; } a { position: relative; display: inline-block; height: 2 * $baseLineHeight; line-height: 2 * $baseLineHeight; margin-right: $baseLineHeight; padding: 0px 10px; color: lighten($grayDark, 45%); background: #eee; text-decoration: none; font-weight: bold; &:before, &:after { width: 0; height: 0; position: absolute; content: ""; top: 0; border: $baseLineHeight solid #eee; border-right-width: 0; } &:before { border-left: $baseLineHeight / 2 solid transparent; left: -$baseLineHeight / 2; } &:after { border-color: transparent; border-left: $baseLineHeight / 2 solid #eee; right: -$baseLineHeight / 2; } } .done { @include wizard-step-group($btnInfoBackground) } .active { @include wizard-step-group($btnPrimaryBackground) } }