Skip to content

Commit

Permalink
FIX: Field lists bug (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Jan 13, 2022
1 parent 7d64c92 commit ef7d5a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pydata_sphinx_theme/assets/styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,10 @@ dd {
margin-bottom: 10px;
margin-left: 30px;
}

// Prevent field lists from stretching too much on narrow screens
// ref: https://css-tricks.com/preventing-a-grid-blowout/
dl.field-list {
display: grid;
grid-template-columns: fit-content(30%) minmax(0, 1fr);
}

0 comments on commit ef7d5a2

Please sign in to comment.