https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-03-20T13:21:59ZRedmineRedmine - Feature #898: add project specific css class to body taghttps://www.redmine.org/issues/898?journal_id=19302008-03-20T13:21:59ZJos Yule
<ul></ul><p>This would be nice - i've had a couple of requests to add logo's for particular projects into the header area.</p> Redmine - Feature #898: add project specific css class to body taghttps://www.redmine.org/issues/898?journal_id=19312008-03-20T15:01:13ZRocco Stanzione
<ul><li><strong>File</strong> <a href="/attachments/356">project_css.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/356/project_css.diff">project_css.diff</a> added</li></ul><p>+1. We don't even need a database field. The attached patch works for me, just create a public/stylesheets/<project identifier>.css.</p> Redmine - Feature #898: add project specific css class to body taghttps://www.redmine.org/issues/898?journal_id=41722008-07-31T10:42:34ZBradley Whittington
<ul><li><strong>File</strong> <a href="/attachments/832">per_project_styling.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/832/per_project_styling.patch">per_project_styling.patch</a> added</li></ul><p>This has the cost of a file_exists check for every page load, which is not ideal.</p>
<p>My attached patch just adds an id to the body, which has the drawback of using a single, monolithic css file for styling, but benefits from not adding file_exists checks.</p> Redmine - Feature #898: add project specific css class to body taghttps://www.redmine.org/issues/898?journal_id=273022011-03-29T12:23:52ZToshi MARUYAMA
<ul><li><strong>Category</strong> set to <i>UI</i></li></ul> Redmine - Feature #898: add project specific css class to body taghttps://www.redmine.org/issues/898?journal_id=273032011-03-29T12:24:06ZToshi MARUYAMA
<ul><li><strong>Estimated time</strong> deleted (<del><i>0.50 h</i></del>)</li></ul> Redmine - Feature #898: add project specific css class to body taghttps://www.redmine.org/issues/898?journal_id=521392013-09-29T23:52:58ZMischa The Evil
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>This has been implemented with <a class="changeset" title="Adds a project specific css class to body (#14767)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12170">r12170</a> (<a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: More CSS classes on various fields (Closed)" href="https://www.redmine.org/issues/14767">#14767</a>).</p>
<p><code>body</code> now includes the project <em>identifier</em>, prepended with <code>project-</code>, when you are navigating a project view.<br />So for a project with an identifier <code>ecookbook</code> the CSS style would be <code>body.project-ecookbook</code>.</p> Redmine - Feature #898: add project specific css class to body taghttps://www.redmine.org/issues/898?journal_id=521422013-09-29T23:54:18ZMischa The Evil
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/14767">Patch #14767</a>: More CSS classes on various fields</i> added</li></ul>