Skip to content

Commit

Permalink
feat(typography): Add link lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Clark, Chancellor A committed Feb 13, 2017
1 parent 48b8e5d commit a948bde
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 65 deletions.
14 changes: 14 additions & 0 deletions rocketbelt/base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,20 @@ h4 {
@include list-reset($horizontal: true);
}

.link-list:first-of-type {
padding-left: 0;
}

.link-list {
@include link-list();
display: inline-block;
padding: 0 1em;
}

.link-list:last-of-type {
padding-right: 0;
}

a {
color: color(primary);
transition: color 100ms linear;
Expand Down
44 changes: 44 additions & 0 deletions rocketbelt/tools/mixins/_link-list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@mixin link-list() {
@include list-reset()

li {
text-transform: capitalize;
line-height: 1.75;

a {
color: color(gray);
cursor: pointer;
transition: color 100ms linear;

&:hover {
color: color(gray, plus1);
transition: color 100ms linear;
}

&:active {
color: color(gray, minus1);
transition: color 100ms linear;
}
}
}

.title {
text-transform: uppercase;

a {
color: color(black);
cursor: pointer;
transition: color 100ms linear;

&:hover {
color: color(gray, minus2);
transition: color 100ms linear;
}

&:active {
color: color(black);
transition: color 100ms linear;
}
}
}
}
1 change: 1 addition & 0 deletions rocketbelt/tools/mixins/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'clearfix',
'centered',
'color-families',
'link-list',
'list-reset',
'overlay',
'triangle',
Expand Down

0 comments on commit a948bde

Please sign in to comment.