Modify

Opened 2 years ago

Last modified 13 days ago

#10648 accepted enhancement

Configurable Phrases types

Reported by: lucid Owned by: mrelbe
Priority: normal Component: WikiExtrasPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

If I understand correctly, currently you can only have three kinds of phrases:

  • done_phrases: green on transparent
  • fixme_phrases: white on red
  • todo_phrases: white on black

It would be cool if you could configure your own phrase types, e.g.: nice_phrases = NICE, COOL and then you could add to your site.css:

span.wikiextras.phrase.nice { background-color: #8080d0; }

Attachments (1)

T10648-wikiextras-custom-phrases.patch (2.1 KB) - added by lucid 13 days ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 2 weeks ago by mrelbe

  • Status changed from new to accepted

Agree, that would be cool :-)

Changed 13 days ago by lucid

comment:2 Changed 13 days ago by lucid

Some more ideas for custom CSS:

span.wikiextras.phrase.nice {
  background:#D7EFBF url(../wikiextras-icons-16/tick.png) 6px 4px no-repeat;
  border-radius:1em 0em 0em 1em;
  border-right:3px solid #ccc;
  border-color:#5ba622;
  color:#333;
  text-shadow:1px 1px 0 #fff;
  padding:4px 13px 4px 43px;
  margin:0px 10px;
  font-size:13px;
}

span.wikiextras.phrase.attention {
  background:#f8dfd8 url(../wikiextras-icons-16/exclamation-red.png) 6px 4px no-repeat;
  border-radius:1em 0em 0em 1em;
  border-right:3px solid #ccc;
  border-color:#d85027;
  color:#333;
  text-shadow:1px 1px 0 #fff;
  padding:4px 13px 4px 43px;
  margin:0px 10px;
  font-size:13px;
}

span.wikiextras.phrase.new {
  background:#F9F2AF url(../wikiextras-icons-16/star.png) 6px 4px no-repeat;
  border-radius:1em 0em 0em 1em;
  border-right:3px solid #ccc;
  border-color:#C1C700;
  color:#333;
  text-shadow:1px 1px 0 #fff;
  padding:4px 13px 4px 43px;
  margin:0px 10px;
  font-size:13px;
}

Add Comment

Modify Ticket

Action
as accepted The owner will remain mrelbe.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.