asciidoctor-tabs 1.0.0.alpha.8 → 1.0.0.alpha.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +29 -0
- data/README.adoc +1 -1
- data/data/css/tabs.css +34 -18
- data/lib/asciidoctor/tabs/block.rb +3 -1
- 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: 07f0dd2b889d4de8d8c69e590e6f491ba46921cd666cfa035a4d96aee505626b
|
4
|
+
data.tar.gz: bee696a1b3f4e0cafa3ddf758cb43cec40c826f56c142a5fdb648346a13db8c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32166ea582c1644e3cc2d4da17158f1d9e21fafa5353d455bb116fb9601e0df1001dc308cfe2d75dec16bd612e92d7755c465c9f031927ce237578a890c9eae6
|
7
|
+
data.tar.gz: dfca342f289480ae0c56ba93d00b9f36be79f175981b5ac9e827b81e25cd64be245ba527853c0e4562326df3be4ec11cc41617668214702f3aafe5b9d159c3ea
|
data/CHANGELOG.adoc
CHANGED
@@ -4,6 +4,35 @@
|
|
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.10 (2022-12-08) - @mojavelinux
|
8
|
+
|
9
|
+
=== Fixed
|
10
|
+
|
11
|
+
* Remove overflow styles on tab pane as it's not universal
|
12
|
+
* Make a best effort to constrain the width of an overflowing table
|
13
|
+
|
14
|
+
=== Details
|
15
|
+
|
16
|
+
{url-repo}/releases/tag/v1.0.0-alpha.10[git tag] | {url-repo}/compare/v1.0.0-alpha.9\...v1.0.0-alpha.10[full diff]
|
17
|
+
|
18
|
+
== 1.0.0-alpha.9 (2022-12-07) - @mojavelinux
|
19
|
+
|
20
|
+
=== Changed
|
21
|
+
|
22
|
+
* Assign `tab` role to each item in tab list
|
23
|
+
* Apply border and padding to tab pane element instead of its parent
|
24
|
+
* Remove fixed height on tab element; using padding instead
|
25
|
+
* Use more subtle color scheme for border and background colors on tabs
|
26
|
+
|
27
|
+
=== Fixed
|
28
|
+
|
29
|
+
* Configure overflow content in tab panel to scroll horizontally
|
30
|
+
* Set background on tabs properly so background does not bleed through
|
31
|
+
|
32
|
+
=== Details
|
33
|
+
|
34
|
+
{url-repo}/releases/tag/v1.0.0-alpha.9[git tag] | {url-repo}/compare/v1.0.0-alpha.8\...v1.0.0-alpha.9[full diff]
|
35
|
+
|
7
36
|
== 1.0.0-alpha.8 (2022-11-30) - @mojavelinux
|
8
37
|
|
9
38
|
=== Fixed
|
data/README.adoc
CHANGED
data/data/css/tabs.css
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
/*! Asciidoctor Tabs | Copyright (c) 2018-present Dan Allen | MIT License */
|
2
|
+
.tabset {
|
3
|
+
margin-bottom: 1.25em;
|
4
|
+
}
|
5
|
+
|
2
6
|
.tabs > ul {
|
3
7
|
display: flex;
|
4
8
|
flex-wrap: wrap;
|
@@ -9,39 +13,36 @@
|
|
9
13
|
|
10
14
|
.tabs > ul li {
|
11
15
|
align-items: center;
|
12
|
-
|
13
|
-
border-bottom: 0;
|
16
|
+
background-color: #fff;
|
14
17
|
cursor: pointer;
|
15
18
|
display: flex;
|
16
19
|
font-weight: bold;
|
17
|
-
height:
|
18
|
-
|
19
|
-
margin-right: 0.25em;
|
20
|
-
padding: 0 1em;
|
20
|
+
line-height: 1.5;
|
21
|
+
padding: 0.25em 1em;
|
21
22
|
position: relative;
|
22
23
|
}
|
23
24
|
|
24
|
-
.tabs > ul li
|
25
|
-
margin
|
25
|
+
.tabs.ulist > ul li {
|
26
|
+
margin: 0;
|
26
27
|
}
|
27
28
|
|
28
|
-
.tabs > ul
|
29
|
-
|
29
|
+
.tabs > ul p {
|
30
|
+
line-height: inherit;
|
31
|
+
margin: 0;
|
30
32
|
}
|
31
33
|
|
32
|
-
.
|
33
|
-
margin-
|
34
|
+
.tabs.ulist > ul li + li {
|
35
|
+
margin-left: 0.25em;
|
34
36
|
}
|
35
37
|
|
36
38
|
.tabset.is-loading .tabs li:not(:first-child),
|
37
39
|
.tabset:not(.is-loading) .tabs li:not(.is-active) {
|
38
|
-
background-color:
|
39
|
-
color: white;
|
40
|
+
background-color: #f5f5f5;
|
40
41
|
}
|
41
42
|
|
42
43
|
.tabset.is-loading .tabs li:first-child::after,
|
43
|
-
.tabs li.is-active::after {
|
44
|
-
background-color:
|
44
|
+
.tabset:not(.is-loading) .tabs li.is-active::after {
|
45
|
+
background-color: inherit;
|
45
46
|
content: "";
|
46
47
|
display: block;
|
47
48
|
height: 3px; /* Chrome doesn't always paint the line accurately, so add a little extra */
|
@@ -51,11 +52,26 @@
|
|
51
52
|
right: 0;
|
52
53
|
}
|
53
54
|
|
54
|
-
.
|
55
|
-
|
55
|
+
.tab-pane {
|
56
|
+
background-color: #fff;
|
56
57
|
padding: 1.25em;
|
57
58
|
}
|
58
59
|
|
60
|
+
.tab-pane > table.tableblock {
|
61
|
+
border-width: 0;
|
62
|
+
display: block;
|
63
|
+
overflow-x: auto;
|
64
|
+
}
|
65
|
+
|
66
|
+
.tabs > ul li,
|
67
|
+
.tab-pane {
|
68
|
+
border: 1px solid #dcdcdc;
|
69
|
+
}
|
70
|
+
|
71
|
+
.tabs > ul li {
|
72
|
+
border-bottom: 0;
|
73
|
+
}
|
74
|
+
|
59
75
|
.tabset.is-loading .tab-pane:not(:first-child),
|
60
76
|
.tabset:not(.is-loading) .tab-pane:not(.is-active) {
|
61
77
|
display: none;
|
@@ -23,7 +23,8 @@ module Asciidoctor
|
|
23
23
|
if (title = attrs['title'])
|
24
24
|
parent << (create_html_fragment parent, %(<div class="title">#{parent.apply_subs title}</div>))
|
25
25
|
end
|
26
|
-
|
26
|
+
tabs = create_list parent, :ulist
|
27
|
+
tabs.add_role 'tabs'
|
27
28
|
panes = {}
|
28
29
|
set_id_on_tab = (doc.backend == 'html5') || (list_item_supports_id? doc)
|
29
30
|
source_tabs.items.each do |labels, content|
|
@@ -32,6 +33,7 @@ module Asciidoctor
|
|
32
33
|
tab_id = generate_id tab.text, doc, tabs_id
|
33
34
|
tab_source_text = tab.instance_variable_get :@text
|
34
35
|
set_id_on_tab ? (tab.id = tab_id) : (tab.text = %([[#{tab_id}]]#{tab_source_text}))
|
36
|
+
tab.add_role 'tab'
|
35
37
|
(doc.register :refs, [tab_id, tab]).set_attr 'reftext', tab_source_text
|
36
38
|
tab_id
|
37
39
|
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.
|
4
|
+
version: 1.0.0.alpha.10
|
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-
|
11
|
+
date: 2022-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|