-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexplainer-widget-element.html
More file actions
35 lines (35 loc) · 1.11 KB
/
explainer-widget-element.html
File metadata and controls
35 lines (35 loc) · 1.11 KB
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
<style>
@import "./telepathic-styles/telepathy.css";
/* contain CSS to the parent of this, speeds up calculations and helps with browsers that need to polyfill webcomponents 1x */
:host {
display: block;
contain: content;
}
h4{
font-weight: lighter;
}
h5, h6 {
font-weight: lighter;
}
</style>
<section>
<slot name="source"></slot>
<div class="row">
<div class="paper">
<h4>${source.className}</h4>
<h5>${source.tagName}</h5>
<h6>${source.outerHTML}</h6>
<p>${source.description}</p>
</div>
<div class="paper">
<details>
<summary>${source.className} JS</summary>
<textarea value="${source.code}" rows="${source.jsCount}" disabled></textarea>
</details>
<details>
<summary>${source.className} Template Source Code</summary>
<textarea value="${source.template}" rows="${source.lineCount}" disabled></textarea>
</details>
</div>
</div>
</section>