...
This commit is contained in:
parent
08eb83a0a5
commit
34d27386d5
19 changed files with 9136 additions and 10496 deletions
19265
MyObsidianVault/.obsidian/plugins/calc-craft/main.js
vendored
19265
MyObsidianVault/.obsidian/plugins/calc-craft/main.js
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "calc-craft",
|
||||
"name": "CalcCraft",
|
||||
"version": "2.2.7",
|
||||
"version": "2.3.7",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "have formulas like in excel a1+a2, or sum()",
|
||||
"author": "klaudyu",
|
||||
|
|
|
|||
|
|
@ -119,24 +119,26 @@ td.label-cell.row {
|
|||
|
||||
/* Hide original text when showing computed value */
|
||||
.cm-table-widget .table-cell-wrapper.calc-overlay-cell:not(:focus-within) {
|
||||
position: relative;
|
||||
color: transparent;
|
||||
position: relative;
|
||||
font-size: 0; /* Collapse the text so it doesn't affect layout */
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
|
||||
/* Base overlay - inherits color from parent cell */
|
||||
.cm-table-widget .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
|
||||
content: attr(data-calc-display);
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: pre;
|
||||
color: inherit; /* ← Changed from var(--text-normal) to inherit */
|
||||
pointer-events: none;
|
||||
padding: 0 4px;
|
||||
content: attr(data-calc-display);
|
||||
position: relative; /* Changed from absolute */
|
||||
display: inline-block; /* Changed to allow sizing */
|
||||
white-space: pre;
|
||||
color: inherit;
|
||||
font-size: 1rem; /* Restore normal font size */
|
||||
line-height: normal; /* Restore normal line height */
|
||||
padding: 0 4px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
/* Formula cell overlays - inherit formula colors */
|
||||
.cm-table-widget .formula-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
|
||||
color: var(--CalcCraft_formula_font_color_light);
|
||||
|
|
@ -180,4 +182,55 @@ td.label-cell.row {
|
|||
|
||||
.theme-dark .cm-table-widget .cell-children-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
|
||||
color: var(--CalcCraft_formula_font_children_dark);
|
||||
}
|
||||
}
|
||||
|
||||
/* Make table cells position relative for absolute positioning of labels */
|
||||
table th,
|
||||
table td {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Add padding to table to make room for labels */
|
||||
table {
|
||||
margin-left: 25px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/* Column labels - display above th/td elements */
|
||||
th[data-col-letter]::before,
|
||||
td[data-col-letter]::before {
|
||||
content: attr(data-col-letter);
|
||||
position: absolute;
|
||||
top: -18px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 0.75em;
|
||||
color: var(--text-muted);
|
||||
font-weight: normal;
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Row labels - display to the left of first cell in each row */
|
||||
tr th:first-child[data-row-number]::after,
|
||||
tr td:first-child[data-row-number]::after {
|
||||
content: attr(data-row-number);
|
||||
position: absolute;
|
||||
left: -25px;
|
||||
top: 50%;
|
||||
#transform: translateY(-50%);
|
||||
font-size: 0.75em;
|
||||
color: var(--text-muted);
|
||||
font-weight: normal;
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Escaped text cells - look like normal text, not formulas */
|
||||
.cm-table-widget .escaped-text-cell .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
|
||||
color: var(--text-normal); /* Normal text color, not formula color */
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue