= Interface Customization using site/style.css = This page intends to collect useful snippets for including in a project style.css file. Any snippet below is intended to be included inside the style.css that was referenced from the [SiteHtml site.html] file. Typically these are used to differentiate one Trac installation from another. See [TracInterfaceCustomization#SiteAppearance Trac Interface Customization] for information on enabling a site.css. == Get the "Red" Out == The theme of a the basic Trac installation is Red and Black on White. To change most of the Red (!#b00) used in Trac to some other color, in this example Blue (!#00b): {{{ #!css :link, :visited, dt em, .milestone .info h2 em, #content.build h2.config :link, #content.build h2.config :visited, .plugin h3 a { color: #00b; } }}} This will change most of the Red in Trac and in Bitten. However some additional plugins may still use Red where it would be desired to use the new theme color. == Change The Citation Colors == The above section gets all of the Red used in Trac except the color used in the first level of the citation (`>`) markup. > Example.[[br]] > More Example. However this is actually the first of a series of four colors. > First level > > Second level > > > Third level > > > > Fourth level > > > > > And levels above. To changes these colors away from the defaults of dark-red !#b44, dark-blue !#4b4, dark-green !#44b, and medium-red !#c55, in this example to dark-blue !#44b, dark-red !#b44, dark-green !#4b4, and dark-blue !#44b: {{{ #!css blockquote.citation { border-color: #44b; } .citation blockquote.citation { border-color: #b44; } .citation .citation blockquote.citation { border-color: #4b4; } .citation .citation .citation blockquote.citation { border-color: #44b; } }}} == Adding Background Color to the Main Navigation Bar == The main navigation bar (Wiki, Timeline, Roadmap, Browse Source, View Tickets, New Tickets, Search) appears in black on white. To change the background color, in this example to a pale blue: {{{ #!css #mainnav li { background-color: #eef; } }}} == Larger Fonts == To make most of the smaller fonts larger (tested only on version 0.12): {{{ #!css #search input { font-size: 13px; } .nav ul { font-size: 12px; } .threading { font-size: 90%; } .trac-nav, .trac-topnav { font-size: 90%; } .inlinebuttons input { font-size: 95%; } #ticket table.properties td,#ticket table.properties th { font-size: 100%; } }}}