Skip to content

Instantly share code, notes, and snippets.

@StirlingBaker
Last active November 28, 2020 23:10
Show Gist options
  • Save StirlingBaker/ff2e73c206aad63dff8aa2b2e600e235 to your computer and use it in GitHub Desktop.
Save StirlingBaker/ff2e73c206aad63dff8aa2b2e600e235 to your computer and use it in GitHub Desktop.
Modification to CatoMinor's Tablehypothesis CSS
/* Catominor's Table Hypothesis Code
https://roamresearch.com/#/app/CatoMinor-public/page/X5TmrNBGz
*/
/*To hide the tablequote tag, simply use the following code.
[data-tag="quote"] {
}
*/
/*hides the scrollbar */
[data-tag="quote"] + div .roam-table {
overflow-x: hidden;
}
/*full widht of the table*/
[data-tag="quote"] + div table {
width: 100%;
border-collapse: separate;
border: none;
padding: 0px;
margin: 0px;
}
/*Removes all borders */
[data-tag="quote"] + div table tr,
[data-tag="quote"] + div table tr td {
border: none;
font-size: 1.05em;
}
/*Adds a border for the whole row */
[data-tag="quote"] + div table tr {
padding: 0px;
width: 100%;
}
[data-tag="quote"] + div table tr:nth-child(2) td {
border-left: 5px solid orange;
font-style: italic;
}
/* Reduce the bottom padding of the citation line */
[data-tag="quote"] + div table tr:nth-child(3) td {
padding-bottom: 0px;
margin-bottom: 0px;
}
/* changes the font within rows */
[data-tag="quote"] + div table tr td span {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment