Skip to content

Update styles.css #49

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

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

Update styles.css #49

wants to merge 1 commit into from

Conversation

Nimarjot1
Copy link

Key Improvements Made:
Dark Theme Support:
Added a prefers-color-scheme: dark media query to automatically adjust colors for users with dark mode enabled. This is a modern feature that enhances accessibility and user experience. Transitions:
Introduced a --transition variable (all 0.3s ease) and applied it to elements like body, a, .button, and .header for smooth color and hover effects. Enhanced Navigation:
Added basic styles for .nav, .nav__list, and .nav__link with hover and active states. This makes the navigation functional and visually appealing. Buttons:
Created a reusable .button class with hover effects and a subtle shadow for depth. Shadows:
Added a --shadow-color variable and applied it to .header and .button:hover for a polished look. Scroll Bar Styling:
Improved the custom scrollbar with a hover effect using --first-color-alt. Media Queries:
Expanded the media queries to include small, medium, and large device breakpoints with sensible adjustments (e.g., wider containers, increased padding). Consistency and Fixes:
Added font-size: 16px to html for consistent rem calculations. Set display: block on img to remove unwanted spacing below images. Added hover states for links and buttons.
Adjusted .container padding for better spacing.
Missing Sections:
Left placeholders like /* HOME /, / ABOUT */, etc., intact since they depend on specific HTML. You can expand these based on your content.

Key Improvements Made:
Dark Theme Support:
Added a prefers-color-scheme: dark media query to automatically adjust colors for users with dark mode enabled. This is a modern feature that enhances accessibility and user experience.
Transitions:
Introduced a --transition variable (all 0.3s ease) and applied it to elements like body, a, .button, and .header for smooth color and hover effects.
Enhanced Navigation:
Added basic styles for .nav, .nav__list, and .nav__link with hover and active states. This makes the navigation functional and visually appealing.
Buttons:
Created a reusable .button class with hover effects and a subtle shadow for depth.
Shadows:
Added a --shadow-color variable and applied it to .header and .button:hover for a polished look.
Scroll Bar Styling:
Improved the custom scrollbar with a hover effect using --first-color-alt.
Media Queries:
Expanded the media queries to include small, medium, and large device breakpoints with sensible adjustments (e.g., wider containers, increased padding).
Consistency and Fixes:
Added font-size: 16px to html for consistent rem calculations.
Set display: block on img to remove unwanted spacing below images.
Added hover states for links and buttons.
Adjusted .container padding for better spacing.
Missing Sections:
Left placeholders like /* HOME */, /* ABOUT */, etc., intact since they depend on specific HTML. You can expand these based on your content.
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.

1 participant