enigmatic 0.9.18 → 0.9.19

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/enigmatic.css CHANGED
@@ -1,15 +1,18 @@
1
1
  /* layout */
2
2
 
3
- body {
3
+ body, section {
4
4
  display: grid;
5
5
  font-family: Roboto, Helvetica, sans-serif;
6
6
  margin: 0;
7
7
  grid-template-columns: var(--cols, 1fr 4fr 1fr);
8
8
  grid-template-rows: var(--rows, 1fr 9fr 1fr);
9
+ }
10
+
11
+ body {
9
12
  height: 100vh;
10
13
  }
11
14
 
12
- div {
15
+ section, div {
13
16
  grid-column: span var(--span, 1);
14
17
  grid-row: span var(--span-rows, 1);
15
18
  }
package/index.html CHANGED
@@ -1,16 +1,10 @@
1
1
  <script src='enigmatic.js'></script>
2
2
  <link rel='stylesheet' href='enigmatic.css'>
3
3
 
4
- <body style='--rows:1fr 5fr; --cols:1fr 1fr'>
5
- <div class='bg-red' data='mykey'></div>
6
- <div data='mykey2.k'></div>
7
- <div>three</div>
8
- </body>
9
-
10
- <script>
11
- window.main = () => {
12
- body.child().innerHTML = 'some text'
13
- data.mykey = 'somevalue'
14
- data.mykey2 = {k: 'v'}
15
- }
16
- </script>
4
+ <body style='--rows:1fr 1fr; --cols:1fr 1fr'>
5
+ <section style='--rows:1fr 1fr; --cols:1fr 1fr'>
6
+ <div style='--span:2'>1</div>
7
+ <div>2</div>
8
+ <div>3</div>
9
+ </section>
10
+ </body>
package/package.json CHANGED
@@ -8,5 +8,5 @@
8
8
  "type": "git",
9
9
  "url": "git://github.com/digplan/enigmatic.git"
10
10
  },
11
- "version": "0.9.18"
11
+ "version": "0.9.19"
12
12
  }