Advertisement
Guest User

Untitled

a guest
Dec 1st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 2.50 KB | None | 0 0
  1. $pipeline-colors-variables: $color-pipeline-green $color-pipeline-blue $color-pipeline-purple;
  2.     $pipeline-colors: 'green', 'blue', 'purple';
  3.     @each $color in $pipeline-colors {
  4.         $i: index($pipeline-colors, $color);
  5.         .pipeline-#{$color} {
  6.             display: flex;
  7.             overflow: hidden;
  8.  
  9.             li {
  10.                 flex-grow: 1;
  11.                 background: lighten(nth($pipeline-colors-variables, $i), 25%);
  12.                 line-height: 35px;
  13.                 text-align: center;
  14.                 transition: background 200ms ease-in-out;
  15.                 position: relative;
  16.  
  17.                 a {
  18.                     display: block;
  19.                     color: $color-anthracite;
  20.                     text-transform: uppercase;
  21.  
  22.                     &:hover {
  23.                         text-decoration: none;
  24.                     }
  25.                 }
  26.  
  27.                 &:hover {
  28.                     background: darken(lighten(nth($pipeline-colors-variables, $i), 25%), 10%);
  29.                 }
  30.  
  31.                 &:after {
  32.                     content: '';
  33.                     background: lighten(nth($pipeline-colors-variables, $i), 25%);
  34.                     z-index: 999;
  35.                     border: solid #ffffff;
  36.                     border-width: 0 5px 5px 0;
  37.                     display: inline-block;
  38.                     padding: 13px;
  39.                     transform: rotate(-45deg);
  40.                     -webkit-transform: rotate(-45deg);
  41.                     position: absolute;
  42.                     right: -18px;
  43.                     top: 2px;
  44.                     transition: background 200ms ease-in-out;
  45.                 }
  46.  
  47.                 &:hover:after {
  48.                     background: darken(lighten(nth($pipeline-colors-variables, $i), 25%), 10%);
  49.                 }
  50.  
  51.                 &.pipeline-done {
  52.                     background: nth($pipeline-colors-variables, $i);
  53.  
  54.                     a {
  55.                         color: #ffffff;
  56.                         font-weight: 700;
  57.                     }
  58.  
  59.                     &:hover {
  60.                         background: darken(nth($pipeline-colors-variables, $i), 10%);
  61.                     }
  62.  
  63.                     &:after {
  64.                         background: nth($pipeline-colors-variables, $i);
  65.                     }
  66.  
  67.                     &:hover:after {
  68.                         background: darken(nth($pipeline-colors-variables, $i), 10%);
  69.                     }
  70.                 }
  71.             }
  72.         }
  73.     }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement