Opened 8 years ago

Closed 8 years ago

#2502 closed defect (implemented)

Current CSS rules break code and tt elements

Reported by: rransom Owned by: phobos
Priority: Medium Milestone:
Component: Webpages/Website Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

css/reset.css sets multiple font style attributes, including font-family, of many elements (including code and tt) to inherit, which causes them to inherit the value of that style attribute on their containing elements. css/typography.css then undoes the damage for some elements (e.g. em, strong) by setting their font attributes appropriately, but does not fix the code and tt elements.

Placing the following CSS rule in css/typography.css would make code and tt elements useful again:

code, tt {
    font-family: Inconsolata, "Lucida Console", "Droid Sans Mono", Cousine, Courier, monospace;
}

Child Tickets

Change History (4)

comment:1 Changed 8 years ago by rransom

On second thought, we probably don't want Courier in the list. Anything would be better than that.

comment:2 Changed 8 years ago by rransom

reset.css also clobbers the pre element's font style attributes.

comment:3 Changed 8 years ago by phobos

Status: newaccepted

Implemented your suggestions, svn r24233.

comment:4 Changed 8 years ago by phobos

Resolution: implemented
Status: acceptedclosed
Note: See TracTickets for help on using tickets.