- Notifications
You must be signed in to change notification settings - Fork15
DOC: add a matrix style#502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
104 changes: 104 additions & 0 deletionsdocs/_static/matrix.css
This file contains hidden or 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,104 @@ | ||
| /* Based on the stylesheet used by matrepr (https://github.com/alugowski/matrepr) and modified for sphinx */ | ||
| table.matrix { | ||
| border-collapse: collapse; | ||
| border: 0px; | ||
| } | ||
| /* Disable a horizintal line from the default stylesheet */ | ||
| .table.matrix > :not(caption) > * > * { | ||
| border-bottom-width: 0px; | ||
| } | ||
| /* row indices */ | ||
| table.matrix > tbody tr th { | ||
| font-size: smaller; | ||
| font-weight: bolder; | ||
| vertical-align: middle; | ||
| text-align: right; | ||
| } | ||
| /* row indices are often made bold in the source data; here make them match the boldness of the th column label style*/ | ||
| table.matrix strong { | ||
| font-weight: bold; | ||
| } | ||
| /* column indices */ | ||
| table.matrix > thead tr th { | ||
| font-size: smaller; | ||
| font-weight: bolder; | ||
| vertical-align: middle; | ||
| text-align: center; | ||
| } | ||
| /* cells */ | ||
| table.matrix > tbody tr td { | ||
| vertical-align: middle; | ||
| text-align: center; | ||
| position: relative; | ||
| } | ||
| /* left border */ | ||
| table.matrix > tbody tr td:first-of-type { | ||
| border-left: solid 2px var(--pst-color-text-base); | ||
| } | ||
| /* right border */ | ||
| table.matrix > tbody tr td:last-of-type { | ||
| border-right: solid 2px var(--pst-color-text-base); | ||
| } | ||
| /* prevents empty cells from collapsing, especially empty rows */ | ||
| table.matrix > tbody tr td:empty::before { | ||
| /* basicaly fills empty cells with */ | ||
| content: "\00a0\00a0\00a0"; | ||
| visibility: hidden; | ||
| } | ||
| table.matrix > tbody tr td:empty::after { | ||
| content: "\00a0\00a0\00a0"; | ||
| visibility: hidden; | ||
| } | ||
| /* matrix bracket ticks */ | ||
| table.matrix > tbody > tr:first-child > td:first-of-type::before { | ||
| content: ""; | ||
| width: 4px; | ||
| position: absolute; | ||
| top: 0; | ||
| bottom: 0; | ||
| visibility: visible; | ||
| left: 0; | ||
| right: auto; | ||
| border-top: solid 2px var(--pst-color-text-base); | ||
| } | ||
| table.matrix > tbody > tr:last-child > td:first-of-type::before { | ||
| content: ""; | ||
| width: 4px; | ||
| position: absolute; | ||
| top: 0; | ||
| bottom: 0; | ||
| visibility: visible; | ||
| left: 0; | ||
| right: auto; | ||
| border-bottom: solid 2px var(--pst-color-text-base); | ||
| } | ||
| table.matrix > tbody > tr:first-child > td:last-of-type::after { | ||
| content: ""; | ||
| width: 4px; | ||
| position: absolute; | ||
| top: 0; | ||
| bottom: 0; | ||
| visibility: visible; | ||
| left: auto; | ||
| right: 0; | ||
| border-top: solid 2px var(--pst-color-text-base); | ||
| } | ||
| table.matrix > tbody > tr:last-child > td:last-of-type::after { | ||
| content: ""; | ||
| width: 4px; | ||
| position: absolute; | ||
| top: 0; | ||
| bottom: 0; | ||
| visibility: visible; | ||
| left: auto; | ||
| right: 0; | ||
| border-bottom: solid 2px var(--pst-color-text-base); | ||
| } |
2 changes: 1 addition & 1 deletiondocs/conf.py
This file contains hidden or 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
1 change: 1 addition & 0 deletionsdocs/user_guide/io.rst
This file contains hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.