-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Improve styling of premiere date box #2611
Improve styling of premiere date box #2611
Conversation
a 5% border radius will create an oval shape when height and width differ. this doesn't look good. 5px radius looks better and is used in other places
Increases the offset a tiny amount and adds a left offset aswell. This looks better than when it was previously only offset from the bottom. I used 12px because it's what youtube uses.
vertically centes premiere icon and text with by making their parent a flexbox sets a min width for the text instead of using a set width for the premiereDate
line height 1.2 did not affect anything
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Merge conflicts have been fixed now |
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
Head branch was pushed to by a user without write access
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.
looks good
Improve styling of premiere date box
Pull Request Type
Related issue
no related issue
Description
Fixes some issues I had with the styling of the premiere date box and tries to bring it up to par with how it looks on YouTube.
Border radius is set with
px
instead of%
This is good because it makes the border radius circular instead of oval-shaped.
Adds some additional offset so the box isn't hugging the bottom-left of the video
Use flex-box to align text vertically instead of relying on margins
The text is now more centered than ever.
use min-width instead of a set width.
Looks better because there's less empty space normally and the "Please refresh soon" message is put on 1 line
increase opacity of the box from 0.7 to 0.8.
Make timestamp smaller and bold.
looks similar to YouTube.
adds more margin between text, icon, and box edges
Screenshots (if appropriate)
Before:
After:
Testing (for code that is not small enough to be easily understandable)
https://www.youtube.com/watch?v=O3cCYok_ukk
Desktop (please complete the following information):
Additional context
I added a span around Premiere time left but ended up not using it
Might need to wait for #2610 or the other way around since both change the same line in Watch.vue