/
_breadcrumbs.scss
59 lines (51 loc) · 1.43 KB
/
_breadcrumbs.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// @page Pattern Library/Components
// @name Breadcrumbs
//
// @description
// Breadcrumbs are used to provide signposting of a users location and to enable quick navigation around the site. They are only to be used as a secondary means of navigation however. Pages should also be navigable through other means.
//
// @markup
// <ul class="us-crumbs">
// <li class="us-crumbs__item"><a href="/" class="us-crumbs__link">uSwitch.com</a></li>
// <li class="us-crumbs__item"><a class="us-crumbs__link" href="http://www.uswitch.com/credit-reports/">Credit report</a></li>
// <li class="us-crumbs__item"><a class="us-crumbs__link" href="http://www.uswitch.com/credit-reports/guides/">Credit reports guides</a></li>
// <li class="us-crumbs__item">Statutory credit reports</li>
// </ul>
.us-crumbs {
@extend %reset-box-model;
@extend %clearfix;
@extend %small-font;
margin-top: 1em;
margin-bottom: 1em;
list-style: none;
}
.us-crumbs__item {
@extend %float-left;
margin-bottom: 0;
color: $c-typegrey;
&:before {
display: inline-block;
margin: 0 .35em;
font-size: 1.4em;
font-weight: normal;
content: "\203A";
}
&:first-child:before {
width: 0;
margin: 0;
color: transparent;
}
&:last-child {
font-weight: bold;
}
}
.us-crumbs__link {
color: $c-typegrey;
&:visited {
color: $c-typegrey;
}
&:hover {
color: $c-typegrey;
text-decoration: underline;
}
}