A less invasive cgit.css that works in an embedded environment?

Lukas Fleischer cgit at cryptocrack.de
Sun Aug 28 15:53:11 CEST 2011


On Sat, Aug 27, 2011 at 10:22:29AM +0800, Delan Azabani wrote:
> Lukas Fleischer wrote:
> > Why don't you just embed the whole cgit body in a container and use
> > selectors [1], [2] to make the cgit styles match elements of the cgit
> > interface only?
> >
> > [1] http://www.w3.org/TR/CSS21/selector.html#descendant-selectors
> > [2] http://www.w3.org/TR/CSS21/selector.html#child-selectors
> 
> Could you please elaborate on what you are suggesting? I'm not quite
> sure that I understand what I should do.
> 
> The way I am seeing it so far, as the only output of cgit in
> embedded mode is <div id="cgit">...</div>, so it is already in a
> container.
> 
> Should I just change all of the selectors in my copy of cgit.css to
> prepend #cgit?

Yes.




More information about the CGit mailing list