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 +4 -4
- data/CHANGELOG.adoc +10 -0
- data/README.adoc +1 -1
- data/data/css/tabs.css +13 -6
- data/data/js/tabs.js +4 -0
- data/lib/asciidoctor/tabs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 601c6ff5abe598efcbd05754237c29ee0d75412553ab59596a1f44f798f8e340
|
4
|
+
data.tar.gz: 2dc954003e7c3d180c610d5faf0d5e1c29bb49e73434275a81305de55793a170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
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.
|
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-
|
11
|
+
date: 2022-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|