Closed Bug 1297392 Opened 8 years ago Closed 8 years ago

[GSOC 2016] Missing CSS file for the HTML UI for events/tasks


(Calendar :: Dialogs, defect)

Lightning 5.3
Not set


(Not tracked)



(Reporter: pmorris, Assigned: pmorris)




(1 file, 2 obsolete files)

The CSS file for the HTML implementation was accidentally left out while revising the patch for bug 1294534.
Attached patch html-ui-css-fix-aug23.patch (obsolete) — Splinter Review
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)
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.
It's a problem of namespaces. You can add in global.css before the xul namespace: @namespace html ""; 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.
Attached patch html-ui-css-fix-aug24.patch (obsolete) — Splinter Review
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)
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 and below there are the description of them. On this page, , you can see the colors on your system.
(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 on attachment 8784566 [details] [diff] [review]

Review of attachment 8784566 [details] [diff] [review]:

Thanks. This looks good, let's take it.
Attachment #8784566 - Flags: review?(philipp) → review+
Blocks: 1294534
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.