Skip to content

Commit

Permalink
Fix Featured courses responsiveness
Browse files Browse the repository at this point in the history
Signed-off-by: Kipruto <[email protected]>
  • Loading branch information
kelvinkipruto committed Nov 10, 2023
1 parent ae967b6 commit 385c0b0
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@
.grid {
display: flex;
justify-content: space-between;
align-items: center;
gap: 80px;

.item {
width: 280px;
max-width: 280px;
border: 0.5px solid $color-neutral-200;
background-color: $color-shades-white;
align-self: stretch;

article {
height: 100%;
display: flex;
flex-direction: column;

.thumbnail {
.ribbon {
display: none;
Expand Down Expand Up @@ -40,11 +47,14 @@
padding: 20px;
display: flex;
flex-direction: column;
flex: 1 0 0;
height: 100%;
justify-content: space-between;
background: $color-shades-white;

.top-meta {
.entry-title {
height: 100%;

a {
color: $color-primary-700;
font-size: 18px;
Expand Down Expand Up @@ -127,7 +137,7 @@
display: flex;
align-items: center;
justify-content: center;
padding: 4px 10px ;
padding: 4px 10px;
min-width: 54px;
}
}
Expand All @@ -136,4 +146,27 @@

}
}

@include media-breakpoint-down(tablet) {
.grid {
flex-direction: column;
gap: 20px;

.item {
width: 100%;
max-width: 100%;
}
}
}

@include media-breakpoint-down(desktop) {
.grid {
gap: 20px;

.item {
width: 100%;
max-width: 100%;
}
}
}
}

0 comments on commit 385c0b0

Please sign in to comment.