-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.min.js
36 lines (35 loc) · 1.31 KB
/
index.min.js
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
var e=class extends HTMLElement{constructor(){super();this.__shadowRoot=this.attachShadow({mode:"open"});let t=document.createElement("template");t.innerHTML=e.template(),this.__shadowRoot.appendChild(t.content.cloneNode(!0))}connectedCallback(){this.setAttribute("role","presentation");for(let t of this.children)t.setAttribute("role","none")}static template(){return`
<style>
:host {
display: block;
overflow: hidden;
text-align: center;
}
:host:before,
:host:after {
content: "";
display: inline-block;
vertical-align: middle;
position: relative;
width: 50%;
border-top-style: var(--hr-style, solid);
border-top-width: var(--hr-width, 1px);
border-color: var(--hr-color, #000);
}
:host:before {
right: var(--space-around, 1em);
margin-left: -50%;
}
:host:after {
left: var(--space-around, 1em);
margin-right: -50%;
}
::slotted(*) {
display: inline-block;
width: var(--width, 32px);
height: var(--height, 32px);
vertical-align: middle;
}
</style>
<slot></slot>
`}};customElements.define("wc-icon-rule",e);export{e as WCIconRule};