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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35c07868db0fc9f06cc95b5af64d1228ede7894c8acdb63570c368acf8d179f8
4
- data.tar.gz: 80e712a56c6e421a922e109ba7cdfcf4807f24aa2b1a8aac9e8d6b334f483986
3
+ metadata.gz: 07f0dd2b889d4de8d8c69e590e6f491ba46921cd666cfa035a4d96aee505626b
4
+ data.tar.gz: bee696a1b3f4e0cafa3ddf758cb43cec40c826f56c142a5fdb648346a13db8c2
5
5
  SHA512:
6
- metadata.gz: 3cda7d6fd762ae09f8376b344f3e1a2a28c32605cfc9c5afb51117f31868e5ea9e05f299e587937ad045d4bb2c0e24bc4dc4b3351a02cae840ebe3a7cca56b1b
7
- data.tar.gz: 68e26c82a72335b2ff799d816f3e8562367b7d14e0de78794ac19b3bcc36a98b4dc51f9d6b9f06d82d5769d87cb132ada8b8a8fd31706434a001428b772367b8
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
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor Tabs
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>
3
- v1.0.0-alpha.8, 2022-11-30
3
+ v1.0.0-alpha.10, 2022-12-08
4
4
  :idprefix:
5
5
  :idseparator: -
6
6
  ifndef::env-github[:icons: font]
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
- border: 1px solid black;
13
- border-bottom: 0;
16
+ background-color: #fff;
14
17
  cursor: pointer;
15
18
  display: flex;
16
19
  font-weight: bold;
17
- height: 2em;
18
- line-height: 1;
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, .tabs > ul p {
25
- margin-bottom: 0;
25
+ .tabs.ulist > ul li {
26
+ margin: 0;
26
27
  }
27
28
 
28
- .tabs > ul li + li[id] {
29
- margin-top: 0;
29
+ .tabs > ul p {
30
+ line-height: inherit;
31
+ margin: 0;
30
32
  }
31
33
 
32
- .tabset {
33
- margin-bottom: 1.25em;
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: black;
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: white;
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
- .tabset > .content {
55
- border: 1px solid gray;
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
- (tabs = create_list parent, :ulist).add_role 'tabs'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module Tabs
5
- VERSION = '1.0.0.alpha.8'
5
+ VERSION = '1.0.0.alpha.10'
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.8
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-30 00:00:00.000000000 Z
11
+ date: 2022-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor