|
51 | 51 | --radius-pill: 999px; |
52 | 52 | } |
53 | 53 |
|
54 | | - /* ── YouTube-style dark theme ── */ |
| 54 | + /* ── Google-style dark theme ── */ |
55 | 55 | [data-theme="dark"] { |
56 | | - /* YouTube red theme — softer, low-saturation red for links/accents */ |
57 | | - --google-blue: #e08a83; |
58 | | - --google-blue-hover: #ee9f98; |
59 | | - --google-blue-light: rgba(224, 138, 131, 0.16); |
60 | | - |
61 | | - --color-bg: #0f0f0f; |
62 | | - --color-surface: #181818; |
63 | | - --color-surface-variant: #212121; |
64 | | - --color-surface-tonal: #272727; |
65 | | - --color-text: #f1f1f1; |
66 | | - --color-text-secondary: #aaaaaa; |
67 | | - --color-text-tertiary: #717171; |
68 | | - --color-accent: #e08a83; |
69 | | - --color-accent-light: #ee9f98; |
70 | | - --color-border: #3f3f3f; |
71 | | - --color-border-light: #272727; |
72 | | - --color-highlight: rgba(224, 138, 131, 0.16); |
73 | | - --color-award: #ffd24d; |
74 | | - --color-award-bg: rgba(255, 210, 77, 0.14); |
| 56 | + /* Google brand colors, lightened for dark surfaces */ |
| 57 | + --google-blue: #8ab4f8; |
| 58 | + --google-blue-hover: #aecbfa; |
| 59 | + --google-blue-light: rgba(138, 180, 248, 0.16); |
| 60 | + --google-red: #f28b82; |
| 61 | + --google-yellow: #fdd663; |
| 62 | + --google-green: #81c995; |
| 63 | + |
| 64 | + --color-bg: #202124; |
| 65 | + --color-surface: #202124; |
| 66 | + --color-surface-variant: #28292c; |
| 67 | + --color-surface-tonal: #303134; |
| 68 | + --color-text: #e8eaed; |
| 69 | + --color-text-secondary: #9aa0a6; |
| 70 | + --color-text-tertiary: #80868b; |
| 71 | + --color-accent: #8ab4f8; |
| 72 | + --color-accent-light: #aecbfa; |
| 73 | + --color-border: #3c4043; |
| 74 | + --color-border-light: #2d2e31; |
| 75 | + --color-highlight: rgba(138, 180, 248, 0.16); |
| 76 | + --color-award: #fdd663; |
| 77 | + --color-award-bg: rgba(253, 214, 99, 0.14); |
75 | 78 | --color-card-shadow: rgba(0, 0, 0, 0.6); |
76 | 79 | --color-card-shadow-soft: rgba(0, 0, 0, 0.4); |
77 | 80 | } |
78 | 81 |
|
79 | 82 | [data-theme="dark"] nav { |
80 | | - background: rgba(15, 15, 15, 0.92); |
81 | | - border-bottom-color: #272727; |
82 | | - } |
83 | | - |
84 | | - /* YouTube red accent bar in place of the Google four-color gradient */ |
85 | | - [data-theme="dark"] .section-title::before { |
86 | | - background: #ff0000; |
87 | | - } |
88 | | - |
89 | | - /* YouTube red dot before the first academic group (Teaching Assistant) */ |
90 | | - [data-theme="dark"] .academic-group:nth-of-type(1) .academic-subtitle::before { |
91 | | - background: #ff0000; |
| 83 | + background: rgba(32, 33, 36, 0.92); |
| 84 | + border-bottom-color: #2d2e31; |
92 | 85 | } |
93 | 86 |
|
94 | 87 | /* Neutral dark chips behind the colorful illustration icons */ |
95 | 88 | [data-theme="dark"] .funfact-icon, |
96 | 89 | [data-theme="dark"] .misc-card-icon { |
97 | | - background: #272727; |
| 90 | + background: #303134; |
98 | 91 | } |
99 | 92 |
|
100 | 93 | /* Brighten Go-board lines so they read on dark */ |
|
1359 | 1352 | function applyTheme(theme) { |
1360 | 1353 | var dark = theme === 'dark'; |
1361 | 1354 | document.documentElement.setAttribute('data-theme', dark ? 'dark' : 'light'); |
1362 | | - // Swap Google branding for YouTube branding in dark mode |
1363 | | - document.querySelectorAll('.bio-logo-google').forEach(function (img) { |
1364 | | - img.src = dark ? './youtube_logo.svg' : './google_logo.png'; |
1365 | | - img.alt = dark ? 'YouTube' : 'Google'; |
1366 | | - var link = img.closest('a.logo-link'); |
1367 | | - if (link) { |
1368 | | - link.href = dark ? 'https://www.youtube.com/' : 'https://about.google/'; |
1369 | | - link.setAttribute('aria-label', dark ? 'YouTube' : 'Google'); |
1370 | | - } |
1371 | | - }); |
1372 | 1355 | // Swap the thesis illustration for its dark-mode version |
1373 | 1356 | var thesis = document.getElementById('thesis-img'); |
1374 | 1357 | if (thesis) { |
|
0 commit comments