-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce1cf7c
commit a26ee48
Showing
7 changed files
with
243 additions
and
40 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
|
||
export default class Steps extends React.Component { | ||
render() { | ||
return ( | ||
<ul className="steps"> | ||
<li className="-complete"> <a> <i className="icon icon-checkmark" /> </a> </li> | ||
<li className="-active"> <a> 2 </a> </li> | ||
<li> <a> 3 </a> </li> | ||
</ul> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.steps { | ||
padding: 8px 15px; | ||
list-style: none; | ||
color: $brand-gray; | ||
font-size: $small; | ||
|
||
li { | ||
position: relative; | ||
display: inline-block; | ||
margin: 0 1em; | ||
width: 2em; | ||
height: 2em; | ||
padding: 2px 10px; | ||
text-align: center; | ||
background: $brand-gray-lt; | ||
text-decoration: none; | ||
border-radius: 1em; | ||
border: $border-radius-base solid $brand-gray; | ||
} | ||
|
||
li > a { color: $brand-gray-dk; } | ||
|
||
li::before{ | ||
content: ''; | ||
position: absolute; | ||
top: 0.9em; | ||
left: -4em; | ||
width: 4em; | ||
height: 0.2em; | ||
background: $brand-gray; | ||
z-index: -1; | ||
} | ||
|
||
.-active::before { | ||
background: $brand-sky-dk; | ||
} | ||
|
||
|
||
li:first-child::before { display: none; } | ||
|
||
.-active { background: $brand-sky-dk; } | ||
.-active > a { color: $brand-white; } | ||
|
||
.-complete { background: $brand-emerald; } | ||
.-complete > a { color: $brand-white; } | ||
|
||
} |