Skip to content

Commit

Permalink
Reduce steps size.
Browse files Browse the repository at this point in the history
  • Loading branch information
srph committed Nov 10, 2015
1 parent 5f954e3 commit 2a5660f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 34 deletions.
32 changes: 15 additions & 17 deletions docs/dist/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 29 additions & 17 deletions styles/components/_steps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
position: relative;
display: inline-block;
margin: 0 25px;
width: 50px;
height: 50px;
padding: 2px 10px;
width: 40px;
height: 40px;
text-align: center;
background: $brand-gray-lt;
border-radius: 50%;
border: 3px solid $brand-gray;
font-size: $small;
}

li > a {
Expand All @@ -28,30 +26,44 @@
padding: 8px 0;
}

li::before {
li::after {
content: '';
position: absolute;
top: 20px;
right: 5px;
top: 15px;
left: 40px;
width: 100px;
height: 5px;
height: 3px;
background: $brand-gray;
z-index: -1;
}

li:first-child { margin-left: 0; }
li:last-child { margin-right: 0; }
li:first-child::before { display: none; }
li:first-child {
margin-left: 0;
}

.active > a { color: $brand-white; }
.active::before,
.active {
background: $brand-sky-dk;
li:last-child {
margin-right: 0;
}

li:last-child::after {
display: none;
}

.complete > a { color: $brand-white; }
.complete,
.complete:before {
.complete::after {
background: $brand-emerald;
}

.complete > a {
color: $brand-white;
}

.active,
.active::after {
background: $brand-sky-dk;
}

.active > a {
color: $brand-white;
}
}

0 comments on commit 2a5660f

Please sign in to comment.