Author Topic: Alternating Line Colors for In-box  (Read 8540 times)

Offline ross.larson

  • Jr. Member
  • **
  • Posts: 22
Alternating Line Colors for In-box
« on: November 13, 2012, 07:29:41 PM »
Does anyone know how to make alternating colors on in-box with the new "larry" skin? With old default skin it could be done by editing the following lines in the common.css:

/*Alt Lines*/ odd

#messagelist tr.message
{
  background-color: #E6E6F2;
}


#messagelist tr.odd
{
  background-color: #F9F9F9;
}

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Alternating Line Colors for In-box
« Reply #1 on: November 13, 2012, 09:02:44 PM »
If your using a good browser you can do the following:
Code: [Select]
#messagelist tr:nth-child(even) td {
  background-color: #F9F9F9;
}

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Alternating Line Colors for In-box
« Reply #2 on: November 13, 2012, 10:39:37 PM »
If your using a good browser you can do the following:
Code: [Select]
#messagelist tr:nth-child(even) td {
  background-color: #F9F9F9;
}
That works in normal view, but the result is odd in threaded view.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Alternating Line Colors for In-box
« Reply #3 on: November 14, 2012, 03:30:36 AM »
I don't uses threads so I didn't tested that, if you add the following it should work for threads as well:
Code: [Select]
#messagelistcontainer #messagelist tr:nth-child(even).thread.expanded td {
  background-color: #E2E2E2;
}
« Last Edit: January 31, 2013, 06:16:25 AM by SKaero »

Offline husky83

  • Jr. Member
  • **
  • Posts: 19
Re: Alternating Line Colors for In-box
« Reply #4 on: January 31, 2013, 04:46:01 AM »
Where should i put this? common.css is not existent in skins/larry.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Alternating Line Colors for In-box
« Reply #5 on: January 31, 2013, 06:16:10 AM »
styles.css should also work.