-
Notifications
You must be signed in to change notification settings - Fork 179
Fix author name visibility in dark mode with professional horizontal… #643
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,14 +15,14 @@ | |
| "typecheck": "tsc" | ||
| }, | ||
| "dependencies": { | ||
| "@docusaurus/core": "^3.8.1", | ||
| "@docusaurus/plugin-content-docs": "3.8.1", | ||
| "@docusaurus/plugin-google-analytics": "^3.8.1", | ||
| "@docusaurus/plugin-ideal-image": "3.8.1", | ||
| "@docusaurus/preset-classic": "^3.8.1", | ||
| "@docusaurus/theme-classic": "^3.8.1", | ||
| "@docusaurus/theme-mermaid": "3.8.1", | ||
| "@docusaurus/theme-search-algolia": "3.8.1", | ||
| "@docusaurus/core": "3.9.1", | ||
| "@docusaurus/plugin-content-docs": "3.9.1", | ||
| "@docusaurus/plugin-google-analytics": "3.9.1", | ||
| "@docusaurus/plugin-ideal-image": "3.9.1", | ||
| "@docusaurus/preset-classic": "3.9.1", | ||
| "@docusaurus/theme-classic": "3.9.1", | ||
| "@docusaurus/theme-mermaid": "3.9.1", | ||
| "@docusaurus/theme-search-algolia": "3.9.1", | ||
| "@floating-ui/react": "^0.27.8", | ||
| "@giscus/react": "^3.1.0", | ||
| "@mdx-js/react": "^3.0.0", | ||
|
|
@@ -57,9 +57,9 @@ | |
| "vanilla-tilt": "^1.8.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@docusaurus/module-type-aliases": "^3.8.1", | ||
| "@docusaurus/tsconfig": "^3.8.1", | ||
| "@docusaurus/types": "^3.8.1", | ||
| "@docusaurus/module-type-aliases": "3.9.1", | ||
| "@docusaurus/tsconfig": "3.9.1", | ||
| "@docusaurus/types": "3.9.1", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above. |
||
| "@tailwindcss/postcss": "^4.1.4", | ||
| "@types/canvas-confetti": "^1.9.0", | ||
| "@types/react": "^19.1.9", | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -207,53 +207,144 @@ | |||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .card-author { | ||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||||
| align-items: flex-start; | ||||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||||
| gap: 8px; | ||||||||||||||||||||||||
| flex: 1; | ||||||||||||||||||||||||
| min-width: 0; | ||||||||||||||||||||||||
| max-width: 300px; | ||||||||||||||||||||||||
| position: relative; | ||||||||||||||||||||||||
| padding: 12px; | ||||||||||||||||||||||||
| text-align: left; | ||||||||||||||||||||||||
| transition: all 0.3s ease; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| [data-theme='dark'] .card-author { | ||||||||||||||||||||||||
| background: linear-gradient(135deg, | ||||||||||||||||||||||||
| rgba(15, 23, 42, 0.4) 0%, | ||||||||||||||||||||||||
| rgba(30, 41, 59, 0.3) 100%); | ||||||||||||||||||||||||
| border: 1px solid rgba(99, 102, 241, 0.2); | ||||||||||||||||||||||||
| backdrop-filter: blur(8px); | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| [data-theme='dark'] .card-author:hover { | ||||||||||||||||||||||||
| background: linear-gradient(135deg, | ||||||||||||||||||||||||
| rgba(15, 23, 42, 0.6) 0%, | ||||||||||||||||||||||||
| rgba(30, 41, 59, 0.5) 100%); | ||||||||||||||||||||||||
| border-color: rgba(99, 102, 241, 0.4); | ||||||||||||||||||||||||
| transform: translateY(-2px); | ||||||||||||||||||||||||
| box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2); | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .card-author { | ||||||||||||||||||||||||
| background: linear-gradient(135deg, | ||||||||||||||||||||||||
| rgba(255, 255, 255, 0.9) 0%, | ||||||||||||||||||||||||
| rgba(248, 250, 252, 0.8) 100%); | ||||||||||||||||||||||||
| border: 1px solid rgba(99, 102, 241, 0.15); | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .card-author:hover { | ||||||||||||||||||||||||
| background: linear-gradient(135deg, | ||||||||||||||||||||||||
| rgba(255, 255, 255, 0.95) 0%, | ||||||||||||||||||||||||
| rgba(248, 250, 252, 0.9) 100%); | ||||||||||||||||||||||||
| border-color: rgba(99, 102, 241, 0.3); | ||||||||||||||||||||||||
| transform: translateY(-2px); | ||||||||||||||||||||||||
| box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15); | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| /* 🎯 Horizontal Author Layout for Blog Carousel */ | ||||||||||||||||||||||||
| .author-avatar { | ||||||||||||||||||||||||
| width: 28px; | ||||||||||||||||||||||||
| height: 28px; | ||||||||||||||||||||||||
| border-radius: 50%; | ||||||||||||||||||||||||
| background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); | ||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||||
| font-size: 14px; | ||||||||||||||||||||||||
| color: white; | ||||||||||||||||||||||||
| font-weight: 600; | ||||||||||||||||||||||||
| box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); | ||||||||||||||||||||||||
| flex-shrink: 0; | ||||||||||||||||||||||||
| transition: all 0.3s ease; | ||||||||||||||||||||||||
| display: flex !important; | ||||||||||||||||||||||||
| flex-direction: row !important; | ||||||||||||||||||||||||
| align-items: flex-start !important; | ||||||||||||||||||||||||
| width: auto !important; | ||||||||||||||||||||||||
| height: auto !important; | ||||||||||||||||||||||||
| border-radius: 16px !important; | ||||||||||||||||||||||||
| background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important; | ||||||||||||||||||||||||
| border: 2px solid #e2e8f0 !important; | ||||||||||||||||||||||||
| padding: 16px !important; | ||||||||||||||||||||||||
| box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important; | ||||||||||||||||||||||||
| text-align: left !important; | ||||||||||||||||||||||||
| transition: all 0.3s ease !important; | ||||||||||||||||||||||||
| max-width: 280px !important; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| [data-theme='dark'] .author-avatar { | ||||||||||||||||||||||||
| background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important; | ||||||||||||||||||||||||
| border-color: #374151 !important; | ||||||||||||||||||||||||
| box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .author-avatar img { | ||||||||||||||||||||||||
| width: 50px !important; | ||||||||||||||||||||||||
| height: 50px !important; | ||||||||||||||||||||||||
| border-radius: 50% !important; | ||||||||||||||||||||||||
| border: 3px solid #6366f1 !important; | ||||||||||||||||||||||||
| object-fit: cover !important; | ||||||||||||||||||||||||
| margin: 0 12px 0 0 !important; | ||||||||||||||||||||||||
| flex-shrink: 0 !important; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| [data-theme='dark'] .author-avatar img { | ||||||||||||||||||||||||
| border-color: #8b5cf6 !important; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| /* Professional glow effect for blog carousel avatars */ | ||||||||||||||||||||||||
| .author-avatar::before { | ||||||||||||||||||||||||
| content: ''; | ||||||||||||||||||||||||
| position: absolute; | ||||||||||||||||||||||||
| top: -50%; | ||||||||||||||||||||||||
| left: -50%; | ||||||||||||||||||||||||
| width: 200%; | ||||||||||||||||||||||||
| height: 200%; | ||||||||||||||||||||||||
| background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%); | ||||||||||||||||||||||||
| transform: rotate(45deg); | ||||||||||||||||||||||||
| transition: all 0.6s ease; | ||||||||||||||||||||||||
| opacity: 0; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .author-avatar:hover { | ||||||||||||||||||||||||
| transform: scale(1.1); | ||||||||||||||||||||||||
| box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); | ||||||||||||||||||||||||
| .author-avatar:hover::before { | ||||||||||||||||||||||||
| opacity: 1; | ||||||||||||||||||||||||
| animation: shimmer 1.2s ease-in-out; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .author-name { | ||||||||||||||||||||||||
| font-size: 12px; | ||||||||||||||||||||||||
| color: #475569; | ||||||||||||||||||||||||
| font-weight: 600; | ||||||||||||||||||||||||
| white-space: nowrap; | ||||||||||||||||||||||||
| overflow: hidden; | ||||||||||||||||||||||||
| text-overflow: ellipsis; | ||||||||||||||||||||||||
| transition: color 0.2s ease; | ||||||||||||||||||||||||
| [data-theme='dark'] .author-avatar { | ||||||||||||||||||||||||
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%); | ||||||||||||||||||||||||
| box-shadow: | ||||||||||||||||||||||||
| 0 6px 20px rgba(79, 70, 229, 0.4), | ||||||||||||||||||||||||
| 0 3px 10px rgba(124, 58, 237, 0.3); | ||||||||||||||||||||||||
| border: 2px solid rgba(99, 102, 241, 0.3); | ||||||||||||||||||||||||
|
Comment on lines
+313
to
+317
|
||||||||||||||||||||||||
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%); | |
| box-shadow: | |
| 0 6px 20px rgba(79, 70, 229, 0.4), | |
| 0 3px 10px rgba(124, 58, 237, 0.3); | |
| border: 2px solid rgba(99, 102, 241, 0.3); | |
| /* Consolidated dark theme styles for consistency */ | |
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%); | |
| box-shadow: | |
| 0 6px 20px rgba(79, 70, 229, 0.4), | |
| 0 3px 10px rgba(124, 58, 237, 0.3); | |
| border: 3px solid #8b5cf6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this changes.