Open Bug 354804 Opened 18 years ago Updated 8 years ago

remove unnecessary code from help.css

Categories

(SeaMonkey :: Help Viewer, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: ogirtd, Assigned: jwalden+fxhelp)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20060918 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20060918 Firefox/2.0

Button home & button print can't be disabled in Help -> Help Contents.
Therefore, we can remove everything that deals with this issues.

This code:

#help-home-button:not([disabled="true"]):hover { 
  -moz-image-region: rect(24px 72px 48px 48px); 
}
#help-home-button[disabled="true"] { 
  -moz-image-region: rect(48px 72px 72px 48px); 
}
#help-home-button:not([disabled="true"]):hover:active { 
  -moz-image-region: rect(72px 72px 96px 48px); 
}

#help-print-button:not([disabled="true"]):hover { 
  -moz-image-region: rect(24px 96px 48px 72px); 
}
#help-print-button[disabled="true"] { 
  -moz-image-region: rect(48px 96px 72px 72px); 
}
#help-print-button:not([disabled="true"]):hover:active { 
  -moz-image-region: rect(72px 96px 96px 72px); 
}

Can be converted to this:

#help-home-button:hover { 
  -moz-image-region: rect(24px 72px 48px 48px); 
}
#help-home-button:hover:active { 
  -moz-image-region: rect(72px 72px 96px 48px); 
}

#help-print-button:hover { 
  -moz-image-region: rect(24px 96px 48px 72px); 
}
#help-print-button:hover:active { 
  -moz-image-region: rect(72px 96px 96px 72px); 
}

Reproducible: Always
Assignee: nobody → jwalden+fxhelp
Component: General → Help Viewer
Product: Firefox → Toolkit
QA Contact: general → help
Summary: remove unnecessary code from classic/help/help.css → remove unnecessary code from help.css
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
If you're going to do that, you should also remove the disabled states from help's Toolbar.png.
I don't see why help/Toolbar.png is necessary - why not simply using browser/Toolbar.png instead?
Because that would create a /toolkit dependency on a /browser file.
Attached file new help.css
Can someone please remove the disabled states from help's Toolbar.png?
Product: Toolkit → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: