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

Added responsive CSS styles for navigation menu and icons, enhancing usability on smaller screens. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Imran-imtiaz48
Copy link

@Imran-imtiaz48 Imran-imtiaz48 commented Jul 6, 2024

Added responsive CSS styles for navigation menu and icons, enhancing usability on smaller screens.

• Media Queries: These are used to apply styles only on specific screen sizes.
• max-width: 768px: Styles for screens with a width of 768px or less.
• max-width: 568px: Styles for screens with a width of 568px or less.
• Navigation Menu (.nav__menu): Initially hidden off-screen. When the .open class is added, it slides into view.
• Logo (.nav__logo): Width is adjusted to 50% for smaller screens.
• Hamburger Menu (.nav__hamburger): Displayed only on smaller screens.
• Menu Top Section (.menu__top): Uses flexbox for layout and has specific padding and background color.
• SVG Icons in Menu Top (.menu__top svg): Size and fill color are set.
• Navigation Category (.nav__category): Styled with specific text color, font size, and weight.
• Navigation List (.nav__list): Uses flexbox to stack items vertically and aligns them to the start.
• Navigation Items (.nav__item): Adjusted width and margins for better alignment on smaller screens.
• Navigation Links (.nav__link): Styled for links, including padding and color.
• Body Active State (body.active::before): Adds an overlay when the menu is active to dim the background.
• Icon Styles for Smaller Screens: Adjusts the size and padding of icons for better display on very small screens.

…usability on smaller screens.

•  Media Queries: These are used to apply styles only on specific screen sizes.
•	max-width: 768px: Styles for screens with a width of 768px or less.
•	max-width: 568px: Styles for screens with a width of 568px or less.
•  Navigation Menu (.nav__menu): Initially hidden off-screen. When the .open class is added, it slides into view.
•  Logo (.nav__logo): Width is adjusted to 50% for smaller screens.
•  Hamburger Menu (.nav__hamburger): Displayed only on smaller screens.
•  Menu Top Section (.menu__top): Uses flexbox for layout and has specific padding and background color.
•  SVG Icons in Menu Top (.menu__top svg): Size and fill color are set.
•  Navigation Category (.nav__category): Styled with specific text color, font size, and weight.
•  Navigation List (.nav__list): Uses flexbox to stack items vertically and aligns them to the start.
•  Navigation Items (.nav__item): Adjusted width and margins for better alignment on smaller screens.
•  Navigation Links (.nav__link): Styled for links, including padding and color.
•  Body Active State (body.active::before): Adds an overlay when the menu is active to dim the background.
•  Icon Styles for Smaller Screens: Adjusts the size and padding of icons for better display on very small screens.
Copy link

netlify bot commented Jul 6, 2024

Deploy Preview for edem-phone ready!

Name Link
🔨 Latest commit 57928b0
🔍 Latest deploy log https://app.netlify.com/sites/edem-phone/deploys/668969bc602ebb00087c8b99
😎 Deploy Preview https://deploy-preview-21--edem-phone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Imran-imtiaz48 Imran-imtiaz48 changed the title Added responsive CSS styles for navigation menu and icons, enhancing … Added responsive CSS styles for navigation menu and icons, enhancing usability on smaller screens. Jul 6, 2024
@wpcodevo
Copy link
Owner

wpcodevo commented Jul 6, 2024

For some reason, the preview version of your latest commit breaks the hero area of the site. View the preview

Try working on it and submit again

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