-
Notifications
You must be signed in to change notification settings - Fork 121
Change timeline button borders for readability #1339
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
Conversation
✅ Deploy Preview for codingtrain ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Thank you @aryanpingle! Tagging in @runemadsen to review, as this maybe affects the original design of the site? |
|
I would keep only of the borders (top or bottom) to maintain the original border style. |
|
Ooh I didn't know about the tracks content till today, that's pretty neat. The double border issue should be a fairly easy CSS patch. I suppose the track stops "double-line" is just the background-lines clashing with the border-lines, I'll try to fix that. @fturmel could you send me a link to the challenge which has both Tracks and Timestamps? |
|
Here's a link with both tracks and timestamps: tracks/webgl/webgl/3-light-and-material |
* Fixes the double border issue, and changes color depending on if it's for a Track or Challenge * `VideoSection` is defined separately for Tracks and Challenges separately, so it changes both * Keeps the default white background color on Track Stops and Parts respectively
|
The double border is because of |
|
Alrighty, the border issues seemed to be fixed now. Changed the border-colors to match if it's a track / challenge because I was feeling extra merry today XD I intentionally didn't add borders for "Track Stops" and "Parts", because their clickable area would be narrower than the rectangle formed (and it's more aesthetically pleasing without them). Should be easy to add them if needed. @fturmel @dipamsen I'd love another set of eyes on it again :) |
|
Whoa, can't believe I made this PR all the way back in 2023. Time flies by so quickly, here's a before-after of the changes:
@shiffman Could you give it a once-over whenever you're free? |
|
Thank you @aryanpingle! The missing borders from the "track stops" looks odd to me and I think should be retained to stay true to the original design? Can you elaborate more on why you removed them? |
|
The track-stops components follow a different convention than the timestamps, so I wasn't sure how I'd add the borders to them. I'll give it a try now! |
|
@aryanpingle Hi! It's subtle but I see that the original background color is not white, but a light tint of red. We can see the difference here: For reference, the original striped background is defined in .content {
background-color: var(--red-lightest);
min-height: 100vh;
border-right: var(--border);
background-image: linear-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px);
background-size: 100% var(--baseline);
/* There is no border top so make sure baseline moves up 1px */
background-position: 0px -1px;
} |
|
Ah, nice catch. Fixing it. |
|
I took a look through and I'd like to merge this! Does anyone have any last comments before I do? Apologies for how long you had to wait @aryanpingle! |
|
No worries, Dan! For anyone who wants to review, here's how it looked before. And here's how it looks after (the timestamp section). |
|
Fantastic! As there have been no other comments and it looks good to me, I'm going to go ahead and merge! |
|
@all-contributors add @aryanpingle for code |
|
I've put up a pull request to add @aryanpingle! 🎉 |







Just a minor change that's been bugging me on the site: the buttons in the timeline section don't have their own individual borders, and the background lines make them confusing while scrolling (pics attached below).
Yep that's all. Love your content, and happy holidays :D