This commit is contained in:
Torsten 2025-11-02 16:26:57 +01:00
parent c0021b5240
commit c1c5541ccd
24 changed files with 5977 additions and 692 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,11 +1,11 @@
{
"id": "calc-craft",
"name": "CalcCraft",
"version": "1.1.2",
"minAppVersion": "0.15.0",
"description": "have formulas like in excel a1+a2, or sum()",
"author": "klaudyu",
"authorUrl": "https://www.instagram.com/klaudyul/",
"fundingUrl": "https://buymeacoffee.com/klaudyul",
"isDesktopOnly": false
}
{
"id": "calc-craft",
"name": "CalcCraft",
"version": "2.2.7",
"minAppVersion": "0.15.0",
"description": "have formulas like in excel a1+a2, or sum()",
"author": "klaudyu",
"authorUrl": "https://www.instagram.com/klaudyul/",
"fundingUrl": "https://buymeacoffee.com/klaudyul",
"isDesktopOnly": false
}

View file

@ -7,11 +7,6 @@ th::before {
transform: translate(0px, -12px);
}
td {
height:1.5em;
}
/* For row headers for td */
tr td:first-child::before {
content: attr(data-row-label);
@ -116,20 +111,73 @@ td.label-cell.row {
/*active class*/
.markdown-rendered td.cell-active{
#border-radius: 50%;
text-decoration: underline;
}
th, td {
#position: relative;
/* Hide original text when showing computed value */
.cm-table-widget .table-cell-wrapper.calc-overlay-cell:not(:focus-within) {
position: relative;
color: transparent;
}
table, th, td {
#overflow: visible!important;
}
/*
table{
margin:10px;
}*/
/* 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;
}
/* 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);
}
.theme-dark .cm-table-widget .formula-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_color_dark);
}
/* Matrix cell overlays */
.cm-table-widget .matrix-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_matrix_light);
}
.theme-dark .cm-table-widget .matrix-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_matrix_dark);
}
/* Error cell overlays */
.cm-table-widget .error-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_error_light);
}
.theme-dark .cm-table-widget .error-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_error_dark);
}
/* Parent highlight overlays */
.cm-table-widget .cell-parents-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_parents_light);
}
.theme-dark .cm-table-widget .cell-parents-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_parents_dark);
}
/* Children highlight overlays */
.cm-table-widget .cell-children-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_children_light);
}
.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);
}