Skip to content

Commit

Permalink
fix(button): quick margin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Neox63 committed Jun 26, 2024
1 parent 3a82211 commit 417c62f
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions components/Molecules/Button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,38 @@
cursor: pointer;
text-decoration: none;

& > span.icon {
@apply w-5 h-5;
&-left {
margin-right: rem-convert(16px);
}
&-right {
margin-left: rem-convert(16px);
}
}

&--xl {
width: 100%;

& > span.icon {
@apply w-5 h-5;
&-left {
margin-right: rem-convert(16px);
}
&-right {
margin-left: rem-convert(16px);
}
}
}

&--large,
&--xl {
padding: 16px 24px;
}

&--medium,
&--large {
& > span.icon {
@apply w-5 h-5;
&-left {
margin-right: rem-convert(8px);
}
&-right {
margin-left: rem-convert(8px);
}
}
}

&--medium {
padding: 8px 16px;
}
Expand All @@ -46,6 +59,16 @@
font-family: var(--font-family-button-small);
font-weight: var(--font-weight-button-small);
line-height: var(--line-height-button-small);

& > span.icon {
@apply w-4 h-4;
&-left {
margin-right: rem-convert(4px);
}
&-right {
margin-left: rem-convert(4px);
}
}
}

&--primary {
Expand Down

0 comments on commit 417c62f

Please sign in to comment.