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

Remove/simplify some CSS rules #14772

Merged
merged 2 commits into from
Apr 14, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

  • Remove unnecessary min-width CSS rules

    • For the findbar/secondaryToolbar case, the min-width rule doesn't really make sense since it's way too small to be useful. Furthermore, the findbar is already specifying its own min-width and the secondaryToolbar will (thanks to its buttons) receive a correct/useful width.

    • The pageNumber-input already has an explicit width set, hence setting the min-width rule as well is completely unnecessary.

    • The treeItem-links are supposed to compute their min-width, and the static value was only added as a fallback for older browsers without calc() support.

  • Reduce (some) duplication in the CSS rules for the sidebarViews

    With just a couple of exceptions, for the thumbnailView, all of the sidebarViews share the same basic styling which thus allows for some simplification.

 - For the findbar/secondaryToolbar case, the `min-width` rule doesn't really make sense since it's way too small to be useful. Furthermore, the findbar is already specifying its own `min-width` and the secondaryToolbar will (thanks to its buttons) receive a correct/useful width.

 - The pageNumber-input already has an *explicit* `width` set, hence setting the `min-width` rule as well is completely unnecessary.

 - The treeItem-links are supposed to *compute* their `min-width`, and the static value was only added as a fallback for older browsers without `calc()` support.
With just a couple of exceptions, for the `thumbnailView`, all of the sidebarViews share the same basic styling which thus allows for some simplification.
@Snuffleupagus Snuffleupagus changed the title Rm unneeded css Remove/simplify some CSS rules Apr 12, 2022
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 1

Live output at: http://54.241.84.105:8877/a462a4e7cd7fa14/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/a462a4e7cd7fa14/output.txt

Total script time: 2.72 mins

Published

@timvandermeij timvandermeij merged commit 5ca26bc into mozilla:master Apr 14, 2022
@timvandermeij
Copy link
Contributor

Nice work!

@Snuffleupagus Snuffleupagus deleted the rm-unneeded-CSS branch April 14, 2022 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants