Opened 12 years ago
Closed 7 years ago
#10648 closed enhancement (fixed)
Configurable Phrases types
Reported by: | lucid | Owned by: | Ryan J Ollos |
---|---|---|---|
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 transparentfixme_phrases
: white on redtodo_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)
Change History (7)
comment:1 Changed 10 years ago by
Status: | new → accepted |
---|
Changed 10 years ago by
Attachment: | T10648-wikiextras-custom-phrases.patch added |
---|
comment:2 Changed 10 years ago by
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; }
comment:3 Changed 7 years ago by
Was going to post a more restricted enhancement request for warn_phrases
, most likely some yellow color on transparent. "Some yellow color" because it should be a color you can see on a white background.
However, decided not to post ticket because this enhancement covers the function, and it is even more appealing than one more phrase type. Still, warn_phrases
might be an interesting intermediate enhancement.
comment:4 Changed 7 years ago by
Owner: | changed from Mikael Relbe to Ryan J Ollos |
---|
Agree, that would be cool :-)