asciidoctor-tabs 1.0.0.alpha.8 → 1.0.0.alpha.9
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.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +18 -0
- data/README.adoc +1 -1
- data/data/css/tabs.css +30 -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: 5aeccc2d9238859443b65f67f884e6629f95ac3a11e1ef89ccaff2280ac27003
|
4
|
+
data.tar.gz: d88ba56fefb38744e27d059c53d61f25507b47b2a8958e34252fed4278c86215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07a151ea4c94cb145e1bf673c0ceec2d96b6c75acc525a969bd304b8e59c4180057e1ee95d762c16f83c2845b76a2c91b6cf248835c97fa58043e1d8b5b58c3e
|
7
|
+
data.tar.gz: 6d8b2e56e0df595d0c5c05a357d5c5bfbd4de89e412c7d94a56d42aebf2bc9c1f875b8667089154c4c35d28ed931081d27270c9fdaba68a8d3a0e2ccc969a49e
|
data/CHANGELOG.adoc
CHANGED
@@ -4,6 +4,24 @@
|
|
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.9 (2022-12-07) - @mojavelinux
|
8
|
+
|
9
|
+
=== Changed
|
10
|
+
|
11
|
+
* Assign `tab` role to each item in tab list
|
12
|
+
* Apply border and padding to tab pane element instead of its parent
|
13
|
+
* Remove fixed height on tab element; using padding instead
|
14
|
+
* Use more subtle color scheme for border and background colors on tabs
|
15
|
+
|
16
|
+
=== Fixed
|
17
|
+
|
18
|
+
* Configure overflow content in tab panel to scroll horizontally
|
19
|
+
* Set background on tabs properly so background does not bleed through
|
20
|
+
|
21
|
+
=== Details
|
22
|
+
|
23
|
+
{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]
|
24
|
+
|
7
25
|
== 1.0.0-alpha.8 (2022-11-30) - @mojavelinux
|
8
26
|
|
9
27
|
=== 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-bottom: 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,22 @@
|
|
51
52
|
right: 0;
|
52
53
|
}
|
53
54
|
|
54
|
-
.tabset
|
55
|
-
|
55
|
+
.tabset .tab-pane {
|
56
|
+
background-color: #fff;
|
57
|
+
display: flex;
|
58
|
+
overflow-x: auto;
|
56
59
|
padding: 1.25em;
|
57
60
|
}
|
58
61
|
|
62
|
+
.tabs > ul li,
|
63
|
+
.tabset .tab-pane {
|
64
|
+
border: 1px solid #dcdcdc;
|
65
|
+
}
|
66
|
+
|
67
|
+
.tabs > ul li {
|
68
|
+
border-bottom: 0;
|
69
|
+
}
|
70
|
+
|
59
71
|
.tabset.is-loading .tab-pane:not(:first-child),
|
60
72
|
.tabset:not(.is-loading) .tab-pane:not(.is-active) {
|
61
73
|
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.9
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|