Skip to content

Commit

Permalink
Fix wrong direction for feature_row with type=right, fix mmistakes#4061
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug authored and minyoongi96 committed Aug 26, 2024
1 parent c40d8e8 commit 25a3bf7
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions _sass/minimal-mistakes/_archive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -285,26 +285,29 @@
inset: 0;
}

&--left {
&--left, &--right {
position: relative;
float: inline-start;
margin-inline: 0;
width: 100%;
clear: both;
font-size: 1.125em;

.archive__item {
float: inline-start;
a.btn::before {
content: '';
position: absolute;
inset: 0;
}

.archive__item-teaser {
margin-bottom: 2em;
}
}

a.btn::before {
content: '';
position: absolute;
inset: 0;
&--left {
float: inline-start;

.archive__item {
float: inline-start;
}

@include breakpoint($small) {
Expand All @@ -315,33 +318,18 @@

.archive__item-body {
float: inline-end;
width: span(7 of 12);
padding-inline-start: gutter(0.5 of 12);
padding-inline-end: gutter(1 of 12);
width: span(7 of 12);
}
}
}

&--right {
position: relative;
float: inline-start;
margin-inline: 0;
width: 100%;
clear: both;
font-size: 1.125em;
float: inline-end;

.archive__item {
float: inline-start;
}

.archive__item-teaser {
margin-bottom: 2em;
}

a.btn::before {
content: '';
position: absolute;
inset: 0;
float: inline-end;
}

@include breakpoint($small) {
Expand All @@ -355,8 +343,8 @@
.archive__item-body {
float: inline-start;
width: span(7 of 12);
padding-inline-start: gutter(0.5 of 12);
padding-inline-end: gutter(1 of 12);
padding-inline-start: gutter(1 of 12);
padding-inline-end: gutter(0.5 of 12);
}
}
}
Expand Down

0 comments on commit 25a3bf7

Please sign in to comment.