forked from LRNWebComponents/hax-body
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhax-plate-context.html
100 lines (95 loc) · 2.35 KB
/
hax-plate-context.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="hax-context-item-menu.html">
<link rel="import" href="hax-context-item.html">
<!--
`hax-plate-context`
A context menu that provides common grid plate based authoring options.
@demo demo/index.html
@microcopy - the mental model for this element
- context menu - this is a menu of text based buttons and events for use in a larger solution.
- grid plate - the container / full HTML tag which can have operations applied to it.
-->
<dom-module id="hax-plate-context">
<template>
<style>
:host {
display: block;
width: 64px;
}
:host:hover {
opacity: 1;
}
hax-context-item {
display: block;
margin: 6px 0;
width: 32px;
}
.area {
width: 32px;
float: left;
opacity: .3;
visibility: visible;
transition: .8s all ease;
}
.area:hover {
opacity: 1;
}
</style>
<div class="area">
<hax-context-item
light
mini
icon="image:add-to-photos"
label="Add"
event-name="hax-manager-open"
value="0"
direction="left"></hax-context-item>
<hax-context-item
light
mini
icon="search"
label="Find"
event-name="hax-manager-open"
value="1"
direction="left"></hax-context-item>
<hax-context-item
light
mini
icon="view-quilt"
label="Make"
event-name="hax-manager-open"
value="2"
direction="left"></hax-context-item>
</div>
<div class="area">
<hax-context-item
light
mini
icon="arrow-upward"
label="Move up"
event-name="grid-plate-up"
direction="left"></hax-context-item>
<hax-context-item
light
mini
disabled
icon="editor:drag-handle"
label="Drag"
event-name="hax-make-draggable"
direction="right"></hax-context-item>
<hax-context-item
light
mini
icon="arrow-downward"
label="Move down"
event-name="grid-plate-down"
direction="left"></hax-context-item>
</div>
</template>
<script>
Polymer({
is: 'hax-plate-context',
});
</script>
</dom-module>