/
breadcrumbs.css
91 lines (76 loc) · 2.5 KB
/
breadcrumbs.css
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
body {
background: #999;
font-family: sans-serif;
}
.breadcrumbs {
display: table;
margin: 2em 0;
counter-reset: level1;
padding: 0;
}
.breadcrumbs li {
display: table-cell;
width: 1%;
}
.breadcrumbs a {
display: block;
white-space: nowrap;
position: relative;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #aaaaaa 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#aaaaaa)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#aaaaaa 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#aaaaaa 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#aaaaaa 100%); /* IE10+ */
background: linear-gradient(to bottom, #ffffff 0%,#aaaaaa 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#aaaaaa',GradientType=0 ); /* IE6-9 */
padding: 0 .5em 0 1.8em;
line-height: 32px;
height: 32px;
border: 2px solid #000;
border-right: none;
text-decoration: none;
color: #000;
text-shadow: 0 1px 1px #ddd;
}
.breadcrumbs a.active {
background: #ffff00; /* Old browsers */
background: -moz-linear-gradient(top, #ffff00 0%, #ff0000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffff00), color-stop(100%,#ff0000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffff00 0%,#ff0000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffff00 0%,#ff0000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffff00 0%,#ff0000 100%); /* IE10+ */
background: linear-gradient(to bottom, #ffff00 0%,#ff0000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffff00', endColorstr='#ff0000',GradientType=0 ); /* IE6-9 */
font-weight: bold;
}
.breadcrumbs a:hover {
text-decoration: underline;
}
.breadcrumbs li:first-of-type a {
padding-left: .8em;
border-radius: 4px 0 0 4px;
}
.breadcrumbs a:after {
content: "";
position: absolute;
height: 32px;
width: 18px;
background-image: url(arrow.svg);
right: -18px;
z-index: 1;
}
.breadcrumbs a.active:after {
background-image: url(arrow-active.svg);
}
.breadcrumbs li:last-of-type a {
border-radius: 0 4px 4px 0;
border-right: 2px solid #000;
}
.breadcrumbs li:last-of-type a:after {
display: none;
}
.breadcrumbs a:before {
content: counter(level1) ". ";
counter-increment: level1;
}