Closed Bug 635359 Opened 14 years ago Closed 12 years ago

move functional rules in toolkit/themes/*.../webConsole.css to content/

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: rcampbell, Assigned: sonny)

References

Details

(Whiteboard: [console-2])

Attachments

(2 obsolete files)

There are a number of functional rules in the various webConsole.css files that could be moved to content/ to improve separation of static vs. functional styling. see: https://bugzilla.mozilla.org/show_bug.cgi?id=611795#c44
Whiteboard: [console-2]
(In reply to comment #0) > There are a number of functional rules in the various webConsole.css files > that could be moved to content/ to improve separation of static vs. > functional styling. I think you meant toolkit/ here, right? I don't see any css files in content/ besides tests. Also, here is another mention of the work ideally required: https://bugzilla.mozilla.org/show_bug.cgi?id=664788#c11
"content/" as in "toolkit/components/console/hudservice/content/", except that doesn't exist now because hudservice doesn't have any traditional "content" (XUL/CSS/JS files). Doesn't need to be in an actual "content/" subdirectory, that's just a convention.
Depends on: 603001
No longer depends on: 603001
Assignee: nobody → sonny.piers
Depends on: 703938
No longer depends on: 703938
Depends on: 703938
Status: NEW → ASSIGNED
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #576000 - Flags: review?(mihai.sucan)
Comment on attachment 576000 [details] [diff] [review] patch v1 Review of attachment 576000 [details] [diff] [review]: ----------------------------------------------------------------- Patch looks good to me, but I believe we should move more stuff into the content css. See: https://wiki.mozilla.org/DevTools/CSSTips#Content_or_Theme_CSS Dão: what do you think? (Sonny, thank you very much for your contribution!)
Attachment #576000 - Flags: review?(mihai.sucan)
Attachment #576000 - Flags: review?(dao)
Attachment #576000 - Flags: review+
Sonny: please also add the MPL trilicense boilerplate to the new webconsole.css file. See: http://www.mozilla.org/MPL/boilerplate-1.1/
Component: Developer Tools → Developer Tools: Console
QA Contact: developer.tools → developer.tools.console
Version: unspecified → Trunk
Comment on attachment 576000 [details] [diff] [review] patch v1 > <?xml-stylesheet href="chrome://browser/skin/devtools/webconsole.css" type="text/css"?> >+<?xml-stylesheet href="chrome://browser/content/devtools/webconsole.css " type="text/css"?> Flip this around so that content precedes skin. Looks good otherwise. I'm not sure what other stuff Mihai had in mind, but I'll note that https://wiki.mozilla.org/DevTools/CSSTips#Content_or_Theme_CSS doesn't seem quite correct... I should probably edit it.
Attachment #576000 - Flags: review?(dao) → review+
(In reply to Dão Gottwald [:dao] from comment #7) > Comment on attachment 576000 [details] [diff] [review] [diff] [details] [review] > patch v1 > > > <?xml-stylesheet href="chrome://browser/skin/devtools/webconsole.css" type="text/css"?> > >+<?xml-stylesheet href="chrome://browser/content/devtools/webconsole.css " type="text/css"?> > > Flip this around so that content precedes skin. > > Looks good otherwise. I'm not sure what other stuff Mihai had in mind, but > I'll note that > https://wiki.mozilla.org/DevTools/CSSTips#Content_or_Theme_CSS doesn't seem > quite correct... I should probably edit it. Please do, thank you very much!
Attached patch patch v1.1 (obsolete) — Splinter Review
Attachment #576000 - Attachment is obsolete: true
Attachment #576000 - Attachment is obsolete: false
(In reply to Sonny Piers [:sonny] from comment #9) > Created attachment 576694 [details] [diff] [review] [diff] [details] [review] > patch v1.1 I took a look through the rules to see what should be content CSS, and I think the following properties should move: -moz-transition white-space text-align -moz-box-orient -moz-box-direction overflow display position I'm of the opinion that fundamental layout is not something we should be encouraging themes to change because it's too hard to get right. Certainly padding is theme CSS, but absolute positioning values are probably part of content CSS. So I think the following could be moved too. height width top I think it would make sense for Dão to comment before you go and make further changes, though. Also, I'd be interested to know what you think. The best docs we have are: https://wiki.mozilla.org/DevTools/CSSTips#Content_or_Theme_CSS. Dão said he had an issue with this page, but he didn't change anything so I'm assuming he was just referring to the typo in where the files were stored that I fixed. While we're at it, this looks funny to me: .jsterm-output-node { overflow: auto; overflow-x: auto; } Is that redundant or am I missing something?
Joe, thanks for the feedback. I'll trust you on this, distinguishing themes or content related CSS rules is too subtle for me :-) Dao, can we have your opinion on this?
Blocks: 704110
This bug has r+'d patches. Any reason why it hasn't landed?
It seems we forgot. Will look into this. Thanks for your reminder!
will incorporate this with bug 704110.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Not WONTFIX, then!
No longer blocks: 704110
Status: RESOLVED → REOPENED
Depends on: 704110
Resolution: WONTFIX → ---
Attachment #576000 - Attachment is obsolete: true
Attachment #576694 - Attachment is obsolete: true
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: