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

Style and spacing changes #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

CheeseCake87
Copy link

  • Spacing adjusted between the header, content and footer. More space more better.

  • Project index icon buttons given background with hover effect. More spacing also, with mobile reactive adjustments.

  • Project page logo given a background to show text in dark mode.

  • Project page nav given more spacing to separate it more from the content below.

Light mode index:
image

Dark mode index:
image

Dark mode project:
image

Light mode mobile adjustment:
image

}

@media (max-width: 767px) {
header nav {
overflow-x: auto;
overflow-x: hidden;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think scroll would be better, that way it's still possible to get to on very small screens.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd be better changing the overall shape of the menu from row to column, and maybe centring the text when on mobile view. I don't think I have ever seen a mobile menu with a horizontal scroll bar

}

header nav a {
text-decoration: none;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to keep this, I think it's good to have some feedback when hovering links.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Navigation menus are well understood these days, the contrast hover feedback I think is enough, along with the positioning to tell the user the items are clickable. Although, I do agree that the underline is a louder indication of being clickable.

width: 3em;
}

header nav {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this changing? The screenshot looks the same, and pico already handles nav layout.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was moving control away from Pico here with the foresight that you would be changing the flex direction to column on mobile view.

}
}

.logo {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this changing? The screenshot looks the same, and pico already handles nav layout.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a spacing change, in this scenario flex is acting like a spreadsheet cell with the alignment set to middle. Giving even space above and below. The rem gap brings the text and image a little closer together. This allows the image and text to behave in more of a responsive manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants