Skip to content

Commit

Permalink
fixe navlinks in smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridhima10 committed Aug 6, 2024
1 parent 1b0b18e commit bd8f2d0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/* Importing Google Fonts - Poppins with different font weights. */
@import url("https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap");



html {
user-select: none;
scroll-behavior: smooth;
Expand Down Expand Up @@ -219,15 +221,16 @@ a {
/* Styling for the logo in the navigation bar. */

.nav .nav-links {
column-gap: 20px;
/* margin: 0 1rem; */
/* column-gap: 20px; */
list-style: none;
}

/* Styling for navigation links. */

.nav .nav-links a {
transition: all 0.2s linear;
/* font-size: 15px; */
font-size: 14px;
/* font-family: "Silkscreen", sans-serif; */
/* font-weight: 400; */
/* font-style: normal; */
Expand Down Expand Up @@ -892,7 +895,7 @@ h3 {
top: 0;
left: -100%;
height: 100%;
max-width: 280px;
/* max-width: 280px; */
width: 100%;
padding-top: 100px;
row-gap: 30px;
Expand Down Expand Up @@ -1014,7 +1017,11 @@ h3 {
height: 0.875rem;
}
}

/* @media screen and (max-width: 1024px) {
.nav-links{
display: none;
}
} */
@media screen and (min-width: 48rem) {
.remodal {
padding-top: 4.5rem;
Expand Down
4 changes: 2 additions & 2 deletions server/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
.nav__actions {
display: flex;
align-items: center;
column-gap: 1rem;
/* column-gap: 1rem; */
}
.nav__search,
Expand Down Expand Up @@ -346,7 +346,7 @@
@media screen and (min-width: 900px) {
.nav {
height: calc(var(--header-height) + 2rem);
column-gap: 3rem;
/* column-gap: 3rem; */
}
.nav__close,
Expand Down

0 comments on commit bd8f2d0

Please sign in to comment.