#10592 closed defect (fixed)
Change default style for `inline code` to have gray background
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 1.0 |
Component: | wiki system | Version: | 0.12.3 |
Severity: | normal | Keywords: | css |
Cc: | ryano@… | Branch: | |
Release Notes: |
default style for |
||
API Changes: | |||
Internal Changes: |
Description
It is very hard
to search for inline
code in
Trac wiki. It would be extremely handy if default style for inline code snippets
was rendered on the same gray background as code
blocks by default. Much like stackoverflow
and github
do.
Attachments (0)
Change History (14)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Version: | → 0.12.3 |
---|
comment:4 by , 13 years ago
tt { background-color: #F7F7F7; }
, but it would be much more nicer if Trac wrapped wiki-formatted content into appropriate style blocks, so that the style could be written as
.wiki .code { background-color: #F7F7F7; font-family: monospace; }
and the generated markup will be something like
<div class="wiki"> Some <span class="code">nice stuff</span> to play with. </div>
comment:5 by , 13 years ago
Well, XHTML has already a wide range of semantic markup that we could use:
code | samp | kbd | var
… or just keep tt
as really it's just appropriate to group all the possible meaning associated to the use of a monospace/teletype font (besides the ones from XHTML: paths, error messages, hostnames, user names, etc.)
I'd propose something like:
tt { color: #600; border: 1px solid #CBA; padding: 0 0.3em; background: #F7F7F7; }
Here's how this would look like on the common standard backgrounds:
comment:7 by , 13 years ago
I was going to write that I find the inline code spans in StackOverflow very ugly, but your variant with the border actually looks pretty nice. So +1 from my side.
comment:9 by , 13 years ago
Owner: | set to |
---|
comment:11 by , 12 years ago
Cc: | added |
---|
comment:14 by , 12 years ago
Release Notes: | modified (diff) |
---|
For an exercise count the amount of inline code blocks in the ticket description. ;)