Skip to content

Conversation

@YHan228
Copy link

@YHan228 YHan228 commented Jan 30, 2026

No description provided.

YHan228 and others added 13 commits January 30, 2026 16:43
- Remove academic/culture split, focus on academic content
- Add minimalist CSS theme (Inter font, dark mode)
- Move tea ceremony essays to blog posts
- Clean up stale template files
- Simplify navigation: About, Publications, CV, Blog
- Rewrite README for future maintainability

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change URL from yc-han.github.io to yhan228.github.io
- Update repository to YHan228/YHan228.github.io
- Add CSS fixes to prevent text cutoff

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Removed custom width/max-width CSS that was breaking the
Susy grid layout and causing text to be cut off by sidebar.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add left margin to #main when sidebar becomes position:fixed,
preventing content from being hidden behind the sidebar.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace Susy float grid with CSS Grid layout
- Change sidebar from fixed to sticky positioning (fixes overlap bug)
- Add comprehensive design token system (colors, spacing, transitions)
- Implement fluid typography with clamp() and tight letter-spacing
- Add glassmorphism masthead with backdrop blur
- Style sidebar as card with circular avatar and icon-only social links
- Add card-style archive items with hover effects
- Implement staggered fadeInUp animations on page load
- Add masthead shadow on scroll via intersection observer
- Support prefers-reduced-motion for accessibility
- Optimize for mobile with 44px touch targets

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1. Sidebar social links: hide text, show icons only
2. Navigation: remove redundant "About" link (homepage = about)
3. Archive items: switch from cards to horizontal list style
4. Code blocks: increase font size from 0.875em to 14px
5. Chanoyu pages: add back-to-home navigation button
6. Dark mode toggle: fix click handler not working

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Chanoyu pages: Home button now styled as green pill button
- Archive items: use CSS Grid for proper horizontal layout
  - Title on left, date on right (same line)
  - Hides excerpt for cleaner list view
  - Stacks vertically on mobile

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Dark mode: rewrite toggle with proper event handling
- Archive items: full-width horizontal rows (title left, meta right)
- Theme toggle: add explicit color and appearance reset

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Archive items:
- Change from flex to block layout
- Items now stack vertically (title, metadata, citation)
- Remove flex-related mobile overrides

Dark mode:
- Complete rewrite with simpler implementation
- Use class selector instead of ID
- Direct onclick handler (no addEventListener)
- Unicode sun/moon icons

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Archive:
- Override .list__item padding-right (was cramping content)
- Override .archive width constraints
- Add !important to force full-width display
- Items now properly use full content width

Dark mode:
- Replace Unicode icons with SVG sun/moon
- CSS controls icon visibility based on data-theme
- Simpler onclick handler

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bug 1 - Archive Layout (box instead of full-width list):
ROOT CAUSE: Susy grid mixins in _archive.scss generated
percentage-based widths and margins that constrained the archive
to ~83% width. custom.css overrode width/float but NOT margin-left.
FIX: Removed Susy mixins from _archive.scss, added comprehensive
margin/padding overrides in custom.css.

Bug 2 - Dark Mode Toggle (clicking did nothing):
ROOT CAUSE: Two competing implementations - jQuery in main.min.js
targeting #theme-toggle (hidden masthead element) and vanilla JS
targeting .theme-toggle (floating button). The jQuery code could
interfere with theme initialization on page load.
FIX: Removed old masthead toggle, rewrote vanilla JS with robust
error handling, added jQuery conflict prevention, and cleaned up
_main.js dark mode code.

Files modified:
- _sass/layout/_archive.scss: Removed Susy grid constraints
- _includes/masthead.html: Removed old hidden #theme-toggle
- _includes/scripts.html: Robust vanilla JS theme toggle
- assets/css/custom.css: Added margin overrides for archive
- assets/js/_main.js: Removed conflicting dark mode code

https://claude.ai/code/session_01Pf6RppSKLUNg77tXAyKvFm
Root cause fixes:

1. Archive Layout (still narrow):
   - CAUSE: When no sidebar exists, .archive was placed in the sidebar
     column (first column of the grid)
   - FIX: Added `grid-column: 1 / -1` to .archive by default, then
     `.sidebar ~ .archive { grid-column: auto }` when sidebar exists

2. Dark Mode Toggle (clicking did nothing):
   - CAUSE: main.min.js is a PRE-COMPILED file that still contained the
     old jQuery dark mode code, which was conflicting with vanilla JS
   - FIX: Surgically removed the jQuery dark mode code from main.min.js
   - Also cleaned up scripts.html (removed now-unnecessary jQuery
     conflict prevention code)

Files modified:
- assets/js/main.min.js: Removed jQuery dark mode code
- assets/css/custom.css: Fixed archive grid-column behavior
- _includes/scripts.html: Removed obsolete jQuery workaround

https://claude.ai/code/session_01Pf6RppSKLUNg77tXAyKvFm
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.

2 participants