-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-panel.html
68 lines (63 loc) · 1.86 KB
/
my-panel.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
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../my-style/my-style.html">
<link rel="import" href="../my-style/my-font.html">
<dom-module id="my-panel">
<template>
<style include="my-style">
.panel{
font-family: CSChatThaiUI;
border-style: solid;
border-width: 1px;
border-radius: 4px;
}
.panel-header,.panel-body,.panel-footer{
padding: 10px 15px;
}
.panel-header{
border-bottom: 1px solid transparent;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.panel-footer{
border-top: 1px solid transparent;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.panel-default{
color:#333;
border-color:#ddd;
}
.panel-default>.panel-header,.panel-default>.panel-footer{
border-color:#ddd;
background-color: #f5f5f5;
}
.panel-primary{
color:var(--bg-color-white);
border-color:var(--bg-color-primary);
}
.panel-primary>.panel-header,.panel-primary>.panel-footer{
border-color:var(--bg-color-primary);
background-color: var(--bg-color-primary);
}
</style>
<div class="panel panel-default">
<div class="panel-header"><slot name="header"></slot></div>
<div class="panel-body"><slot name="body"></slot></div>
<div class="panel-footer"><slot name="footer"></slot></div>
</div>
</template>
<script>
class MyPanel extends Polymer.Element {
static get is() { return 'my-panel'; }
// static get properties() {
// return {
// prop1: {
// type: String,
// value: 'my-panel'
// }
// };
// }
}
window.customElements.define(MyPanel.is, MyPanel);
</script>
</dom-module>