Skip to content

Commit

Permalink
added steps breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
brianbodollo committed Oct 29, 2015
1 parent ce1cf7c commit a26ee48
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 40 deletions.
174 changes: 136 additions & 38 deletions docs/dist/script.js

Large diffs are not rendered by default.

46 changes: 44 additions & 2 deletions docs/dist/style.css

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

1 change: 1 addition & 0 deletions docs/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default (
<Route path="dropdown" component={require('./sections/Docs-Dropdown')} />
<Route path="modal" component={require('./sections/Docs-Modal')} />
<Route path="colors" component={require('./sections/Docs-Colors')} />
<Route path="steps" component={require('./sections/Docs-Steps')} />
<Route path="guidelines" component={require('./sections/Docs-Guidelines')} />
</Route>
</Route>
Expand Down
13 changes: 13 additions & 0 deletions docs/sections/Docs-Steps/index.jsx
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>
);
}
}
1 change: 1 addition & 0 deletions docs/sections/Docs/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default class Docs extends React.Component {
<Link to="/slate" activeClassName="-selected" className="menuitem">Slate</Link>
<Link to="/dropdown" activeClassName="-selected" className="menuitem">Dropdown</Link>
<Link to="/modal" activeClassName="-selected" className="menuitem">Modal</Link>
<Link to="/steps" activeClassName="-selected" className="menuitem">Steps</Link>
</nav>

<nav className="list-group _spacer-large" role="menu">
Expand Down
1 change: 1 addition & 0 deletions styles/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@import "components/badge";
@import "components/nav";
@import "components/breadcrumbs";
@import "components/steps";
@import "components/list-group";
@import "components/panel";
@import "components/hero";
Expand Down
47 changes: 47 additions & 0 deletions styles/components/_steps.scss
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; }

}

0 comments on commit a26ee48

Please sign in to comment.