-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplastik-app-menubar-item.html
62 lines (50 loc) · 1.14 KB
/
plastik-app-menubar-item.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
<link rel="import" href="../polymer/polymer.html">
<!--
`plastik-app-menubar-item`
Menubar item
-->
<dom-module id="plastik-app-menubar-item">
<template>
<style>
:host {
padding: 3px 7px 5px 7px;
margin-top: 2px;
border: 1px solid transparent;
outline: none;
}
:host:hover {
background: #eee;
border-color: #eee;
}
:host.expanded {
background: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, .2);
border-bottom: none;
-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
color: black;
}
plastik-app-menubar-menu {
display: none;
}
:host.expanded plastik-app-menubar-menu {
display: block;
}
</style>
</template>
<script>
Polymer({
is: 'plastik-app-menubar-item',
properties: {},
listeners: {
'tap': 'hostTap'
},
hostTap: function () {
},
ready: function () {
}
})
</script>
</dom-module>