Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6944827

Browse files
committed
better nav company button hover animation
1 parent e6c317b commit 6944827

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎src/problems-by-company/company.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ button:hover {
6666
background-color: var(--button-hover-bg);
6767
border-color: var(--button-hover-border);
6868
cursor: pointer;
69-
transform: translateY(-1px);
70-
color: var(--link-color);
7169
}
7270

7371
table {

‎src/problems-by-company/company.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ function addNavbarLinks() {
3535
});
3636
};
3737
button.onmouseover = () => {
38-
button.style.color = 'orange';
38+
button.style.backgroundColor = '#404040';
3939
button.style.cursor = 'pointer';
4040
};
4141
button.onmouseout = () => {
42-
button.style.color = 'white';
42+
button.style.backgroundColor = '#373737';
43+
button.style.color = '#fff';
4344
};
4445
button.style.display = 'flex';
4546
button.style.alignItems = 'center';

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /