Skip to content

Commit

Permalink
Set the margin according to the alignment selected (alshedivat#928)
Browse files Browse the repository at this point in the history
As reported in alshedivat#927, the style of the profile class only considers a
left-margin regardless of the alignment option selected.
Thus, when the user changes the default alignment there is no
corresponding margin to match their selection.
My commit addresses this by enabling the corresponding margin for the
left or right alignment options
  • Loading branch information
cmoralesmx authored and alackles committed Feb 9, 2023
1 parent 8be87e1 commit 3fecd1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ blockquote {
// Profile

.profile {
margin-left: 1rem;
width: 100%;

.address {
Expand All @@ -106,6 +105,12 @@ blockquote {
}
}
}
.profile.float-right{
margin-left: 1rem;
}
.profile.float-left{
margin-right: 1rem;
}

@media (min-width: 576px) {
.profile {
Expand Down

0 comments on commit 3fecd1a

Please sign in to comment.