-
Notifications
You must be signed in to change notification settings - Fork 31
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
Miscellaneous white background fixes #162
Merged
AfroThundr3007730
merged 8 commits into
StylishThemes:master
from
jason-wihardja:miscellaneous-white-bg-fixes
Feb 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
644601c
Fix for Mobile Popups (#156)
jason-wihardja 4dbca97
Apply white background only on image thumbnail (Re: #156)
jason-wihardja 8304d00
Fix White Table Background (Desktop)
jason-wihardja 335aebb
Fix White Quotebox (Mobile)
jason-wihardja 958f811
Fix White Lazy Image Placeholder (Mobile)
jason-wihardja e04f567
Remove Redundant Style
jason-wihardja 069ad54
Extract style to affected selector only (Re: #162)
jason-wihardja bda8001
Merge branch 'master' into miscellaneous-white-bg-fixes
jason-wihardja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest minimize the use of !important unless its absolutely necessary for the override.
Also both popups are missing a border/box shadow where the arrow side of the popup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this part of the code, I actually just copy and pasted it from the desktop version. I notice that the desktop version also have the same issue. So maybe for this PR, I include only these changes to fix white background, and perhaps when I had time I would look into the missing border issue and create separate PR for it. Let me know if you're ok with this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure but it is already an issue on desktop version (misuse of important when not necessary), just because something has existed for a long time, it shouldn't be perpetuated if not absolutely necessary.
At some stage I intended to cleanup more of these misuses but it is a job for the ages, easier to re-write style, now Ive no time for these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, only the last rule would need important for the
.mwe-popups-fade
part, or conversely, use the specific selector that appears in the vendor style:.mwe-popups .mwe-popups-extract[dir="ltr"]::after
I think the second option is a better choice here, also those unrelated selectors for permissions probably shouldn't be carried over unless that element actually exists in the mobile style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So after testing, just the above vendor-provided selector is necessary for that last rule, and
!important
can be removed from all of them. Everything else is good.