[Solved] OTRS 4.x Color of tr:hover

English! place to talk about development, programming and coding
Post Reply
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

[Solved] OTRS 4.x Color of tr:hover

Post by RStraub »

Hello forum,

after migrating to 4.x I wanted to give the OTRS frontend the colors of our CI.

I seem unable to find the correct .css for the hover effect on Data Tables. So I tried to overwrite most of the (FFF / 000 values excluded) values in Core.Table.css. Very promising were those entries

Code: Select all

.DataTable tbody tr:hover td,
.TableSmall tbody tr:hover td,
.DataTable tbody tr:active td.Clickable,
.TableSmall tbody tr:active td.Clickable {
    background: #FFFF00;
}

.DataTable tbody tr:hover td {
    border-right-color: #FFFF00;
}

.TableSmall td a.DynamicFieldLink {
    color: #FF0;
}
as they contained some kind of orange.

As reference, I try to replace this orange hover effect with some kind of blue:
table_snapshot.png
Could you please advice were I find this entry?

Many thanks and best regards,
Rolf
You do not have the required permissions to view the files attached to this post.
Last edited by RStraub on 09 Mar 2015, 10:16, edited 1 time in total.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS 4.x Color of tr:hover

Post by crythias »

https://github.com/OTRS/otrs/blob/rel-4 ... le.css#L37

Code: Select all

.DataTable tbody tr:hover td,
.TableSmall tbody tr:hover td,
.DataTable tbody tr:active td.Clickable,
.TableSmall tbody tr:active td.Clickable {
    background: #FCB24B;
}
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: OTRS 4.x Color of tr:hover

Post by RStraub »

Yup, it works when I edit the file in:
Agent/default/css/Core.Table.css

It does not apply the new color however, if I overwrite it in a CustomSkin:
Agent/customSkin/css/Core.Table.css

Other attributes can be overwritten, this is probably why I thought I couldn't find the right attribute. Do you have any idea why this particular color can't be changed in our custom skin ?

Many thanks and best regards,
Rolf
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: OTRS 4.x Color of tr:hover

Post by RStraub »

Oh boy. I had wrongly formatted comments in my css file which broke it.

Thank you Crythias :)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Andrian
Znuny newbie
Posts: 3
Joined: 16 Mar 2016, 10:53
Znuny Version: OTRS 4

Re: [Solved] OTRS 4.x Color of tr:hover

Post by Andrian »

Hallo, could you show me the screenshot of the result please.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: [Solved] OTRS 4.x Color of tr:hover

Post by RStraub »

Sure:
dashboard_css.png
You do not have the required permissions to view the files attached to this post.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Post Reply