Skip to content

Commit ba99ea2

Browse files
cmoralesmxpecey
authored andcommitted
Set the margin according to the alignment selected (alshedivat#928)
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
1 parent c27f8af commit ba99ea2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_sass/_base.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ blockquote {
9393
// Profile
9494

9595
.profile {
96-
margin-left: 1rem;
9796
width: 100%;
9897

9998
.address {
@@ -106,6 +105,12 @@ blockquote {
106105
}
107106
}
108107
}
108+
.profile.float-right{
109+
margin-left: 1rem;
110+
}
111+
.profile.float-left{
112+
margin-right: 1rem;
113+
}
109114

110115
@media (min-width: 576px) {
111116
.profile {

0 commit comments

Comments
 (0)