-
Notifications
You must be signed in to change notification settings - Fork 0
/
x-dialog.html
62 lines (47 loc) · 1.29 KB
/
x-dialog.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
<!-- Import Polymer -->
<link rel="import" href="components/polymer/polymer.html">
<script src="components/jquery/dist/jquery.js"></script>
<script src="components/jenga/dist/jenga.js"></script>
<!-- Define your custom element -->
<polymer-element name="x-dialog" attributes="title draggable resizable" assetpath="components/src/">
<template>
<style>[role="dialog"] {
display: none;
}
[role="dialog"] {
width: 400px;
height: 200px;
position: absolute;
border: 1px solid #bbb;
border-radius: 5px;
font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
}
[role="dialog"] h2 {
background: #bbb;
font-size: 16px;
font-weight: normal;
padding: 10px;
margin: 3px;
border-radius: 5px;
padding: 5px;
color: #333;
}
[role="dialog"] p {
margin: 0;
padding: 10px;
font-size: 12px;
color: #333;
}
[role="dialog"] .apache-chief-resize {
background: url(components/src/jquery-ui-icons.png) -64px -224px !important;
width: 16px !important;
height: 16px !important;
}
</style>
<div id="dialog" role="dialog">
<h2 id="title">{{title}}</h2>
<p id="content"><content></content></p>
</div>
</template>
</polymer-element>
<script src="x-dialog.js"></script>