Skip to content

Commit

Permalink
chore: remove max width card and add min-width card-size
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasGz committed Jul 25, 2024
1 parent 4d914f4 commit 5981f0e
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions src/components/SizeSelector/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@
}

&__card {
max-width: 12rem;

display: flex;

align-items: center;
justify-content: center;

padding: 2rem 1.5rem;
padding: 1.5rem 0.3rem;

box-sizing: border-box;

background-color: colors.$secondary100;
box-shadow: 0 0 0.3rem 0.3rem colors.$gray150;
outline: 0.3rem solid transparent;
border-radius: 1.8rem;

transition: transform 0.2s ease;
transition: 0.3s ease;

cursor: pointer;
scroll-snap-align: center;

&:focus {
Expand Down Expand Up @@ -98,6 +99,8 @@
}

&__card-size {
min-width: 9rem;

display: flex;
flex-direction: column;
gap: 1.5rem;
Expand All @@ -116,34 +119,47 @@

justify-content: center;

padding: 0.4rem;

background-color: colors.$gray150;
border-radius: 100%;

transition: 0.3s ease;
}

&__container-text {
min-width: max-content;

display: flex;
flex-direction: column;
gap: 0.3em;

align-items: center;

justify-content: center;

text-align: center;
}

&__svg path {
transition: 0.3s ease;

fill: rgb(128, 139, 154);
}

&__title {
font-family: fonts.$primaryFont;
color: colors.$gray800;
font-size: fonts.$xs;
font-weight: fonts.$semiBold;

transition: 0.3s ease;
}

&__text {
font-family: fonts.$primaryFont;
color: colors.$gray600;
font-size: fonts.$xxs;
font-weight: fonts.$regular;

transition: 0.3s ease;
}
}

Expand All @@ -156,7 +172,7 @@
}

&__card {
padding: 4rem 3rem;
padding: 4rem 2rem;

&--active {
.container-size-selector__title {
Expand Down

0 comments on commit 5981f0e

Please sign in to comment.