Skip to content

Commit

Permalink
stylelint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina committed Dec 17, 2024
1 parent eaf1f9d commit ce02120
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions scss/_patterns_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,11 @@ $list-step-bullet-margin: $sph--x-large;
.p-list--horizontal {
@extend %vf-list-with-state-icons;
@extend %vf-grid-row;
container-type: inline-size;
}
.p-list--horizontal .p-list__item {
@extend %vf-list-item;
border-top: $border;
}

.p-list--horizontal {
.p-list__item {
@extend %vf-list-item;
border-top: $border;

grid-column-end: span $grid-8-columns-small;

@media (min-width: $threshold-4-6-col) {
Expand All @@ -222,19 +218,19 @@ $list-step-bullet-margin: $sph--x-large;
grid-column-end: span $grid-8-columns / 4;
}
}
&.is-3-cols-on-large {
.p-list__item {
// Skip the first two columns on large
@media (min-width: $threshold-6-12-col) {
&:nth-child(3n+1) {
grid-column-start: 3;
}
&:nth-child(3n+2) {
grid-column-start: 5;
}
&:nth-child(3n+3) {
grid-column-start: 7;
}
}
.p-list--horizontal.is-3-cols-on-large {
.p-list__item {
// Skip the first two columns on large
@media (min-width: $threshold-6-12-col) {
&:nth-child(3n + 1) {
grid-column-start: 3;
}
&:nth-child(3n + 2) {
grid-column-start: 5;
}
&:nth-child(3n + 3) {
grid-column-start: 7;
}
}
}
Expand Down

0 comments on commit ce02120

Please sign in to comment.