Skip to content

Commit 284ebe5

Browse files
authored
Merge pull request #656 from piyusha-chopra/main
Updated Navbar [sticky navbar, refined colors, checked responsiveness]
2 parents 957e805 + 5c04589 commit 284ebe5

File tree

9 files changed

+52
-23
lines changed

9 files changed

+52
-23
lines changed

Faq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
justify-content: space-between;
8181
align-items: center;
8282
flex-wrap: wrap;
83-
position: relative;
83+
/* position: relative; */
8484
}
8585

8686
.navbar-right-links {

about.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
justify-content: space-between;
8383
align-items: center;
8484
flex-wrap: wrap;
85-
position: relative;
85+
/* position: relative; */
8686
}
8787

8888
.navbar-right-links {
@@ -103,6 +103,7 @@
103103
min-width: 150px;
104104
}
105105

106+
106107
.navbar-right-links.show {
107108
display: flex !important;
108109
}

blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
justify-content: space-between;
6262
align-items: center;
6363
flex-wrap: wrap;
64-
position: relative;
64+
/* position: relative; */
6565
}
6666

6767
.navbar-right-links {

contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
justify-content: space-between;
141141
align-items: center;
142142
flex-wrap: wrap;
143-
position: relative;
143+
/* position: relative; */
144144
}
145145

146146
.navbar-right-links {

css/about.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
} */
1212
body {
1313
font-family: "Segoe UI", Tahoma, sans-serif;
14-
background: #f9f9f9;
14+
background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
1515
color: #333;
1616
line-height: 1.6;
1717
overflow-x: hidden;

css/faq.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ body.dark-mode {
5353
/* Dark mode toggle button styling */
5454
.dark-toggle {
5555

56-
background: #fff !important;
56+
/* background: #fff !important; */
5757
border: none;
5858
cursor: pointer;
5959
padding: 0.6rem 1.2rem;
@@ -62,7 +62,7 @@ body.dark-mode {
6262
}
6363

6464
.dark-toggle:hover {
65-
background: rgba(255, 255, 255, 0.1) !important;
65+
background: #2563eb;
6666
}
6767
/* For dark mode button background */
6868
body.dark-mode #darkModeToggle {
@@ -483,11 +483,14 @@ body.dark-mode .faq-item:hover {
483483
/* Dark mode navbar compatibility */
484484
body.dark-mode .navbar {
485485
background: transparent;
486+
background: linear-gradient(90deg, #1f2937, #111827);
487+
color: var(--text-light);
488+
box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.05);
486489
}
487490

488491
body.dark-mode .nav-item {
489-
background: linear-gradient(135deg, #4a5568, #2d3748);
490-
color: #e0e0e0;
492+
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
493+
color: var(--text-light);
491494
}
492495

493496
body.dark-mode .nav-item:hover {

css/style.css

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ body {
4040
background-color:#fff;
4141
border-radius: 10px;
4242
margin-bottom: 1.5rem;
43+
position: sticky;
4344
}
4445

4546

@@ -96,7 +97,7 @@ body {
9697

9798
.nav-item {
9899
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
99-
color: white;
100+
color:white;
100101
border: none;
101102
padding: 0.6rem 1.2rem;
102103
margin: 5px;
@@ -111,6 +112,9 @@ body {
111112
transition: transform 0.25s ease, box-shadow 0.25s ease;
112113
font-weight: 500;
113114
}
115+
.fa-moon{
116+
color:white;
117+
}
114118
/* for sun it must be white */
115119
.fa-sun{
116120
color: #fceeb1;
@@ -603,6 +607,7 @@ body.dark-mode #footer-outer h3 {
603607
margin-top: 15px;
604608
}
605609

610+
606611
@media (min-width: 1024px) {
607612
.main-grid {
608613
grid-template-columns: 2fr 1fr;
@@ -1111,6 +1116,12 @@ body.dark-mode #footer-outer h3 {
11111116
.details-grid {
11121117
grid-template-columns: 1fr;
11131118
}
1119+
1120+
body.dark-mode .navbar-right-links{
1121+
background: linear-gradient(90deg, #1f2937, #111827);
1122+
1123+
}
1124+
11141125
}
11151126

11161127
/* Dark Mode */
@@ -1240,18 +1251,21 @@ body.dark-mode .tag-badge {
12401251

12411252
/* Dark Mode Toggle Styling */
12421253
.dark-toggle {
1243-
background: #f3f4f6;
1254+
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
1255+
color: white;
12441256
border: none;
1245-
border-radius: 6px;
1246-
padding: 8px 10px;
1257+
border-radius: 10px;
1258+
padding: 0.6rem 1.2rem;
12471259
font-size: 1rem;
12481260
cursor: pointer;
12491261
color: #1f2937;
12501262
transition: background 0.3s ease;
12511263
}
12521264

12531265
.dark-toggle:hover {
1254-
background: #e5e7eb;
1266+
background-color: #115cff;
1267+
transform: translateY(-2px) scale(1.05);
1268+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
12551269
}
12561270

12571271
/* Optional dark-mode override */
@@ -1261,7 +1275,8 @@ body.dark-mode .tag-badge {
12611275
}
12621276

12631277
.dark-mode .dark-toggle:hover {
1264-
background: #4b5563;
1278+
background: linear-gradient(135deg, #63b3ed, #4299e1);
1279+
color: #1a202c;
12651280
}
12661281

12671282
body.dark-mode .swal2-popup {
@@ -2615,3 +2630,7 @@ body.dark-mode .speed-control input:focus {
26152630
cursor: pointer;
26162631
color: #2563eb; /* matches your theme */
26172632
}
2633+
2634+
.dark-mode .hamburger-container .bar{
2635+
background-color: #adadad;
2636+
}

css/tool.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ body.dark-mode #darkModeToggle {
3737
/* Dark mode toggle button styling */
3838
.dark-toggle {
3939
color:#1a1a1a;
40-
background: #fff !important;
40+
/* background: #fff !important; */
4141
border: none;
4242
cursor: pointer;
4343
padding: 0.6rem 1.2rem;
@@ -46,7 +46,9 @@ transition: all 0.25s ease;
4646
}
4747

4848
.dark-toggle:hover {
49-
background: rgba(255, 255, 255, 0.1) !important;
49+
background-color: #115cff;
50+
transform: translateY(-2px) scale(1.05);
51+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
5052
}
5153

5254
header {

tools.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
justify-content: space-between;
8080
align-items: center;
8181
flex-wrap: wrap;
82-
position: relative;
82+
/* position: relative; */
8383
}
8484

8585
.navbar-right-links {
@@ -322,7 +322,7 @@ <h4>Connect</h4>
322322
/* Dark mode toggle button styling */
323323
.dark-toggle {
324324
color:#1a1a1a;
325-
background: none !important;
325+
/* background: none !important; */
326326
border: none;
327327
cursor: pointer;
328328
padding: 0.6rem 1.2rem;
@@ -331,7 +331,8 @@ <h4>Connect</h4>
331331
}
332332

333333
.dark-toggle:hover {
334-
background: rgba(255, 255, 255, 0.1) !important;
334+
335+
color: #1a202c;;
335336
}
336337

337338
header {
@@ -617,12 +618,15 @@ <h4>Connect</h4>
617618

618619
/* Dark mode navbar compatibility */
619620
body.dark-mode .navbar {
620-
background: transparent;
621+
background: transparent;
622+
background: linear-gradient(90deg, #1f2937, #111827);
623+
color: var(--text-light);
624+
box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.05);
621625
}
622626

623627
body.dark-mode .nav-item {
624-
background: linear-gradient(135deg, #4a5568, #2d3748);
625-
color: #e0e0e0;
628+
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
629+
color: var(--text-light);
626630
}
627631

628632

0 commit comments

Comments
 (0)