Skip to content

Commit

Permalink
Consistent outline/shadow styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Oct 7, 2023
1 parent ea7c456 commit e3cbfb5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
width: 100%;

flex-shrink: 0;
box-shadow: 0 0.25rem 0.25rem $accent-color;
box-shadow: $shadow;
border-radius: 0.5rem;
transition: $transition;
transition-property: filter;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ambassadorCard/ambassadorCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
background-color: $accent-color;
border: 0.5rem solid $primary-color;
border-radius: 1rem;
box-shadow: 0 0.2rem 0.2rem $accent-color;
box-shadow: $shadow;
padding: 0.25rem 0 0.5rem;

color: $primary-text;
Expand Down
3 changes: 2 additions & 1 deletion src/pages/overlay/components/buttons/buttons.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
border-radius: 0.5rem;
background: $primary-color;
cursor: pointer;
box-shadow: 0 0.125rem 0.25rem $accent-color;
box-shadow: $shadow;
outline-color: $outline-color;
transition: $transition;
transition-property: outline, filter;

Expand Down
2 changes: 1 addition & 1 deletion src/pages/overlay/components/card/card.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
justify-content: space-between;
align-items: center;

border: 0.25rem solid white;
border-radius: 1.25rem;
box-shadow: $shadow;
background: $primary-color;
color: $primary-text;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
}

.ambassadorButton {
outline-color: $outline-color;
transition: $transition;
transition-property: outline, filter;

Expand Down
1 change: 1 addition & 0 deletions src/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $tooltip-background-color: #18181b;

$font-family: "Nunito", sans-serif;
$outline: 0.25rem solid $outline-color;
$shadow: 0 0.125rem 1rem $accent-color;
$transition: 0.3s ease;

$slide-distance: 2.5rem;
Expand Down

0 comments on commit e3cbfb5

Please sign in to comment.