Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaderboard: Fix animation, edit styling of buttons #227

Merged
merged 2 commits into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
29 changes: 19 additions & 10 deletions src/styles/pages/leaderboard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
max-width: 60rem;

.header {
align-items: center;
display: flex;
gap: 0 2rem;
gap: 1rem 2rem;

@media (max-width: vars.$breakpoint-lg) {
display: grid;
Expand All @@ -22,6 +21,7 @@
}

.heading {
align-self: center;
font-size: 1.5rem;
justify-self: start;
letter-spacing: 1%;
Expand All @@ -32,13 +32,13 @@
.myPosition {
align-items: center;
background-color: var(--theme-primary-2);
border-radius: 1rem;
border: 1px solid var(--theme-elevated-stroke);
border-radius: 2rem;
color: var(--theme-background);
display: flex;
font-size: 1rem;
font-weight: bold;
gap: 0.5rem;
height: 2rem;
justify-self: start;
padding: 0 1rem;

Expand All @@ -52,22 +52,31 @@
background: none;
background-color: var(--theme-elevated-background);
border: 1px solid var(--theme-elevated-stroke);
border-radius: 1rem;
border-radius: 2rem;
color: inherit;
font-size: 14px;
height: 2rem;
font-size: 1rem;
max-width: 18rem;
padding-left: 1.5rem;
padding-left: 1rem;
padding-right: 0.5rem;

width: 100%;

&::placeholder {
color: var(--theme-text-on-background-3);
}
}

.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
Loading