Upgrading wrecked list colors; no tiger striping

3 views
Skip to first unread message

Jim Gagne

unread,
Mar 23, 2010, 2:42:25 PM3/23/10
to ActiveScaffold : Ruby on Rails plugin
I've been an EXTREMELY happy user of Active Scaffold. It's worked
great for three years. I have to move to a new ISP and in the process
upgrade Rails 1.2.3 -> 2.3.5. That's gone well. One remaining bug: the
default AS tiger striping (alternate rows different colors)
disappeared, and now everything is the same color as the overall CSS.
Blecch. Suggestions?

Jim Gagne

unread,
Mar 23, 2010, 2:43:57 PM3/23/10
to ActiveScaffold : Ruby on Rails plugin
Forgot to mention: I upgraded to the latest AS too.
Message has been deleted

Jim Gagne

unread,
Mar 23, 2010, 10:46:53 PM3/23/10
to ActiveScaffold : Ruby on Rails plugin
On Mar 23, 11:42 am, Jim Gagne <goo...@jamesgagne.com> wrote:
> The default AS tiger striping (alternate rows different colors)

> disappeared, and now everything is the same color as the overall CSS.

I FOUND THE ERROR!!

The stylesheet.css file omits the background-color attribute in two
places:

1. .active-scaffold tr.record td should include:
background-color: #E6F2FF;

2. .active-scaffold tr.even-record td should include:
background-color: #FFFFFF;

These attributes WERE present in the earlier version of AS I was
using, and they overrode the default, darker shading I had set for
"td" elsewhere on the site.

Sergio Cambra .:: entreCables S.L. ::.

unread,
Mar 24, 2010, 4:38:55 AM3/24/10
to actives...@googlegroups.com

It was changed, I can't remember why, to .active-scaffold tr.record which works
too.

--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com

Jim Gagne

unread,
Mar 24, 2010, 11:11:55 PM3/24/10
to ActiveScaffold : Ruby on Rails plugin
>
> It was changed, I can't remember why, to .active-scaffold tr.record which works
> too.
>
> --
> Sergio Cambra .:: entreCables S.L. ::.

You're right I saw that, but the setting a new tr color does NOT
override a global td color set elsewhere on the site.

Ed W

unread,
Mar 25, 2010, 7:23:53 AM3/25/10
to actives...@googlegroups.com

Without trying, I can't immediately see why this should be? The rules
of specificity would appear to favour the above rule over a simple
td { background-color: #something}

Can you show your override CSS?

Also play with firebug to help show the priority of the various rules

Good luck

Ed W

Jim Gagne

unread,
Mar 28, 2010, 4:46:37 PM3/28/10
to ActiveScaffold : Ruby on Rails plugin

Ed,
THANKS for your thoughts. My original CSS says simply:

td { font-size: 90%; margin-top: 16px; margin-right: 3px; color:
#404080; << etc. >> }

The original CSS appears BEFORE the AS "stylesheet.css" file. It
doesn't override it, but it doesn't need to. Setting a color for tr
will NOT affect a td style, unless there's NO previously declared td
style.

Sergio Cambra .:: entreCables S.L. ::.

unread,
Mar 29, 2010, 5:12:12 AM3/29/10
to actives...@googlegroups.com

Then you can add .active-scaffold td { background: inherit }

--
Sergio Cambra .:: entreCables S.L. ::.

Reply all
Reply to author
Forward
0 new messages