Skip to content

Commit

Permalink
Fix grid cards in admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mecrouch committed Dec 13, 2024
1 parent 95fe1e2 commit 2a162bd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,21 @@ svg.feather {
padding-left: 18px;
}

/* Ensure the grid cards inside details.list display as two columns on large screens */
details.list .grid.cards {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.4rem;
padding: 0;
}

/* Maintain responsiveness for smaller screens */
@media (max-width: 768px) {
details.list .grid.cards {
grid-template-columns: 1fr;
}
}

/*Improved styling for grid buttons on home page*/

.md-typeset .md-button {
Expand Down

0 comments on commit 2a162bd

Please sign in to comment.