-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
236 lines (193 loc) · 7.33 KB
/
Copy pathstyles.css
File metadata and controls
236 lines (193 loc) · 7.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/* For column headers */
th::before {
content: attr(data-col-label);
position: absolute;
font-size: smaller;
color: gray;
transform: translate(0px, -12px);
}
/* For row headers for td */
tr td:first-child::before {
content: attr(data-row-label);
position: absolute;
font-size: smaller;
color: gray;
#background-color:white;
transform: translate(-16px, 0px);
}
/**********formula cell************/
/*light theme*/
.markdown-rendered .formula-cell-borderenabled {
#border:var(--CalcCraft-formula-borders);
border:2px double;
}
.markdown-rendered .formula-cell-colorenabled {
background-color: var(--CalcCraft_formula_background_color_light)!important ; /* Light gray background */
color:var(--CalcCraft_formula_font_color_light)!important;
#border:2px double;
#border:var(--CalcCraft-formula-borders);
#font-style: italic; /* Italic text */
}
/*dark theme*/
.theme-dark .markdown-rendered .formula-cell-colorenabled{
background-color: var(--CalcCraft_formula_background_color_dark)!important;
color:var(--CalcCraft_formula_font_color_dark)!important;
}
/**********matrix cell************/
.markdown-rendered .matrix-cell-colorenabled {
background-color: var(--CalcCraft_formula_background_matrix_light)!important ; /* Light gray background */
color:var(--CalcCraft_formula_font_matrix_light)!important;
#border:2px double;
#font-style: italic; /* Italic text */
}
.theme-dark .markdown-rendered .matrix-cell-colorenabled {
background-color: var(--CalcCraft_formula_background_matrix_dark)!important ; /* Light gray background */
color:var(--CalcCraft_formula_font_matrix_dark)!important;
}
td.label-cell.column {
border: none;
color: gray;
font-size: 80%;
text-align: center;
vertical-align: bottom;
padding:.1em;
}
td.label-cell.row {
border: none !important;
color: gray;
font-size: 80%;
text-align: right;
vertical-align: middle;
padding:.2em;
}
/**************** error cells**************/
.markdown-rendered .error-cell-colorenabled{
background-color: var(--CalcCraft_formula_background_error_light)!important ;
color:var(--CalcCraft_formula_font_error_light)!important
}
.theme-dark .markdown-rendered .error-cell-colorenabled{
background-color: var(--CalcCraft_formula_background_error_dark)!important ;
color:var(--CalcCraft_formula_font_error_dark)!important;
}
/*********** parents cells***************/
.markdown-rendered .cell-parents-highlight {
background-color: var(--CalcCraft_formula_background_parents_light)!important;
color:var(--CalcCraft_formula_font_parents_light)!important;
}
.theme-dark .markdown-rendered .formula-cell.error-cell.cell-parents-highlight,
.theme-dark .markdown-rendered .cell-parents-highlight {
background-color: var(--CalcCraft_formula_background_parents_dark)!important;
color:var(--CalcCraft_formula_font_parents_dark)!important;
}
/* children cells*/
/* light theme*/
.markdown-rendered .formula-cell.error-cell.cell-children-highlight,
.markdown-rendered .cell-children-highlight {
background-color: var(--CalcCraft_formula_background_children_light)!important;
color:var(--CalcCraft_formula_font_children_light)!important;
}
.theme-dark .markdown-rendered .formula-cell.error-cell.cell-children-highlight,
.theme-dark .markdown-rendered .cell-children-highlight {
background-color: var(--CalcCraft_formula_background_children_dark)!important;
color:var(--CalcCraft_formula_font_children_dark)!important;
}
/*active class*/
.markdown-rendered td.cell-active{
text-decoration: underline;
}
/* Hide original text when showing computed value */
.cm-table-widget .table-cell-wrapper.calc-overlay-cell:not(:focus-within) {
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: 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);
}
.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);
}
/* 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 */
}