-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
some style changes and fixes #34
Conversation
- Full-sized website window for a modern look. - Added transitions to everything. - Added a new Legacy badge. - Provided a Hugo executable file like `gradlew` (fixes neoforged#33). - Fixed the single-lined code block on notices to look unreadable in light mode. - Covered some more IDEs in `.gitignore`.
Deploying with Cloudflare Pages
|
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.
After consulting with others, it seems the old screen, limited in width it may be, looks better on wide screens rather than the changes in this PR.
While there is a lot of wasted space on the existing layout, it's much more readable as the text is in a confined column, rather than stretching across the screen without balancing text size and other factors.
In line with that, please revert back to the fixed-width layout. We can discuss changing to a full-width layout in another PR, hopefully in a way that looks readable on wide screens.
Hmm... I'll revert the changes you asked in a bit. It'll be nice if someone could make a better fullscreen solution; the current one is just pretty bugging. |
The transition and dimming effect on the version bar makes it look like the option is greyed out while also having the colors meld together, making it look washy. Could we remove the transition to see whether the effect looks better. If it still has a similar issue, I would suggest removing the transition and dimming effect for the bar altogether and just leaving the border around the version bar to indicate selection. |
Ok! Also, I'll record some visual representations of the changes you and Sci have asked for better comparison. (and btw the highlight and the versions dropdowns were made pr-ed by me; just reading project-talk on discord lol) the transition effect is already not on |
|
Should I do this? rec_neo2.mp4 |
I think that's too distracting, personally. |
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.
Thanks for figuring out the Hugo issue! We'll look into updating to the latest Hugo version on Cloudflare and here after this PR is merged.
The change in font size of the badges and code block in the version dropdowns are a bit too distracting, I think. At most, we could have them dim on hover, but changing size is a bit much. (And no other code block should really be dimming on hover, I think, to avoid association with e.g., buttons.)
themes/mainroad/assets/css/style.css
Outdated
@@ -239,6 +248,11 @@ code { | |||
padding: 0 5px; | |||
} | |||
|
|||
code:hover { | |||
filter: brightness(.85); | |||
cursor: pointer; |
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.
Why? It's a bit distracting to hover over a code block in a page and see it change to the hand pointer (for links and buttons), when it is not a button or a link. (It might also give the impression that you can click to copy?)
Also, is dimming the code block necessary? I think it should just be treated as ordinary text.
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.
you can click to copy?
we can do that, actually.
OK, no more experimenting. I'll finalise the pr shortly.
what about now? |
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 to me, just a small nitpick.
themes/mainroad/assets/css/style.css
Outdated
@@ -1076,13 +1071,11 @@ details[open] summary { | |||
} | |||
|
|||
summary code:hover { | |||
font-size: 15px; | |||
filter: brightness(.85); |
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 think you accidentally'd the indentation. 😄
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.
Thanks!
gradlew
(fixes Fails to build with Hugo 0.125.3 #33)..gitignore
.Preview URL: https://pr-34.neoforged-website-previews.pages.dev