-
Notifications
You must be signed in to change notification settings - Fork 0
/
x-breadcrumb.html
53 lines (47 loc) · 1.28 KB
/
x-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
<link rel="import" href="../polymer/polymer.html">
<dom-module id="x-breadcrumb">
<template>
<style>
:host {
display: block;
}
.breadcrumbs {
-webkit-column-count: 5;
-moz-column-count: 5;
column-count: 5;
display: flex;
}
.breadcrumbs[orientation="vertical"] {
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
display: flex;
flex-direction: column;
}
</style>
<div>
<div class="wrapper">
<div class="breadcrumbs" orientation$="[[orientation]]">
<slot></slot>
</ul>
</div>
</div>
</template>
<script>
(function () {
'use strict';
Polymer({
is: 'x-breadcrumb',
properties: {
orientation: {
type: String,
value: '',
notify: true
}
},
value: function () {
}
});
})();
</script>
</dom-module>