|
| 1 | +/*! Asciidoctor Tabs | Copyright (c) 2018-present Dan Allen | MIT License */ |
| 2 | +.tabs { |
| 3 | + margin-bottom: 1.25em; |
| 4 | +} |
| 5 | + |
| 6 | +.tablist > ul { |
| 7 | + display: flex; |
| 8 | + flex-wrap: wrap; |
| 9 | + list-style: none; |
| 10 | + margin: 0; |
| 11 | + padding: 0; |
| 12 | +} |
| 13 | + |
| 14 | +.tablist > ul li { |
| 15 | + align-items: center; |
| 16 | + background-color: #fff; |
| 17 | + cursor: pointer; |
| 18 | + display: flex; |
| 19 | + font-weight: bold; |
| 20 | + line-height: 1.5; |
| 21 | + padding: 0.25em 1em; |
| 22 | + position: relative; |
| 23 | +} |
| 24 | + |
| 25 | +.tablist > ul li:focus-visible { |
| 26 | + outline: none; |
| 27 | +} |
| 28 | + |
| 29 | +.tablist.ulist, |
| 30 | +.tablist.ulist > ul li { |
| 31 | + margin: 0; |
| 32 | +} |
| 33 | + |
| 34 | +.tablist.ulist > ul li + li { |
| 35 | + margin-left: 0.25em; |
| 36 | +} |
| 37 | + |
| 38 | +.tabs .tablist li::after { |
| 39 | + content: ""; |
| 40 | + display: block; |
| 41 | + height: 1px; |
| 42 | + position: absolute; |
| 43 | + bottom: -1px; |
| 44 | + left: 0; |
| 45 | + right: 0; |
| 46 | +} |
| 47 | + |
| 48 | +.tabs.is-loading .tablist li:not(:first-child), |
| 49 | +.tabs:not(.is-loading) .tablist li:not(.is-selected) { |
| 50 | + background-color: #f5f5f5; |
| 51 | +} |
| 52 | + |
| 53 | +.tabs.is-loading .tablist li:first-child::after, |
| 54 | +.tabs:not(.is-loading) .tablist li.is-selected::after { |
| 55 | + background-color: #fff; |
| 56 | +} |
| 57 | + |
| 58 | +/* |
| 59 | +.tabs:not(.is-loading) .tablist li, |
| 60 | +.tabs:not(.is-loading) .tablist li::after { |
| 61 | + transition: background-color 200ms ease-in-out; |
| 62 | +} |
| 63 | +*/ |
| 64 | + |
| 65 | +.tablist > ul p { |
| 66 | + line-height: inherit; |
| 67 | + margin: 0; |
| 68 | +} |
| 69 | + |
| 70 | +.tabpanel { |
| 71 | + background-color: #fff; |
| 72 | + padding: 1.25em; |
| 73 | +} |
| 74 | + |
| 75 | +.tablist > ul li, |
| 76 | +.tabpanel { |
| 77 | + border: 1px solid #dcdcdc; |
| 78 | +} |
| 79 | + |
| 80 | +.tablist > ul li { |
| 81 | + border-bottom: 0; |
| 82 | +} |
| 83 | + |
| 84 | +.tabs.is-loading .tabpanel + .tabpanel, |
| 85 | +.tabs:not(.is-loading) .tabpanel.is-hidden { |
| 86 | + display: none; |
| 87 | +} |
| 88 | + |
| 89 | +.tabpanel > :first-child { |
| 90 | + margin-top: 0; |
| 91 | +} |
| 92 | + |
| 93 | +/* #content is a signature of the Asciidoctor standalone HTML output */ |
| 94 | +#content .tabpanel > :last-child, |
| 95 | +#content .tabpanel > :last-child > :last-child, |
| 96 | +#content .tabpanel > :last-child > :last-child > li:last-child > :last-child { |
| 97 | + margin-bottom: 0; |
| 98 | +} |
| 99 | + |
| 100 | +.tablecontainer { |
| 101 | + overflow-x: auto; |
| 102 | +} |
| 103 | + |
| 104 | +#content .tablecontainer { |
| 105 | + margin-bottom: 1.25em; |
| 106 | +} |
| 107 | + |
| 108 | +#content .tablecontainer > table.tableblock { |
| 109 | + margin-bottom: 0; |
| 110 | +} |
0 commit comments