More css styles needed

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
michmis
Posts: 5
Joined: Wednesday 21 September 2016 21:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

More css styles needed

Post by michmis »

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:

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>
There are no classes in <tr> tag. Just imagine how useful it would be to give classes so it would look like this instead:

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>
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.
Attachments
zalacznik_css.PNG
zalacznik_css.PNG (45.89 KiB) Viewed 665 times
groovy
Posts: 17
Joined: Sunday 23 October 2016 11:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: More css styles needed

Post by groovy »

+1

And not only colors are hardcoded. There is, for example, the text "Last Seen" hardcoded in "style.css", which gets overwritten at every update when I manually change it to reflect my language.

BTW: Is there a simple way to change the date-format from YYYY-MM-DD to, let's say, DD.MM.YYYY?
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: More css styles needed

Post by stlaha2007 »

+1

I second that it would be based on IDs and Classes.

For example. Add an id to the Header rows [scene/switch/temp etc] and add that id to style css...

Before last update i modified the index.html and added it myself to hide the header row.

Perhaps in settings an option to enable/disable header rows?

Sent from my D6603 using Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest