Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pipeline-colors-variables: $color-pipeline-green $color-pipeline-blue $color-pipeline-purple;
- $pipeline-colors: 'green', 'blue', 'purple';
- @each $color in $pipeline-colors {
- $i: index($pipeline-colors, $color);
- .pipeline-#{$color} {
- display: flex;
- overflow: hidden;
- li {
- flex-grow: 1;
- background: lighten(nth($pipeline-colors-variables, $i), 25%);
- line-height: 35px;
- text-align: center;
- transition: background 200ms ease-in-out;
- position: relative;
- a {
- display: block;
- color: $color-anthracite;
- text-transform: uppercase;
- &:hover {
- text-decoration: none;
- }
- }
- &:hover {
- background: darken(lighten(nth($pipeline-colors-variables, $i), 25%), 10%);
- }
- &:after {
- content: '';
- background: lighten(nth($pipeline-colors-variables, $i), 25%);
- z-index: 999;
- border: solid #ffffff;
- border-width: 0 5px 5px 0;
- display: inline-block;
- padding: 13px;
- transform: rotate(-45deg);
- -webkit-transform: rotate(-45deg);
- position: absolute;
- right: -18px;
- top: 2px;
- transition: background 200ms ease-in-out;
- }
- &:hover:after {
- background: darken(lighten(nth($pipeline-colors-variables, $i), 25%), 10%);
- }
- &.pipeline-done {
- background: nth($pipeline-colors-variables, $i);
- a {
- color: #ffffff;
- font-weight: 700;
- }
- &:hover {
- background: darken(nth($pipeline-colors-variables, $i), 10%);
- }
- &:after {
- background: nth($pipeline-colors-variables, $i);
- }
- &:hover:after {
- background: darken(nth($pipeline-colors-variables, $i), 10%);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement