Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
deprecate primary-button
Browse files Browse the repository at this point in the history
  • Loading branch information
ByAnthony committed Apr 27, 2024
1 parent bb612a5 commit b7ca0e4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 24 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Article/Article.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
flex-wrap: wrap;
justify-content: space-between;

@include index.primary-button-link;
@include index.featured-button-link;

p {
text-align: left;
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Footer/Footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@
color: index.$secondary-color;
border: 1px solid index.$primary-light-color;
border-radius: index.$border-radius;
background-color: index.$primary-light-color;
background-color: index.$primary-medium-color;
transition: border-bottom 0.9s ease-in-out, border-bottom 0.9s ease-in-out,
border 0.9s ease-in-out, border 0.9s ease-in-out,
background-color 0.9s ease-in-out, background-color 0.9s ease-in-out;
cursor: pointer;

&:hover {
border: 1px solid index.$secondary-color;
background-color: index.$primary-medium-color;
background-color: index.$primary-dark-color;
}
}

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Roll/Roll.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
text-align: center;
text-decoration: none;

@include index.primary-button-link;
@include index.featured-button-link;

@include index.tablet {
width: 35px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.letter-container {
width: 52px;
background-color: index.$primary-medium-color;
background-color: index.$primary-dark-color;
border: 1px solid index.$primary-light-color;
border-radius: index.$border-radius;

Expand All @@ -19,7 +19,7 @@

.title {
margin: 0;
padding: 12px 0 6px 0;
padding: 8px 0 6px 0;
font-size: 2rem;
font-weight: 700;
color: index.$text-color;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
align-items: center;
padding: index.$m-margin;

@include index.primary-button-link;
@include index.featured-button-link;

@include index.desktop {
padding: index.$padding-card;
Expand Down
19 changes: 2 additions & 17 deletions client/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -215,25 +215,10 @@ li {
}
}

@mixin primary-button-link {
border: 1px solid $primary-light-color;
border-radius: $border-radius;
background-color: $primary-dark-color;
transition: border-bottom 0.9s ease-in-out, border-bottom 0.9s ease-in-out,
border 0.9s ease-in-out, border 0.9s ease-in-out,
background-color 0.9s ease-in-out, background-color 0.9s ease-in-out;
cursor: pointer;

&:hover {
border: 1px solid $secondary-color;
background-color: $primary-light-color;
}
}

@mixin featured-button-link {
border: 1px solid $primary-light-color;
border-radius: $border-radius;
background-color: $primary-light-color;
background-color: $primary-medium-color;
transition: border-bottom 0.9s ease-in-out, border-bottom 0.9s ease-in-out,
border 0.9s ease-in-out, border 0.9s ease-in-out,
background-color 0.9s ease-in-out, background-color 0.9s ease-in-out;
Expand All @@ -245,7 +230,7 @@ li {

&:hover {
border: 1px solid $secondary-color;
background-color: $primary-medium-color;
background-color: $primary-dark-color;
}
}

Expand Down

0 comments on commit b7ca0e4

Please sign in to comment.