Closed
Bug 1297392
Opened 8 years ago
Closed 8 years ago
[GSOC 2016] Missing CSS file for the HTML UI for events/tasks
Categories
(Calendar :: Dialogs, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
5.3
People
(Reporter: pmorris, Assigned: pmorris)
References
Details
Attachments
(1 file, 2 obsolete files)
6.79 KB,
patch
|
MakeMyDay
:
review+
|
Details | Diff | Splinter Review |
The CSS file for the HTML implementation was accidentally left out while revising the patch for bug 1294534.
Assignee | ||
Comment 1•8 years ago
|
||
This patch adds the CSS file back in, and makes a few basic improvements to the CSS including adding "chrome://global/skin/global.css"
Assignee: nobody → paul
Attachment #8783972 -
Flags: review?(philipp)
Assignee | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
When adding the link to global.css to the html file on a build with a previous version of the html patch applied, this seems to have no effect. There's still a tranaparent background and odd fonts in tab mode with html UI enabled. So, this part of the patch needs more investigation.
Maybe this is related to the changes from bug 1195173.
Comment 4•8 years ago
|
||
It's a problem of namespaces. You can add in global.css before the xul namespace: @namespace html "http://www.w3.org/1999/xhtml"; and then in the rules before window,... html|html, html|body, and it works.
The problem is, we can't easily add this changes to global.css because FX doesn't use this. So this rules needs to be added in a Lightning own file.
Assignee | ||
Comment 5•8 years ago
|
||
This patch copies some styles from global.css to html-item-editing.css for now. From my testing (on linux) I believe this should fix the transparent background on windows and perhaps the font styles as well. I think that's sufficient for this early stage. I added comments about the namespace issue so we can figure that out as we work on this css for a later stage of the html UI.
Attachment #8783972 -
Attachment is obsolete: true
Attachment #8783972 -
Flags: review?(philipp)
Attachment #8784473 -
Flags: review?(philipp)
Comment 6•8 years ago
|
||
You are hard coding some colors. On normal light themes this colors work well, but on dark themes or High contrast themes they could be almost invisible or looking wrong. I propose you try to use system colors which use theme specific colors. On https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#System_Colors and below there are the description of them. On this page, https://ssl.webpack.de/mozilla.paenglab.ch/test/SystemColors.html , you can see the colors on your system.
Assignee | ||
Comment 7•8 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #6)
> You are hard coding some colors.
Thanks for the pointers on how to avoid hard coding the colors. I did my best to pick sensible values, but I can't see what they look like on mac or windows.
The CSS will need to be revisited once the HTML implementation reaches a point where it actually can be used. (Ideally using CSS grid layout, if it is available in time, see bug 616605) Right now it's still a work in progress in early stages so it would be good to go ahead and land a first version that can then be taken further.
Attachment #8784473 -
Attachment is obsolete: true
Attachment #8784473 -
Flags: review?(philipp)
Attachment #8784566 -
Flags: review?(philipp)
Comment 8•8 years ago
|
||
Comment on attachment 8784566 [details] [diff] [review]
html-ui-css-fix-aug24-second.patch
Review of attachment 8784566 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks. This looks good, let's take it.
Attachment #8784566 -
Flags: review?(philipp) → review+
Updated•8 years ago
|
Status: NEW → ASSIGNED
Comment 9•8 years ago
|
||
Blocks: 1294534
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 5.3
You need to log in
before you can comment on or make changes to this bug.
Description
•