Closed Bug 224242 Opened 21 years ago Closed 21 years ago

CSS "signature" needed

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: mrmazda, Assigned: justdave)

References

Details

Attachments

(1 file, 2 obsolete files)

Body tag on all pages should contain id="bugzilla-mozilla-org", which would
enable users via user css to customize the look and function of of bugzilla
pages on their systems.

This concept was developed on Eric Meyer's css mailing list and
http://tinyurl.com/t2do , and is explained at
http://archivist.incutio.com/viewlist/css-discuss/13291.

In my own case, it would permit me to retain use of my ideal choice of monospace
font size for mailnews, while using a smaller monospace font on bugzilla
show_bug pages, eliminating the annoying, normally present, horizontal scroll in
my usual 900px wide viewport. 

Product and component for this bug suggested by myk@mozilla.org.
Note that this isn't specific to bugzilla.mozilla.org.  This feature would be
useful for Bugzilla in general.  For b.m.o, I've added the necessary tag
manually, as you'll see if you view the source of this page (but don't resolve
the bug, since we still have to come up with a solution for Bugzilla overall.
Attached patch Patch (obsolete) — Splinter Review
This is live at http://landfill.bugzilla.org/bzdave/ if you want to see the
results.
MrMazda, you might want to help me push bug 53009 so you avoid going blind, too :-)

-> dave
Assignee: myk → justdave
Attachment #134520 - Flags: review?(myk)
Comment on attachment 134520 [details] [diff] [review]
Patch

>Index: template/en/default/global/header.html.tmpl
>===================================================================
>RCS file: /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl,v
>retrieving revision 1.20
>diff -u -r1.20 header.html.tmpl
>--- template/en/default/global/header.html.tmpl 3 Jul 2003 21:31:50 -0000       1.20
>+++ template/en/default/global/header.html.tmpl 30 Oct 2003 22:46:08 -0000
>@@ -89,7 +89,8 @@
>   # but set the bgcolor and onload attributes in the DEFAULT directive above.
>   #%]
> 
>-  <body bgcolor="[% bgcolor %]" onload="[% onload %]">
>+  <body bgcolor="[% bgcolor %]" onload="[% onload %]"
>+   id="[% Param('urlbase').replace('^https?://','').replace('/$','').replace('[@:/.]','-') %]">

Nit: I like to see ID attributes appear as the first element in the attribute
list since they seem somehow more fundamental than other attributes.

Also, you might want to do one more replace to make sure there aren't any
illegal characters in the string per section 6.2 of the HTML 4 spec, which says
"ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by
any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons
(":"), and periods (".")."

That's seems unlikely to happen very often, however, so I'm fine with this
version too.  r=myk
Attachment #134520 - Flags: review?(myk) → review+
Do we not have a css_class_quote filter for converting text into a valid CSS
class/id name?

Note that this interacts with the class-based stuff for component/bug_id etc.
over in bug 223078.

Gerv
Attachment #134520 - Attachment is obsolete: true
Comment on attachment 135839 [details] [diff] [review]
Zach's patch with jouni's comments

Sorry, wrong bug number - ignore the comment above.
Attachment #135839 - Attachment is obsolete: true
Flags: approval+
Attachment #134520 - Attachment is obsolete: false
Comment on attachment 134520 [details] [diff] [review]
Patch

it's bitrotted...
Attachment #134520 - Attachment is obsolete: true
Attachment #134520 - Flags: review-
Attached patch Patch v2Splinter Review
Attachment #140534 - Flags: review?(myk)
Comment on attachment 140534 [details] [diff] [review]
Patch v2

Works, looks good, r=myk
Attachment #140534 - Flags: review?(myk) → review+
Checking in template/en/default/global/header.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl,v
 <--  header.html.tmpl
new revision: 1.23; previous revision: 1.22
done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
So now that this is fixed, will anyone using v2.17.6+ automatically have this
enabled? qa.mandrakesoft.com (using 2.17.4) needs it, and I'm wondering about
duplicating this bug there.
Target Milestone: --- → Bugzilla 2.18
QA Contact: matty_is_a_geek → default-qa
Blocks: 824616
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: