fix: The size of the navbar seems off, and the red line that appears when we click doesn’t quite fit the design. #1486 #1509
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.
Title and Issue number
Title : Fix navbar size and remove red line from navlink section
Issue No. : 1486
Code Stack : CSS
Close #1486
Description
1.Improved the layout and styling of the navigation bar to ensure all elements are visible and properly aligned. Specifically, I made the following changes:
*Adjusted the styles for .nav-container to set its width to 100%, display as flex, and position as fixed, ensuring it takes up the full width of the screen.
*Fixed the size of the navigation elements, making sure the view button is now clearly visible.
*Refactored the CSS styles for .navLinks to improve its layout and positioning, ensuring it is properly aligned with other navigation elements.
"Previously, the navigation bar had layout issues, and the view button was not visible. After these changes, the navigation bar is now properly styled, and all elements, including the view button, are clearly visible."
*Set the position of navigation links to relative, removed text decoration, and set the color to white.
*Added a pseudo-element to navigation links to create a hover effect, but initially set its width and background color to transparent.
*On hover, changed the text color to red, but kept the pseudo-element's width and background color transparent, effectively removing the underline or bottom border.
"Previously, navigation links had an underline or bottom border on hover, which has been removed to improve the overall design."
Video/Screenshots (mandatory)
Type of PR
Checklist:
contributing.md
file before contributingAdditional context:
##Are you contributing under any Open-source programme?
GSSOC'24
VSOC'24