-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaqa-breadcrumb.html
70 lines (66 loc) · 1.96 KB
/
aqa-breadcrumb.html
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
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../polymer/lib/elements/dom-repeat.html">
<link rel="import" href="../aqa-font/aqa-mitr-font.html">
<dom-module id="aqa-breadcrumb">
<template>
<style>
ul{
padding: 0px;
margin: 0px;
}
ul.breadcrumb {
/* padding: 10px 16px; */
list-style: none;
}
ul.breadcrumb li {
display: inline;
font-size: 1rem;
}
ul.breadcrumb li+li:before {
padding: 8px;
color: black;
content: ">";
}
ul.breadcrumb li:last-of-type a{
color:black
}
ul.breadcrumb li:last-of-type a:hover{
color:black;
text-decoration: none;
cursor: no-drop;
}
ul.breadcrumb li a {
color: #0275d8;
text-decoration: none;
}
ul.breadcrumb li a:hover {
color: #01447e;
text-decoration: underline;
}
a{
font-family: MitrLight;
}
</style>
<ul class="breadcrumb">
<template is="dom-repeat" items="[[items]]">
<li>
<a href$="[[item.url]]">[[item.label]]</a>
</li>
</template>
</ul>
</template>
<script>
class AqaBreadcrumb extends Polymer.Element {
static get is() { return 'aqa-breadcrumb'; }
static get properties() {
return {
items:{
type:Array,
value:[]
}
}
}
}
window.customElements.define(AqaBreadcrumb.is, AqaBreadcrumb);
</script>
</dom-module>