Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update options CSS #117

Merged
merged 2 commits into from
Jul 26, 2023
Merged

Update options CSS #117

merged 2 commits into from
Jul 26, 2023

Conversation

Qeole
Copy link
Owner

@Qeole Qeole commented Jul 25, 2023

We introduced a copy of upstream CSS nearly three years ago; it changed quite a lot since then, and some elements do no longer render properly in accordance with the rest of Thunderbird's style (see PR #116). Let's update the file by copying the current version [0], trimming down unused items, and replacing :root with body, as we did already for the previous version.

[0] changeset 636997:517d690052a2)

Upstream source for the file has been moved. Let's rename accordingly,
before we update the file.
We introduced a copy of upstream CSS nearly three years ago; it changed
quite a lot since then, and some elements do no longer render properly
in accordance with the rest of Thunderbird's style (see PR #116). Let's
update the file by copying the current version [0], trimming down unused
items, and replacing ":root" with "body".

[0] changeset 636997:517d690052a2)
@Qeole Qeole mentioned this pull request Jul 25, 2023
@Qeole
Copy link
Owner Author

Qeole commented Jul 25, 2023

Linking https://bugzilla.mozilla.org/show_bug.cgi?id=1678150 here so I don't lose it again.

@Grillo-0
Copy link

This is great for now :).

I just don't think this approach of copying this CSS file from Thunderbird is good. Having to do that update every time is a bit cumbersome.

I never developed add-ons for Thunderbird, maybe there is a better way of doing that. If you have any ideas I'm willing to do them ;).

Thank you for your time maintaining this project!

@Qeole
Copy link
Owner Author

Qeole commented Jul 26, 2023

This is great for now :).

I just don't think this approach of copying this CSS file from Thunderbird is good. Having to do that update every time is a bit cumbersome.

Totally agree. I'd love to avoid that, too, but this is the best solution I've found so far to get a consistent visual on the option page.

I never developed add-ons for Thunderbird, maybe there is a better way of doing that. If you have any ideas I'm willing to do them ;).

I've hacked a few things for Thunderbird, but it could well be that there's a better solution and I don't know about it. I'm not well versed into all the possibilities for add-ons.

The thing is that it's nearly possible to include the file from Thunderbird directly, without having to copy/embed it in the add-on. Last time I tried, it's just that the CSS selectors :root wouldn't work. Replacing them with body does. I'm no CSS expert but I suspect there should be a way to have this work both in Thunderbird and from the add-ons; I filed a bug (see link above), but this hasn't got any traction over the three years it's been open.

At least, doing an update of the file once every three years is not that much work. But yeah, I hope that eventually this issue is solved and we can just include Thunderbird's CSS for the option page.

Thank you for your time maintaining this project!

I need it to work, too :)

@Qeole Qeole merged commit c52293a into master Jul 26, 2023
1 check passed
@Qeole Qeole deleted the pr/update-options-css branch July 26, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants