On Friday, October 29, 2021 at 7:31:12 AM UTC-7 Joe Bird wrote:

> Hi,
> I'm trying to customize the header, in trac interface.
> I did customize a new logo, as explained in the documentation.
>
> I did modify the  *site_header.html* in the templates directory as follow
>
> <!-- *site_header.html*: Add site-specific header -->
> <link rel="stylesheet" type="text/css" 
> href="href.chrome('site/ux_header.css')}"/>
>     <div id="siteheader">
>     <mtitle>
> <strong>UUX, make your own custom distro</strong>
>     </mtitle>
>     </div>site/ux_header.css'
>
> <!-- /site_header.html -->
>
> I did also define a specific css for the header (site/*ux_header.css*) as 
> follow 
>
> mtitle strong {
> color: green;
> margin: 100px;
> }
>
> The thing is the logo is declared in the *banner div,* not in the 
> *siteheader* div. 
> (see attachement)
> In fact  they are defined at the same level so,
> my new style sheet do not apply to the logo.
>
> Hence i'm getting the following result (see attachment)
>
> Note: I also try to use site/style.css with the proper css, but it does 
> not apply
> to the header.
>
> Any idea ?
>
> Mfg
> Jacques
>

Are you using Trac 1.4 or later?

I think you want to put the custom stylesheet in site_head.html and use CSS 
selectors to apply the styles to the banner div and siteheader div.

https://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance

Ryan 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/d0298e78-0bf3-4703-a6e3-c64161070711n%40googlegroups.com.

Reply via email to