We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f3eaf commit 827ddefCopy full SHA for 827ddef
src/content-script/update-solutions-tab.ts
@@ -316,6 +316,14 @@ function createLanguageButtons(problem: any) {
316
langButton.style.backgroundColor = isDark ? '#373737' : '#f3f4f5';
317
langButton.style.color = isDark ? '#fff' : '#1a1a1a';
318
langButton.style.border = `1px solid ${isDark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)'}`;
319
+
320
+ // on hover just make the background a few shades darker or lighter
321
+ langButton.addEventListener('mouseenter', () => {
322
+ langButton.style.backgroundColor = isDark ? '#424242' : '#e6e6e6';
323
+ });
324
+ langButton.addEventListener('mouseleave', () => {
325
+ langButton.style.backgroundColor = isDark ? '#373737' : '#f3f4f5';
326
327
});
328
329
const langIcon = document.createElement('img');
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments