Initial setup: official notes and obsidian settings
This commit is contained in:
87
.obsidian/snippets/pdf-table-style.css
vendored
Normal file
87
.obsidian/snippets/pdf-table-style.css
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
/* PDF / full-width version for sheet tables */
|
||||
|
||||
.block-language-sheet {
|
||||
overflow: visible !important;
|
||||
max-width: 100%;
|
||||
max-height: none;
|
||||
display: block;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* force table inside text width */
|
||||
.block-language-sheet table {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
/* compact typography for all cells */
|
||||
.block-language-sheet td,
|
||||
.block-language-sheet th {
|
||||
font-size: 0.78em;
|
||||
line-height: 1.15;
|
||||
padding: 3px 6px;
|
||||
white-space: normal;
|
||||
overflow: hidden;
|
||||
text-overflow: clip;
|
||||
overflow-wrap: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
/* original top header look, without sticky */
|
||||
.block-language-sheet th {
|
||||
position: static !important;
|
||||
top: auto !important;
|
||||
z-index: auto !important;
|
||||
background-color: var(--background-secondary) !important;
|
||||
box-shadow: 0 1px 0 var(--background-modifier-border);
|
||||
font-size: 0.78em; /* same as normal cells */
|
||||
font-weight: bold;
|
||||
color: var(--text-accent);
|
||||
}
|
||||
|
||||
/* original italic-based left header look, without sticky */
|
||||
.block-language-sheet td:has(em),
|
||||
.block-language-sheet td:has(i),
|
||||
.block-language-sheet th:has(em),
|
||||
.block-language-sheet th:has(i) {
|
||||
position: static !important;
|
||||
left: auto !important;
|
||||
z-index: auto !important;
|
||||
background-color: var(--background-secondary) !important;
|
||||
box-shadow: 1px 0 0 var(--background-modifier-border) !important;
|
||||
}
|
||||
|
||||
/* corner cell fix, same look */
|
||||
.block-language-sheet th:has(em),
|
||||
.block-language-sheet th:has(i) {
|
||||
z-index: auto !important;
|
||||
box-shadow: 1px 1px 0 var(--background-modifier-border) !important;
|
||||
}
|
||||
|
||||
/* styling for em/i text inside headers */
|
||||
.block-language-sheet td em,
|
||||
.block-language-sheet th em,
|
||||
.block-language-sheet td i,
|
||||
.block-language-sheet th i {
|
||||
font-style: normal !important;
|
||||
font-size: 100%;
|
||||
font-weight: bold;
|
||||
color: var(--text-accent);
|
||||
}
|
||||
|
||||
/* footer row */
|
||||
.block-language-sheet tbody tr:last-child td {
|
||||
background-color: var(--background-secondary);
|
||||
box-shadow: inset 0 1px 0 var(--background-modifier-border);
|
||||
}
|
||||
|
||||
/* table name cell */
|
||||
.block-language-sheet tbody tr:last-child td:first-child {
|
||||
background-color: var(--background-secondary);
|
||||
font-weight: bold;
|
||||
color: var(--text-accent);
|
||||
}
|
||||
Reference in New Issue
Block a user