Skip to content

Commit

Permalink
Merge pull request #7180 from Automattic/fix/course-list-width
Browse files Browse the repository at this point in the history
Fix formatting of Course List block on course archive page
  • Loading branch information
donnapep authored Sep 20, 2023
2 parents 44e5f50 + d430785 commit cdc78f9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 34 deletions.
68 changes: 34 additions & 34 deletions assets/css/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

/*
* Course page grid
* Legacy course archive page grid (pre-Course List block)
*/
.course-container {
.first {
Expand All @@ -18,53 +18,53 @@
padding: 12px;
float: left;
}
}

.columns-1 {
li.course {
width: 100%;
padding-right: 0;
&.columns-1 {
li.course {
width: 100%;
padding-right: 0;
}
}
}

.columns-2 {
li.course {
width: 50%;
&.columns-2 {
li.course {
width: 50%;
}
}
}

.columns-3 {
li.course {
width: 33.33%;
&.columns-3 {
li.course {
width: 33.33%;
}
}
}

.columns-4 {
li.course {
width: 25%;
&.columns-4 {
li.course {
width: 25%;
}
}
}

.columns-5 {
li.course {
width: 20%;
&.columns-5 {
li.course {
width: 20%;
}
}
}

.columns-6 {
li.course {
width: 16.66%;
&.columns-6 {
li.course {
width: 16.66%;
}
}
}

.columns-7 {
li.course {
width: 13.7%;
&.columns-7 {
li.course {
width: 13.7%;
}
}
}

.columns-8 {
li.course {
width: 11.7%;
&.columns-8 {
li.course {
width: 11.7%;
}
}
}
4 changes: 4 additions & 0 deletions changelog/fix-course-list-width
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix formatting of Course List block on course archive page

0 comments on commit cdc78f9

Please sign in to comment.