Hi Sergio
very thanks for your reply.


On 20 Dic, 09:57, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Domingo, 19 de Diciembre de 2010 10:54:11 andrea escribió:
>
>
>
>
>
> > I have this issue when trying to override default table row css style
> > using documented method in API::List list_row_class helper method; i
> > have :
>
> > module AlbumsHelper
> >   def list_row_class(record)
> >     record.locked? ? 'locked' : 'record'
> >   end
> > end
>
> > .active-scaffold tr.locked {
> >   background-color: red;
> > }
>
> > All works fine, but if i order table on a specific column (inside
> > controller or via table header click) the "sorted" style for this
> > column override the "locked" style and i have thw whole row with red
> > background, except for the sorting column.
>
> You have two fixes:
> .active-scaffold tr.locked,
> .active-scaffold tr.locked td.sorted {
>   background-color: red;
>
> }
>
> Or:
>
> .active-scaffold tr.locked {
>   background-color: red !important;
>
> }
>
> > I do not have bigger  css experience but i think the documented
> > list_row_class helper method is not enough to have a complete css row
> > override.
>
> It's enough, you only have to add css selectors with higher or same priority.
>
>
>
> > Thanks for support.
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Mariana Pineda 23, 50.018 Zaragoza
> T)902 021 404F)976 52 98 07E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to