Skip to content

Commit

Permalink
Fix animation, edit styling of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1618 committed Apr 13, 2024
1 parent a92bb3f commit 8fc43e7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
15 changes: 2 additions & 13 deletions src/components/leaderboard/LeaderboardRow/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,8 @@
}

&.flash {
animation: flash 2s;
@keyframes flash {
0%,
20%,
40%,
60% {
background-color: var(--theme-background);
color: var(--theme-text-on-background-1);
}

10%,
30%,
animation: blinker 2s;
@keyframes blinker {
50% {
background-color: var(--theme-primary-2);
color: var(--theme-background);
Expand Down Expand Up @@ -78,7 +68,6 @@
}

.rank {
color: var(--theme-text-on-surface-1);
opacity: 0.5;
text-align: center;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export type Styles = {
blinker: string;
flash: string;
match: string;
name: string;
Expand Down
18 changes: 14 additions & 4 deletions src/styles/pages/leaderboard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
.myPosition {
align-items: center;
background-color: var(--theme-primary-2);
border: 1px solid var(--theme-elevated-stroke);
border-radius: 1rem;
color: var(--theme-background);
display: flex;
Expand All @@ -54,10 +55,10 @@
border: 1px solid var(--theme-elevated-stroke);
border-radius: 1rem;
color: inherit;
font-size: 14px;
font-size: 1rem;
height: 2rem;
max-width: 18rem;
padding-left: 1.5rem;
padding-left: 1rem;
padding-right: 0.5rem;
width: 100%;

Expand All @@ -66,8 +67,17 @@
}
}

.timeDropdown select {
text-align: right;
.timeDropdown {
background-color: var(--theme-elevated-background);
border: 1px solid var(--theme-elevated-stroke);
border-radius: 2rem;
padding: 0.5rem 1rem;

> select {
font-size: 1rem;
font-weight: normal;
line-height: 1.25rem;
}
}
}

Expand Down

0 comments on commit 8fc43e7

Please sign in to comment.