Skip to content

Commit

Permalink
Fix table style for foundation flatpage
Browse files Browse the repository at this point in the history
  • Loading branch information
sabderemane committed Jan 16, 2024
1 parent f46f48b commit f56a210
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions djangoproject/scss/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2608,6 +2608,19 @@ dl.data {
}
}

.table-wrapper {
// This class is used to avoid the table exceeds the size of the content
// and add a scrollbar to see the rest of the content in mobile
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));
overflow: auto;
white-space: normal;
}

table.foundation td {
border-bottom: 1px solid var(--hairline-color);
padding: 0 5px;
}

table.docutils td,
table.docutils th {
Expand Down

0 comments on commit f56a210

Please sign in to comment.