Skip to content

Commit

Permalink
Fix the position of links in grid cards
Browse files Browse the repository at this point in the history
  • Loading branch information
muczc1wek committed Jun 7, 2024
1 parent 327c903 commit e8d2e9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions overrides/assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@
}
}

/* Fix position of the links in grid cards */
.md-typeset .grid.cards > ul > li {
display: flex;
flex-direction: column;
/* outline: 1px solid green; */
}
.grid.cards li p:last-child {
display: flex;
flex-grow: 5; /* Probably 2 would be enough, as the grids shouldn't hold too much text to begin with, but to be safe I set it to 5 */
/* outline: 1px solid red; */
}
.grid.cards li p:last-child a {
align-self: flex-end;
}

/* Stretch content area */
.md-main__inner.md-grid {
/* Default 61rem */
Expand Down

0 comments on commit e8d2e9c

Please sign in to comment.