|
| 1 | +@import "@asciidoctor/tabs"; |
| 2 | + |
| 3 | +/* Datastax styles */ |
| 4 | + |
| 5 | +.tabpanel { |
| 6 | + padding: var(--ds-space-2) 0; |
| 7 | + border: none; |
| 8 | + border-top: 1px solid var(--ds-divider); |
| 9 | +} |
| 10 | + |
| 11 | +.tablist > ul li { |
| 12 | + background-color: transparent; |
| 13 | + border: none; |
| 14 | + font-weight: normal; |
| 15 | + color: var(--ds-text-primary); |
| 16 | + padding: var(--ds-space-1) var(--ds-space-1h); |
| 17 | +} |
| 18 | + |
| 19 | +.tablist.ulist > ul li + li { |
| 20 | + margin: 0; |
| 21 | +} |
| 22 | + |
| 23 | +.tabs .tablist li::after { |
| 24 | + height: calc(2 / var(--rem-base) * 1rem); |
| 25 | +} |
| 26 | + |
| 27 | +.tabs.is-loading .tablist li:not(:first-child), |
| 28 | +.tabs:not(.is-loading) .tablist li:not(.is-selected) { |
| 29 | + color: var(--ds-text-tertiary); |
| 30 | + background-color: transparent; |
| 31 | +} |
| 32 | + |
| 33 | +.tabs.is-loading .tablist li:first-child::after, |
| 34 | +.tabs:not(.is-loading) .tablist li.is-selected::after { |
| 35 | + background-color: var(--ds-text-primary); |
| 36 | +} |
| 37 | + |
| 38 | +/* overflow tab title */ |
| 39 | +.tabs.overflow .tablist > ul li p { |
| 40 | + max-width: var(--ds-space-15); |
| 41 | + overflow: hidden; |
| 42 | + display: -webkit-box; |
| 43 | + -webkit-box-orient: vertical; |
| 44 | + -webkit-line-clamp: 1; |
| 45 | +} |
| 46 | + |
| 47 | +/* wrapping tab title */ |
| 48 | +.tabs.wrapping .tablist > ul li p { |
| 49 | + max-width: var(--ds-space-15); |
| 50 | + display: flex; |
| 51 | +} |
| 52 | + |
| 53 | +.tabs.overflow .tablist > ul, |
| 54 | +.tabs.wrapping .tablist > ul { |
| 55 | + flex-wrap: nowrap; |
| 56 | +} |
0 commit comments