Trivial Feature: using html hover as a visual enhancement

Request and discuss new features you would like to have.
Post Reply
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Trivial Feature: using html hover as a visual enhancement

Post by pdwalker »

In the current 3.0.2.1, I've added the following into /var/www/html/mailscanner/style.css starting at line 313:

Code: Select all

table.mail tr:hover td {
        background: white;
        color: blue !important;
}
table.mail tr.whitelisted:hover td { background: #CCEECC; }
table.mail tr.spam:hover td { background: #F5DDDD; }
table.mail tr.highspam:hover td { background: #FFAAAA; }
table.mail tr.blacklisted:hover td { background: #888888; }
table.mail tr.infected:hover td { background: #ff8888; }
It just provides a little nice visual feedback to guide the eye when you are looking at long rows of text in the mail list interface.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Trivial Feature: using html hover as a visual enhancement

Post by shawniverson »

I think I will, if you don't mind, submit a PR to MailWatch with their color scheme and see if they include it.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Trivial Feature: using html hover as a visual enhancement

Post by pdwalker »

by all means!

There are a few other attributes to include that I've not included due to laziness. They are all around line 313 or above in style.css.

It's a nice simple change that shouldn't cause any problems.

I've also done it to rep_total_mail_by_date.php, but that requires a few more changes.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Trivial Feature: using html hover as a visual enhancement

Post by pdwalker »

FYI: I'd previously opened a feature request for this at https://github.com/mailwatch/MailWatch/issues/765
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Trivial Feature: using html hover as a visual enhancement

Post by pdwalker »

can someone delete this idiot spammer?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Trivial Feature: using html hover as a visual enhancement

Post by shawniverson »

done
Aliyaa
Posts: 2
Joined: 21 Jun 2023 14:31

Re: Trivial Feature: using html hover as a visual enhancement

Post by Aliyaa »

pdwalker wrote: 02 May 2017 02:55 by all means!

There are a few other attributes to include that I've not included due to laziness. They are all around line 313 or above in style.css.

It's a nice simple change that shouldn't cause any problems.

I've also done it to rep_total_mail_by_date.php, but that requires a few more changes.
Hello guys

It's important to thoroughly review and test any changes made to code, especially when modifying multiple files. Laziness might lead to oversight or unexpected issues.free fire name
Last edited by Aliyaa on 26 Jun 2023 18:47, edited 1 time in total.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Trivial Feature: using html hover as a visual enhancement

Post by pdwalker »

I'm assuming you're not a spammer testing your ability to add new posts, but replying to a 6 year old thread to "tell grandma how to suck eggs" on a feature that was already implemented 6 years ago probably isn't the best way to start your journey in these forums.
Post Reply