Skip to content

Commit 088853d

Browse files
guralbrianclaude
andcommitted
Improve CSS architecture and visual styling
- Added global h2#my-research margin rule with !important - Enhanced About Me and Research sections with background and shadows - Improved image-text alignment with better float rules - Added visual separators to h2 headers - Styled h3 headers with primary color - Added thin border to hero-image div - Improved paragraph spacing and text justification - Added responsive rules for mobile layouts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4bfe723 commit 088853d

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

assets/css/custom.css

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,11 @@ header,
15691569
margin-top: 12px;
15701570
}
15711571

1572+
/* Global h2#my-research styling (works everywhere) */
1573+
h2#my-research {
1574+
margin-top: 12px !important;
1575+
}
1576+
15721577
.research-page h3 {
15731578
clear: both;
15741579
margin-top: 2.5rem;
@@ -2635,3 +2640,71 @@ figure.float-right + p {
26352640
display: table;
26362641
clear: both;
26372642
}
2643+
2644+
/* Enhanced styling for About Me and Research sections */
2645+
.about-section .section-content-collapsible,
2646+
.research-section .section-content-collapsible {
2647+
padding: 2rem;
2648+
background-color: rgba(254, 246, 236, 0.3);
2649+
border-radius: 8px;
2650+
margin-top: 1rem;
2651+
box-shadow: 0 2px 8px var(--shadow-subtle);
2652+
}
2653+
2654+
/* Better image-text alignment for floated images */
2655+
.content-body figure.float-right {
2656+
float: right;
2657+
margin: 0 0 2rem 2.5rem;
2658+
max-width: 300px;
2659+
}
2660+
2661+
.content-body figure.float-right img {
2662+
width: 100%;
2663+
max-width: 200px;
2664+
margin: 0;
2665+
box-shadow: 0 3px 10px var(--shadow-medium);
2666+
border-radius: 8px;
2667+
border: 1px solid var(--border-light);
2668+
}
2669+
2670+
/* Visual separator for h2 headers */
2671+
.content-body h2:not(#my-research) {
2672+
border-bottom: 2px solid var(--border-light);
2673+
padding-bottom: 0.75rem;
2674+
margin-top: 3rem;
2675+
}
2676+
2677+
/* Style h3 headers with accent color */
2678+
.content-body h3 {
2679+
color: var(--primary-color);
2680+
font-weight: 500;
2681+
margin-top: 2.5rem;
2682+
}
2683+
2684+
/* Improve paragraph spacing in research content */
2685+
.research-section .content-body p,
2686+
.about-section .content-body p {
2687+
margin-bottom: 1.5rem;
2688+
text-align: justify;
2689+
hyphens: auto;
2690+
}
2691+
2692+
/* Add padding to lists for better readability */
2693+
.content-body ul,
2694+
.content-body ol {
2695+
padding-left: 2rem;
2696+
}
2697+
2698+
/* Responsive improvements for mobile */
2699+
@media (max-width: 600px) {
2700+
.content-body figure.float-right {
2701+
float: none;
2702+
margin: 1.5rem auto;
2703+
text-align: center;
2704+
}
2705+
2706+
.research-section .content-body p,
2707+
.about-section .content-body p {
2708+
text-align: left;
2709+
}
2710+
}

assets/css/hero.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757

5858
.hero-image {
5959
position: relative;
60+
border: 1px solid var(--border-light);
61+
border-radius: 8px;
62+
overflow: hidden;
6063
}
6164

6265
.hero-image img {

0 commit comments

Comments
 (0)