@potch/html-bin 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.min.js +1 -1
- package/build/index.min.js.map +1 -1
- package/index.html +5 -2
- package/package.json +1 -1
- package/src/style.css +6 -3
- package/build/index.min.js.gz +0 -0
package/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script defer type="module">
|
|
8
8
|
import { createBin } from "/build/index.min.js";
|
|
9
9
|
window.bin = createBin({
|
|
10
|
-
container: document.
|
|
10
|
+
container: document.querySelector("#mount"),
|
|
11
11
|
sources: {
|
|
12
12
|
js: `// js goes here
|
|
13
13
|
const el = document.querySelector('h1');
|
|
@@ -30,5 +30,8 @@ setInterval(() => {
|
|
|
30
30
|
});
|
|
31
31
|
</script>
|
|
32
32
|
</head>
|
|
33
|
-
<body
|
|
33
|
+
<body>
|
|
34
|
+
<div id="mount"></div>
|
|
35
|
+
<p>Hello World</p>
|
|
36
|
+
</body>
|
|
34
37
|
</html>
|
package/package.json
CHANGED
package/src/style.css
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.bin {
|
|
15
|
+
--bin-width: 100%;
|
|
16
|
+
--bin-height: 512px;
|
|
17
|
+
|
|
15
18
|
height: var(--bin-height);
|
|
16
19
|
width: var(--bin-width);
|
|
17
20
|
max-height: 90vh;
|
|
@@ -28,13 +31,13 @@
|
|
|
28
31
|
--code-highlight: color-mix(in xyz, var(--code-bg), #cceeff 5%);
|
|
29
32
|
--code-text: #f8f8f2;
|
|
30
33
|
--code-comment: #a3b0d9;
|
|
31
|
-
--bin-width: 100%;
|
|
32
|
-
--bin-height: 512px;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.bin__widget {
|
|
37
|
+
position: absolute;
|
|
36
38
|
width: 100%;
|
|
37
39
|
height: 100%;
|
|
40
|
+
|
|
38
41
|
display: grid;
|
|
39
42
|
grid:
|
|
40
43
|
"tabs x menu" auto
|
|
@@ -47,7 +50,7 @@
|
|
|
47
50
|
1fr;
|
|
48
51
|
align-items: stretch;
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
overflow: hidden;
|
|
51
54
|
height: var(--bin-height);
|
|
52
55
|
width: var(--bin-width);
|
|
53
56
|
background: var(--bg);
|
package/build/index.min.js.gz
DELETED
|
Binary file
|