Skip to content

Commit 9fffc08

Browse files
reverted change for navbar and fix overflow issue for dashboard
1 parent 26fbfd8 commit 9fffc08

File tree

5 files changed

+477
-536
lines changed

5 files changed

+477
-536
lines changed

docusaurus.config.ts

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,13 @@ const config: Config = {
9393
items: [
9494
{
9595
type: "dropdown",
96-
html: '<span id="nav-docs"></span> Docs',
96+
html: '<span class="nav-emoji">📚</span> Docs',
9797
position: "left",
9898
items: [
9999
{
100100
type: "html",
101101
value: `<div class="grid grid-cols-3 gap-4 w-xl">
102+
<a class="border-r col-span-1" href="/courses/">Tutorials</a>
102103
<a class="border-r col-span-1" href="/courses/">Tutorials</a>
103104
<div class="grid grid-cols-4 col-span-2">
104105
<a href="/docs/sql/intro-sql" class="nav__icons"> <img src="/icons/sql.svg" title="SQL" alt="SQL" /> </a>
@@ -115,6 +116,7 @@ const config: Config = {
115116
{
116117
type: "html",
117118
value: `<div class="grid grid-cols-3 gap-4">
119+
<a class="border-r col-span-1" href="/courses/"> Courses </a>
118120
<a class="border-r col-span-1" href="/courses/"> Courses </a>
119121
<div class="grid grid-cols-4 col-span-2">
120122
<a href="https://www.youtube.com/watch?v=GrTV59Y84S8&list=PLrLTYhoDFx-kiuFiGQqVpYYZ56pIhUW63&ab_channel=RecodeHive" class="nav__icons"> <img src="/icons/git.svg" alt="git" /> </a>
@@ -130,73 +132,74 @@ const config: Config = {
130132
{
131133
type: "html",
132134
value: `<div class="grid grid-cols-3 gap-4">
135+
<a class="border-r col-span-1" href="#" target="_self"> Interview Prep </a>
133136
<a class="border-r col-span-1" href="#" target="_self"> Interview Prep </a>
134137
<div class="grid grid-cols-1 col-span-2">
135-
<a href="/interview-prep/" target="_self" class="nav__icons"><span id="nav-technical" style="display:inline-flex;align-items:center;"></span> Technical</a> <br />
136-
<a href="/interview-prep/" target="_self" class="nav__icons"><span id="nav-behavioral" style="display:inline-flex;align-items:center;"></span> Behavioral</a>
138+
<a href="/interview-prep/" target="_self" class="nav__icons"> 🧩Technical </a> <br />
139+
<a href="/interview-prep/" target="_self" class="nav__icons"> 💡Behavioral </a>
137140
</div>
138141
</div>`,
139142
},
140143
],
141144
},
142145
{
143146
to: "/showcase",
144-
html: '<span id="nav-showcase"></span> Showcase',
147+
html: '<span class="nav-emoji">🌍</span> Showcase',
145148
position: "left",
146149
},
147150
{
148151
to: "/dashboard",
149-
html: '<span id="nav-dashboard"></span> Dashboard',
152+
html: '<span class="nav-emoji">📊</span> Dashboard',
150153
position: "left",
151154
},
152155
{
153156
to: "/our-sponsors/",
154-
html: '<span id="nav-donate"></span> Donate',
157+
html: '<span class="nav-emoji">💰</span> Donate',
155158
position: "left",
156159
},
157160
{
158161
type: "dropdown",
159-
html: '<span id="nav-devfolio"></span> Devfolio',
162+
html: '<span class="nav-emoji">👩🏻‍💻</span> Devfolio',
160163
position: "left",
161164
items: [
162165
{
163-
html: '<span id="nav-github" style="display:inline-flex;align-items:center;"></span> GitHub Profiles',
166+
label: "💻GitHub Profiles",
164167
to: "https://dev.recodehive.com/devfolio",
165168
},
166169
{
167-
html: '<span id="nav-badges" style="display:inline-flex;align-items:center;"></span> GitHub Badges',
170+
label: "🎖️ GitHub Badges",
168171
to: "/badges/github-badges/",
169172
},
170173
],
171174
},
172175
{
173176
to: "/blogs",
174-
html: '<span id="nav-blogs"></span> Blogs',
177+
html: '<span class="nav-emoji">📰</span> Blogs',
175178
position: "left",
176179
},
177180
{
178181
type: "dropdown",
179-
html: '<span id="nav-more"></span> More',
182+
html: '<span class="nav-emoji">🔗</span> More',
180183
position: "left",
181184
items: [
182185
{
183-
html: '<span id="nav-ebooks" style="display:inline-flex;align-items:center;"></span> E-books',
186+
label: "📚 E-books",
184187
to: "https://learn.recodehive.com/datascience",
185188
},
186189
{
187190
html: '<span id="nav-roadmap" style="display:inline-flex;align-items:center;"></span> Roadmap',
188191
to: "https://github.com/orgs/recodehive/projects/9",
189192
},
190193
{
191-
html: '<span id="nav-community" style="display:inline-flex;align-items:center;"></span> Community',
194+
label: "🤝 Community",
192195
to: "/community",
193196
},
194197
{
195-
html: '<span id="nav-broadcast" style="display:inline-flex;align-items:center;"></span> Broadcast',
198+
label: "📺 Broadcast",
196199
to: "/broadcasts/",
197200
},
198201
{
199-
html: '<span id="nav-podcast" style="display:inline-flex;align-items:center;"></span> Podcast',
202+
label: "🎙️ Podcast",
200203
to: "/podcasts/",
201204
},
202205
],

src/css/custom.css

Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ body {
695695

696696
/* Force left alignment for all tabs */
697697
.tabs,
698-
[class*="tabs--"] {
698+
[class*='tabs--'] {
699699
display: flex !important;
700700
justify-content: flex-start !important;
701701
text-align: left !important;
@@ -706,18 +706,18 @@ body {
706706

707707
/* Target all possible tab item variations */
708708
.tabs__item,
709-
[class*="tabs__item"],
709+
[class*='tabs__item'],
710710
.tabItem_LNqP,
711-
[role="tab"] {
711+
[role='tab'] {
712712
text-align: left !important;
713713
justify-content: flex-start !important;
714714
}
715715

716716
/* Active tab styles */
717717
.tabs__item--active,
718-
[class*="tabs__item--active"],
719-
.tabItem_LNqP[aria-selected="true"],
720-
[role="tab"][aria-selected="true"] {
718+
[class*='tabs__item--active'],
719+
.tabItem_LNqP[aria-selected='true'],
720+
[role='tab'][aria-selected='true'] {
721721
border-color: var(--ifm-toc-border-color) !important;
722722
border-bottom-color: var(--ifm-background-color) !important;
723723
background: var(--ifm-background-color) !important;
@@ -727,21 +727,21 @@ body {
727727

728728
/* Hover state */
729729
.tabs__item:not(.tabs__item--active):hover,
730-
[class*="tabs__item"]:not([class*="--active"]):hover,
731-
[role="tab"]:not([aria-selected="true"]):hover {
730+
[class*='tabs__item']:not([class*='--active']):hover,
731+
[role='tab']:not([aria-selected='true']):hover {
732732
background-color: var(--ifm-menu-color-background-active) !important;
733733
}
734734

735735
/* Remove any right margin/padding that might be pushing content */
736736
.tabs-container,
737-
[class*="tabs-container"] {
737+
[class*='tabs-container'] {
738738
width: 100% !important;
739739
margin: 0 !important;
740740
padding: 0 !important;
741741
}
742742

743743
/* Ensure tab list takes full width */
744-
[role="tablist"] {
744+
[role='tablist'] {
745745
width: 100% !important;
746746
display: flex !important;
747747
justify-content: flex-start !important;
@@ -776,8 +776,7 @@ html.theme-light .text-gray-900 {
776776
}
777777

778778
.modern-card-shadow {
779-
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
780-
0 10px 10px -5px rgba(0, 0, 0, 0.04);
779+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
781780
}
782781

783782
.modern-card-shadow-hover {
@@ -832,82 +831,63 @@ html {
832831

833832
/* ===== BASIC FOOTER PROTECTION ===== */
834833
/* Prevent global dark theme container rule from affecting footer */
835-
[data-theme="dark"] .enhanced-footer .container {
834+
[data-theme='dark'] .enhanced-footer .container {
836835
background-color: transparent !important;
837836
}
838837

839838
/* ===== FOOTER BACKGROUND PROTECTION ===== */
840839
/* Ensure footer maintains its gradient background in dark mode */
841-
[data-theme="dark"] .enhanced-footer {
842-
background: linear-gradient(
843-
135deg,
844-
#0f0f23 0%,
845-
#1a1a2e 25%,
846-
#16213e 50%,
847-
#0f3460 75%,
848-
#533483 100%
849-
) !important;
840+
[data-theme='dark'] .enhanced-footer {
841+
background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%) !important;
850842
color: #e2e8f0 !important;
851843
}
852844

853845
/* ===== STEP 5: FOOTER SECTION PROTECTION ===== */
854846
/* Protect specific footer sections from global overrides */
855-
[data-theme="dark"] .enhanced-footer .footer-links-section {
847+
[data-theme='dark'] .enhanced-footer .footer-links-section {
856848
background: rgba(0, 0, 0, 0.15) !important;
857849
}
858850

859-
[data-theme="dark"] .enhanced-footer .footer-bottom {
851+
[data-theme='dark'] .enhanced-footer .footer-bottom {
860852
background: rgba(0, 0, 0, 0.2) !important;
861853
}
862854

863855
/* ===== STEP 6: MAXIMUM SPECIFICITY PROTECTION ===== */
864856
/* Override the exact problematic global rule with same specificity */
865-
[data-theme="dark"]
866-
body:not(:has(.community-page))
867-
.enhanced-footer
868-
.container {
857+
[data-theme='dark'] body:not(:has(.community-page)) .enhanced-footer .container {
869858
background-color: transparent !important;
870859
}
871860

872-
[data-theme="dark"] body:not(:has(.community-page)) .enhanced-footer {
873-
background: linear-gradient(
874-
135deg,
875-
#0f0f23 0%,
876-
#1a1a2e 25%,
877-
#16213e 50%,
878-
#0f3460 75%,
879-
#533483 100%
880-
) !important;
861+
[data-theme='dark'] body:not(:has(.community-page)) .enhanced-footer {
862+
background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%) !important;
881863
color: #e2e8f0 !important;
882864
}
883865

884866
/* ===== STEP 7: COMPREHENSIVE ELEMENT PROTECTION ===== */
885867
/* Protect all footer elements from any global overrides */
886-
[data-theme="dark"] .enhanced-footer *,
887-
[data-theme="dark"] .enhanced-footer .row,
888-
[data-theme="dark"] .enhanced-footer .col,
889-
[data-theme="dark"] .enhanced-footer div,
890-
[data-theme="dark"] .enhanced-footer section {
868+
[data-theme='dark'] .enhanced-footer *,
869+
[data-theme='dark'] .enhanced-footer .row,
870+
[data-theme='dark'] .enhanced-footer .col,
871+
[data-theme='dark'] .enhanced-footer div,
872+
[data-theme='dark'] .enhanced-footer section {
891873
background-color: transparent !important;
892874
}
893875

894876
/* Ensure text colors inherit properly */
895-
[data-theme="dark"] .enhanced-footer,
896-
[data-theme="dark"] .enhanced-footer * {
877+
[data-theme='dark'] .enhanced-footer,
878+
[data-theme='dark'] .enhanced-footer * {
897879
color: inherit !important;
898880
}
899881

900882
/* ===== REMOVE THEME TOGGLE FROM MOBILE SIDEBAR AS THERE IS ONE ON THE NAVBAR ===== */
901883
@media (max-width: 1200px) {
902884
/* Aggressively hide theme toggle in mobile sidebar */
903-
.navbar-sidebar__brand
904-
button:not(.navbar-sidebar__close):not([class*="close"]),
885+
.navbar-sidebar__brand button:not(.navbar-sidebar__close):not([class*="close"]),
905886
.navbar-sidebar__brand .colorModeToggle,
906887
.navbar-sidebar .colorModeToggle,
907888
.navbar-sidebar__brand button[class*="colorModeToggle"],
908889
.navbar-sidebar button[class*="colorModeToggle"],
909-
.navbar-sidebar__brand
910-
.clean-btn[class*="toggle"]:not(.navbar-sidebar__close),
890+
.navbar-sidebar__brand .clean-btn[class*="toggle"]:not(.navbar-sidebar__close),
911891
.navbar-sidebar .clean-btn[class*="toggle"]:not(.navbar-sidebar__close),
912892
.navbar-sidebar__brand [class*="toggle_"]:not(.navbar-sidebar__close),
913893
.navbar-sidebar [class*="toggle_"]:not(.navbar-sidebar__close),

0 commit comments

Comments
 (0)