More css styles needed
Posted: Saturday 01 October 2016 11:31
Hi,
Im currently designing new css theme for domoticz and I find one thing really hard to work with- there are too many things hardcoded. I attached screenshot so I'd like to explain. There is yellow color hardcoded for td element with id name so now css looks like this:
There are no classes in <tr> tag. Just imagine how useful it would be to give classes so it would look like this instead:
with that classes css designers could style every item better way, with no colors hardcoded and also, if there are classes in <tr> element it is easy to style anything inside this specific element.
Im currently designing new css theme for domoticz and I find one thing really hard to work with- there are too many things hardcoded. I attached screenshot so I'd like to explain. There is yellow color hardcoded for td element with id name so now css looks like this:
Code: Select all
<table id="itemtablesmall" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td id="name" style="background-color: #DDDF2D;">Pollin</td>
<td id="bigtext">0.0 mm</td>
<td id="img">
<td id="status">0.0 mm</td>
<td id="lastupdate">2016-09-28 17:38:49</td>
</tr>
Code: Select all
<table id="itemtablesmall" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr class="weather, norain, connectionlost">
<td id="name">Pollin</td>
<td id="bigtext" class="rain">0.0 mm</td>
<td id="img">
<td id="status">0.0 mm</td>
<td id="lastupdate">2016-09-28 17:38:49</td>
</tr>