Skip to content

Commit 5fbb52a

Browse files
committed
Here's a summary of what I fixed in this session:
Changes made: h3 font-weight: 600 → 700 (matching Docusaurus/Infima) in site_styles.dart Inline code styling: Added 1px solid rgba(0,0,0,0.1) border, changed border-radius from 0.2rem to 0.4rem, simplified padding to uniform 0.1rem Dark mode inline code: Added rgba(255,255,255,0.1) border for dark mode Dark mode page nav border: #444950 → #606770 (matching Docusaurus) Dark mode workflow card text: #ffffff → #ebedf0 (matching Docusaurus's muted white) Header: Changed border-bottom to box-shadow: rgba(0,0,0,0.1) 0 1px 2px 0 (matching Docusaurus) Sidebar link weight: 400 → 500 in collapsible_sidebar.dart Content layout fix: Zeroed inner div's horizontal padding at desktop (≥1000px), fixing content width from 711px → 735px (exactly matching Docusaurus) Visual parity: 94.74% → 95.00% (+0.26pp)
1 parent 6cf685a commit 5fbb52a

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

site_jaspr/lib/components/collapsible_sidebar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class CollapsibleSidebar extends StatelessComponent {
368368
alignItems: AlignItems.center,
369369
color: Color.inherit,
370370
fontSize: 1.rem,
371-
fontWeight: FontWeight.w400,
371+
fontWeight: FontWeight.w500,
372372
textDecoration: TextDecoration.none,
373373
raw: {
374374
'line-height': '1.25',

site_jaspr/lib/styles/site_styles.dart

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ List<StyleRule> get siteStyles => [
6060
),
6161
css('.content h3').styles(
6262
fontSize: 1.5.rem,
63+
fontWeight: FontWeight.w700,
6364
lineHeight: 1.5.em,
6465
raw: {'margin': '2rem 0 0.75rem'},
6566
),
@@ -84,13 +85,9 @@ List<StyleRule> get siteStyles => [
8485
// Inline code: light gray background, smaller font (matching Infima)
8586
// Use :not(pre) > code to avoid styling code inside pre blocks
8687
css('.content :not(pre) > code').styles(
87-
padding: Padding.only(
88-
top: 0.1.rem,
89-
right: 0.4.rem,
90-
bottom: 0.1.rem,
91-
left: 0.4.rem,
92-
),
93-
radius: BorderRadius.circular(0.2.rem),
88+
padding: Padding.all(0.1.rem),
89+
border: Border.all(color: Color('rgba(0, 0, 0, 0.1)'), width: 1.px),
90+
radius: BorderRadius.circular(0.4.rem),
9491
fontSize: Unit.percent(95),
9592
raw: {
9693
'background-color': 'rgba(0, 0, 0, 0.06)',
@@ -196,10 +193,12 @@ List<StyleRule> get siteStyles => [
196193
css('[data-theme="dark"] .header-container').styles(
197194
backgroundColor: Color('#081842'),
198195
),
199-
// Match Docusaurus navbar height: 60px with padding 0.5rem 1rem
196+
// Match Docusaurus navbar: 60px height, box-shadow (not border-bottom)
200197
css('.header').styles(
201198
height: 3.75.rem,
202199
padding: Padding.symmetric(horizontal: 1.rem, vertical: 0.5.rem),
200+
border: Border.none,
201+
raw: {'box-shadow': 'rgba(0, 0, 0, 0.1) 0px 1px 2px 0px'},
203202
),
204203
// Hide the title text in the header (original only shows the logo badge)
205204
css('.header-title > span').styles(display: Display.none),
@@ -469,6 +468,10 @@ List<StyleRule> get siteStyles => [
469468
css('[data-theme="dark"] code').styles(
470469
raw: {'background': '#081842 !important'},
471470
),
471+
// Dark mode inline code: lighter border to match Docusaurus
472+
css('[data-theme="dark"] .content :not(pre) > code').styles(
473+
border: Border.all(color: Color('rgba(255, 255, 255, 0.1)'), width: 1.px),
474+
),
472475
css('[data-theme="dark"]').styles(
473476
raw: {'scrollbar-color': '#ffffff30 transparent'},
474477
),
@@ -486,7 +489,7 @@ List<StyleRule> get siteStyles => [
486489
css('.page-nav-label').styles(color: Color('#525860')),
487490
// Dark mode: page nav prev/next blocks
488491
css('[data-theme="dark"] .page-nav-prev, [data-theme="dark"] .page-nav-next').styles(
489-
border: Border.all(color: Color('#444950'), width: 1.px),
492+
border: Border.all(color: Color('#606770'), width: 1.px),
490493
),
491494
css('[data-theme="dark"] .page-nav-prev:hover, [data-theme="dark"] .page-nav-next:hover').styles(
492495
border: Border.all(color: Color('#66fbd1'), width: 1.px),
@@ -759,7 +762,7 @@ List<StyleRule> get siteStyles => [
759762
},
760763
),
761764
css('[data-theme="dark"] .workflow-card p').styles(
762-
color: Color('#ffffff'),
765+
color: Color('#ebedf0'),
763766
),
764767
css('[data-theme="dark"] .workflow-card:hover').styles(
765768
raw: {'border-color': '#66fbd1'},
@@ -777,7 +780,7 @@ List<StyleRule> get siteStyles => [
777780
// (matching Docusaurus where contentCol = 75% of docMainContainer width)
778781
css.media(MediaQuery.all(minWidth: 1000.px), [
779782
css('.docs .main-container main > div').styles(
780-
padding: Padding.only(top: 1.rem),
783+
padding: Padding.only(top: 1.rem, left: Unit.zero, right: Unit.zero),
781784
),
782785
css('.docs .main-container main > div .content-container').styles(
783786
padding: Padding.symmetric(horizontal: 1.rem),

0 commit comments

Comments
 (0)