Skip to content

Commit 360cbab

Browse files
committed
added some writeup about paper
1 parent 6311d5f commit 360cbab

File tree

9 files changed

+767
-150
lines changed

9 files changed

+767
-150
lines changed

index.html

Lines changed: 622 additions & 149 deletions
Large diffs are not rendered by default.

static/css/dark-mode.css

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,43 @@ body {
263263
color: var(--abstract-text-color);
264264
}
265265

266+
/* Enhanced styling for bold text in dark mode - making it more visible */
267+
[data-theme="dark"] strong,
268+
[data-theme="dark"] b {
269+
color: #78b9ff !important; /* Lighter, more vibrant blue */
270+
font-weight: 600;
271+
background-color: rgba(50, 115, 220, 0.15); /* Subtle highlight background */
272+
padding: 0 4px;
273+
border-radius: 3px;
274+
display: inline-block; /* Ensure proper display */
275+
text-shadow: 0 0 1px rgba(120, 185, 255, 0.3); /* Add slight text shadow for better visibility */
276+
position: relative; /* For z-index positioning */
277+
z-index: 2; /* Ensure text appears above backgrounds */
278+
}
279+
280+
/* Special styling for bold text in specific contexts */
281+
[data-theme="dark"] td strong,
282+
[data-theme="dark"] th strong,
283+
[data-theme="dark"] li strong,
284+
[data-theme="dark"] h1 strong,
285+
[data-theme="dark"] h2 strong,
286+
[data-theme="dark"] h3 strong,
287+
[data-theme="dark"] h4 strong,
288+
[data-theme="dark"] h5 strong,
289+
[data-theme="dark"] h6 strong,
290+
[data-theme="dark"] .tldr-box strong,
291+
[data-theme="dark"] p strong,
292+
[data-theme="dark"] .abstract-text strong {
293+
color: #78b9ff !important;
294+
background-color: rgba(50, 115, 220, 0.15);
295+
padding: 0 4px;
296+
border-radius: 3px;
297+
display: inline-block;
298+
position: relative;
299+
z-index: 2;
300+
text-shadow: 0 0 1px rgba(120, 185, 255, 0.3);
301+
}
302+
266303
/* Override for card text gradient */
267304
[data-theme="dark"] .expandable-card:not(.expanded) .card-text-container:after {
268305
background: var(--expand-gradient) !important;
@@ -309,4 +346,55 @@ figcaption {
309346
.theme-toggle i {
310347
font-size: 20px;
311348
color: var(--text-color);
349+
}
350+
351+
/* Enhanced aesthetics for dark mode elements */
352+
[data-theme="dark"] .section {
353+
background-color: #1a1a1a !important; /* Slightly darker for better contrast */
354+
border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Subtler border */
355+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* Enhanced shadow */
356+
transition: transform 0.3s ease, box-shadow 0.3s ease !important;
357+
}
358+
359+
[data-theme="dark"] .section:hover {
360+
transform: translateY(-2px);
361+
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
362+
}
363+
364+
/* Make titles more vibrant in dark mode */
365+
[data-theme="dark"] h2.title {
366+
background: linear-gradient(90deg, #4e8cff, #7a97ff);
367+
-webkit-background-clip: text;
368+
-webkit-text-fill-color: transparent;
369+
font-weight: 600 !important;
370+
letter-spacing: -0.02em;
371+
text-shadow: 0 2px 10px rgba(78, 140, 255, 0.2);
372+
}
373+
374+
/* Add subtle animation to buttons in dark mode */
375+
[data-theme="dark"] .external-link.button {
376+
transition: all 0.3s ease !important;
377+
border: 1px solid rgba(255, 255, 255, 0.08) !important;
378+
}
379+
380+
[data-theme="dark"] .external-link.button:hover {
381+
transform: translateY(-3px) !important;
382+
box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25), 0 5px 5px rgba(0, 0, 0, 0.22) !important;
383+
background: linear-gradient(135deg, #2b2b2b, #383838) !important;
384+
}
385+
386+
/* Improve figures in dark mode */
387+
[data-theme="dark"] figure {
388+
border: 1px solid rgba(255, 255, 255, 0.08);
389+
transition: transform 0.3s ease, box-shadow 0.3s ease;
390+
}
391+
392+
[data-theme="dark"] figure:hover {
393+
transform: translateY(-3px);
394+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
395+
}
396+
397+
/* Smoother dark mode background */
398+
[data-theme="dark"] body {
399+
background: linear-gradient(135deg, #121212, #1a1a1a) !important;
312400
}

static/images/fig1.png

227 KB
Loading

static/images/fig2.png

228 KB
Loading

static/images/fig3.png

385 KB
Loading

static/images/fig4.png

1.36 MB
Loading

static/images/fig5.png

379 KB
Loading

static/images/fig6.png

326 KB
Loading

static/js/theme-toggle.js

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ function setTheme(themeName) {
44
localStorage.setItem('theme', themeName);
55
updateThemeIcon(themeName);
66

7+
// Apply theme class to body
8+
if (themeName === 'dark') {
9+
document.body.classList.add('dark-mode');
10+
document.body.classList.remove('light-mode');
11+
} else {
12+
document.body.classList.add('light-mode');
13+
document.body.classList.remove('dark-mode');
14+
}
15+
716
// Force refresh of critical styles by applying inline styles
817
if (themeName === 'dark') {
918
document.body.style.backgroundColor = '#121212';
10-
document.body.style.backgroundImage = 'none';
19+
document.body.style.backgroundImage = 'linear-gradient(135deg, #121212, #1a1a1a)';
1120
document.body.style.color = '#e0e0e0';
1221

1322
// Apply additional dark mode styles to elements that might have inline styles
@@ -21,6 +30,9 @@ function setTheme(themeName) {
2130
// Apply specific light mode styles to override any persistent dark mode styles
2231
applyLightModeStyles();
2332
}
33+
34+
// Force a repaint/reflow to ensure all styling is applied correctly
35+
void document.body.offsetHeight;
2436
}
2537

2638
// Function to apply dark mode styles directly to elements
@@ -69,6 +81,41 @@ function applyDarkModeStyles() {
6981
text.style.color = '#d0d0d0';
7082
});
7183

84+
// Bold text styling for dark mode
85+
document.querySelectorAll('strong, b').forEach(boldText => {
86+
boldText.style.color = '#78b9ff';
87+
boldText.style.fontWeight = '600';
88+
boldText.style.backgroundColor = 'rgba(50, 115, 220, 0.15)';
89+
boldText.style.padding = '0 4px';
90+
boldText.style.borderRadius = '3px';
91+
boldText.style.display = 'inline-block';
92+
boldText.style.position = 'relative';
93+
boldText.style.zIndex = '2';
94+
boldText.style.textShadow = '0 0 1px rgba(120, 185, 255, 0.3)';
95+
});
96+
97+
// Special handling for sections that might contain bold text
98+
document.querySelectorAll('.section p, .abstract-text').forEach(element => {
99+
// Force a repaint/reflow to ensure all styling is applied
100+
const display = element.style.display;
101+
element.style.display = 'none';
102+
void element.offsetHeight; // Trigger reflow
103+
element.style.display = display;
104+
105+
// Get all bold elements and ensure they have correct styling
106+
element.querySelectorAll('strong, b').forEach(boldText => {
107+
boldText.style.color = '#78b9ff';
108+
boldText.style.fontWeight = '600';
109+
boldText.style.backgroundColor = 'rgba(50, 115, 220, 0.15)';
110+
boldText.style.padding = '0 4px';
111+
boldText.style.borderRadius = '3px';
112+
boldText.style.display = 'inline-block';
113+
boldText.style.position = 'relative';
114+
boldText.style.zIndex = '2';
115+
boldText.style.textShadow = '0 0 1px rgba(120, 185, 255, 0.3)';
116+
});
117+
});
118+
72119
// TL;DR box
73120
document.querySelectorAll('.tldr-box').forEach(box => {
74121
box.style.backgroundColor = '#252525';
@@ -142,6 +189,15 @@ function applyLightModeStyles() {
142189
text.style.color = '#444444';
143190
});
144191

192+
// Reset bold text styling for light mode
193+
document.querySelectorAll('strong, b').forEach(boldText => {
194+
boldText.style.color = '#333333';
195+
boldText.style.fontWeight = '700';
196+
boldText.style.backgroundColor = 'transparent';
197+
boldText.style.padding = '0';
198+
boldText.style.borderRadius = '0';
199+
});
200+
145201
// TL;DR box
146202
document.querySelectorAll('.tldr-box').forEach(box => {
147203
box.style.backgroundColor = '#f9f9f9';

0 commit comments

Comments
 (0)