asciidoctor-tabs 1.0.0.alpha.11 → 1.0.0.alpha.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fabd40d3903b96a2982c4bb90a3a6d783fe55369bea21e06f98e4ec97a306bd
4
- data.tar.gz: b6259434eb0eafd0c3c8a5a51bc1f786a111120fe68786ad21b4ad52b737412b
3
+ metadata.gz: 601c6ff5abe598efcbd05754237c29ee0d75412553ab59596a1f44f798f8e340
4
+ data.tar.gz: 2dc954003e7c3d180c610d5faf0d5e1c29bb49e73434275a81305de55793a170
5
5
  SHA512:
6
- metadata.gz: 8990b67f318bbe16cb3441dadc8f8af8cbb78b4e8f31f53da1c4e8ef855e51eb458a024e1ed2886ceb66bc58bc38ab860c244e2a500bf13c43f87bf2b4212155
7
- data.tar.gz: baca94e8a45013ef881a2a2bc689225225892d145a877a6ec51d7bb4cf697fb98ae7bdd57f516fa831170b9e8e7b6c1c60e0310a5f850ddefcb046225ba7077b
6
+ metadata.gz: 61ead4d57a662a73f3b754450127ff9ec16dc4ed40ae3a3997e0ce8562cdf3b501cba83bdc6f3c6d32d2dcc08c63900031010c1aeadad1b731f67c838848f8d0
7
+ data.tar.gz: e2eed95c99e32fbcd9630126ab6b9b73f88181a07f874c4f1aaf8f0b013dde42b873059ac9926b25c7127e800f1c68deddd6a88690a5650631a43a61ade848ca
data/CHANGELOG.adoc CHANGED
@@ -4,6 +4,16 @@
4
4
  This document provides a curated view of the changes to Asciidoctor Tabs per release.
5
5
  For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
6
6
 
7
+ == 1.0.0-alpha.12 (2022-12-23) - @mojavelinux
8
+
9
+ === Fixed
10
+
11
+ * Wrap div with class `tablecontainer` around tables inside tabpanel to prevent tables from overflowing bounds while honoring width (#41)
12
+
13
+ === Details
14
+
15
+ {url-repo}/releases/tag/v1.0.0-alpha.12[git tag] | {url-repo}/compare/v1.0.0-alpha.11\...v1.0.0-alpha.12[full diff]
16
+
7
17
  == 1.0.0-alpha.11 (2022-12-08) - @mojavelinux
8
18
 
9
19
  === Changed
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor Tabs
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>
3
- v1.0.0-alpha.11, 2022-12-08
3
+ v1.0.0-alpha.12, 2022-12-23
4
4
  :idprefix:
5
5
  :idseparator: -
6
6
  ifndef::env-github[:icons: font]
data/data/css/tabs.css CHANGED
@@ -58,12 +58,6 @@
58
58
  padding: 1.25em;
59
59
  }
60
60
 
61
- .tabpanel > table.tableblock {
62
- border-width: 0;
63
- display: block;
64
- overflow-x: auto;
65
- }
66
-
67
61
  .tablist > ul li,
68
62
  .tabpanel {
69
63
  border: 1px solid #dcdcdc;
@@ -82,8 +76,21 @@
82
76
  margin-top: 0;
83
77
  }
84
78
 
79
+ /* #content is a signature of the Asciidoctor standalone HTML output */
85
80
  #content .tabpanel > :last-child,
86
81
  #content .tabpanel > :last-child > :last-child,
87
82
  #content .tabpanel > :last-child > :last-child > li:last-child > :last-child {
88
83
  margin-bottom: 0;
89
84
  }
85
+
86
+ .tablecontainer {
87
+ overflow-x: auto;
88
+ }
89
+
90
+ #content .tablecontainer {
91
+ margin-bottom: 1.25em;
92
+ }
93
+
94
+ #content .tablecontainer > table.tableblock {
95
+ margin-bottom: 0;
96
+ }
data/data/js/tabs.js CHANGED
@@ -24,6 +24,10 @@
24
24
  tab.setAttribute('aria-controls', panel.id)
25
25
  panel.setAttribute('role', 'tabpanel')
26
26
  idx ? toggleHidden(panel, true) : toggleSelected(tab, true)
27
+ forEach.call(panel.querySelectorAll('table.tableblock'), function (table) {
28
+ var container = Object.assign(document.createElement('div'), { className: 'tablecontainer' })
29
+ table.parentNode.insertBefore(container, table).appendChild(table)
30
+ })
27
31
  var onClick = activateTab
28
32
  var instance = { tabs: tabs, tab: tab, panel: panel }
29
33
  var syncId
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module Tabs
5
- VERSION = '1.0.0.alpha.11'
5
+ VERSION = '1.0.0.alpha.12'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-tabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.11
4
+ version: 1.0.0.alpha.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2022-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor