-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* integrate Asciidoctor Tabs * add tabs styles * update asciidoctor-tabs dependency --------- Co-authored-by: Dan Allen <[email protected]>
- Loading branch information
1 parent
b60b172
commit 5948f5d
Showing
9 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
@import "@asciidoctor/tabs"; | ||
|
||
/* Datastax styles */ | ||
|
||
.tabpanel { | ||
padding: var(--ds-space-2) 0; | ||
border: none; | ||
border-top: 1px solid var(--ds-divider); | ||
} | ||
|
||
.tablist > ul li { | ||
background-color: transparent; | ||
border: none; | ||
font-weight: normal; | ||
color: var(--ds-text-primary); | ||
padding: var(--ds-space-1) var(--ds-space-1h); | ||
} | ||
|
||
.tablist.ulist > ul li + li { | ||
margin: 0; | ||
} | ||
|
||
.tabs .tablist li::after { | ||
height: calc(2 / var(--rem-base) * 1rem); | ||
} | ||
|
||
.tabs.is-loading .tablist li:not(:first-child), | ||
.tabs:not(.is-loading) .tablist li:not(.is-selected) { | ||
color: var(--ds-text-tertiary); | ||
background-color: transparent; | ||
} | ||
|
||
.tabs.is-loading .tablist li:first-child::after, | ||
.tabs:not(.is-loading) .tablist li.is-selected::after { | ||
background-color: var(--ds-text-primary); | ||
} | ||
|
||
/* overflow tab title */ | ||
.tabs.overflow .tablist > ul li p { | ||
max-width: var(--ds-space-15); | ||
overflow: hidden; | ||
display: -webkit-box; | ||
-webkit-box-orient: vertical; | ||
-webkit-line-clamp: 1; | ||
} | ||
|
||
/* wrapping tab title */ | ||
.tabs.wrapping .tablist > ul li p { | ||
max-width: var(--ds-space-15); | ||
display: flex; | ||
} | ||
|
||
.tabs.overflow .tablist > ul, | ||
.tabs.wrapping .tablist > ul { | ||
flex-wrap: nowrap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('@asciidoctor/tabs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css"> | ||
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css"> |