Opened 3 years ago

Last modified 3 years ago

#13930 closed enhancement

CSS style class — at Version 1

Reported by: clemens Owned by: Álvaro Iradier
Priority: normal Component: SearchAllPlugin
Severity: normal Keywords: patch
Cc: Trac Release:

Description (last modified by clemens)

The purpose of the SearchAllPlugin is to provide search results for external Trac projects additionally to local ones. In order to be able to distinguish external vs. local search results I am proposing a CSS class for the all search results yielded by SearchAllPlugin.

Here is my proposed patch: attachment:searchall.py.diff.
It will create a <span> with a dedicated CSS class around the name of the external project.

  • Original
    original screenshot
  • Patch (with frame around project)
    screenshot after patch - Note that the style is just an example. What we need is the CSS class.

The CSS could be integrated in the plugin itself. This way the new visual markup would be available out of the box. (However, I do not know how to do this). Another option is to put the CSS in a local customized style.css. In any case we will need the new CSS class.

The actual CSS style is a matter of taste. Here is just an example which put a frame around the external projects.

#content.search #results .searchall_project
{
 border: 1pt solid;
 padding: 0 .2em 0 .2em;
}

The primary intention of this ticket is to have the CSS class in the HTML which is generated by the plugin. The particular style is secondary.

Change History (4)

Changed 3 years ago by clemens

Attachment: searchall.py.diff added

patch file adding a CSS class

Changed 3 years ago by clemens

original screenshot

Changed 3 years ago by clemens

screenshot after patch - Note that the style is just an example. What we need is the CSS class.

comment:1 Changed 3 years ago by clemens

Description: modified (diff)
Note: See TracTickets for help on using tickets.