EPrints Technical Mailing List Archive

Message: #05744


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] CSS attributes modification by over-riding


Hi John and Alan,

Thank you for the answers !

Alan, the zzz_local.css entries do appear in the "auto-3.3.12.css" browser style sheet. And if I modify, for instance, the "color" attribute the same way, it does apply !

John, examining the CSS elements from the rendered web page, I didn't notice any id-based selector call...

So, still wondering what's happening with this "font-size" atribute...

Best regards,
Laurent Cloarec
Service Commun de la Documentation - Service du Numérique Documentaire
Université Toulouse 1 Capitole
France


Re: [EP-tech] CSS attributes modification by over-riding
From: John Salter <J.Salter AT leeds.ac.uk>
Date: Fri, 27 May 2016 10:24:32 +0000

Also, use a tool like Firebug to see how the rule is being applied - if there's a rule that contains an id-based selector and the class selector e.g.
#content .ep_tm_footer
that will have a higher precendence than a simple class selector.

Cheers,
John

Re: [EP-tech] CSS attributes modification by over-riding
From: "Alan.Stiles" <alan.stiles AT open.ac.uk>
Date: Fri, 27 May 2016 10:08:55 +0000

Have you checked that the modified zzz_local.css element is appearing in your ↵
auto-3.3.12.css through the browser? If you modify something else (e.g. color: red; ) does that apply?

Le 27/05/2016 11:41, Laurent Cloarec a écrit :
Hi there,

I'm trying to change some "ep_tm_footer" CSS class attributes by over-riding
them in the config file "static/style/auto/zzz_local.css" : I've written :
«
.ep_tm_footer {font-size: 100%;}
»
But it doesn't seem to work !!!

Of course, if I modify this attribute in the original "template.css" file, it
does, but it would be a very dirty work, wouldn't it ?

On another hand, other modifications of "static/style/auto/zzz_local.css" do
work...

So, where am I wrong ???

Best regards
--
Laurent Cloarec
Service Commun de la Documentation - Service du Numérique Documentaire
Université Toulouse 1 Capitole
France