.my-table td:nth-child(4) {
background-color:#ff944d;font-weight:bold;
}
You could wrap the contents of a cell in
@@.class contents@@ define class in a stylesheet tiddler.
Personaly I use html tables with a list widget to generate rows, and within that a list to generate columns/cells. Then this allows me to change styles with some logic where I need it.
I hope this leads to a solution.
Tony
\define formulaFixed() 2
\define ss_cols() A B C D E F G H I J
\define ss_rows() 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
\define ss_cell() $(c)$$(r)$
<$tiddler tiddler="Spreadsheet/Data My table">
<table class="my-table">
<$vars popupState=<<qualify "$:/temp/spreadsheet/pop">> popupCell=<<qualify "$:/temp/spreadsheet/popcell">> >
<$reveal type="popup" state=<<popupState>> >
<div class="tc-drop-down tc-popup-keep">
<$set name="cell" filter="[title<popupCell>get[text]]">
''<<cell>>'': <$edit-text tag=input index=<<cell>> size=150 />
<$button class="tc-btn-invisible">{{$:/core/images/save-button}}<$action-setfield $tiddler=<<popupState>> text=""/></$button>
</$set>
</div>
</$reveal>
<table>
<tr><th></th><$list variable=c filter=<<ss_cols>> ><th><<c>></th></$list></tr>
<$list variable=r filter=<<ss_rows>> >
<tr>
<th style="padding:0;"><<r>></th>
<$list variable=c filter=<<ss_cols>> ><td style="padding:0;">
<$button popup=<<popupState>> style="width:100%;margin:0;padding:6px;display:block;background:none;border:none;cursor:pointer;"><$action-setfield $tiddler=<<popupCell>> text=<<ss_cell>>/> <$formula formula=<<ss_cell>>/>
</$button>
</td>
</$list>
</tr>
</$list>
</table>
</$vars>
<!-- <table>
<tr><th></th><$list variable=c filter=<<ss_cols>> ><th><<c>></th></$list></tr>
<$list variable=r filter=<<ss_rows>> >
<tr><th><<r>></th><$list variable=c filter=<<ss_cols>> ><td><$edit-text tag=input index=<<ss_cell>> size=10/></td></$list></tr>
</$list>
</table> -->
</table></$tiddler>
.my-table th:nth-child(11),
.rezepterechner-table td:nth-child(1) {
background-color:white;font-size:0.5em;
}
.my-table td:nth-child(3) {
background-color:#ffa366;
}
.my-table tr:nth-child(1) {
font-weight:bold;
}