Skip to content

Commit 23d86df

Browse files
authored
Fix table style for foundation flatpage (#1468)
1 parent e7c6169 commit 23d86df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

djangoproject/scss/_style.scss

+13
Original file line numberDiff line numberDiff line change
@@ -2608,6 +2608,19 @@ dl.data {
26082608
}
26092609
}
26102610

2611+
.table-wrapper {
2612+
// This class is used to avoid the table exceeds the size of the content
2613+
// and add a scrollbar to see the rest of the content in mobile
2614+
display: grid;
2615+
grid-template-columns: repeat(1, minmax(0, 1fr));
2616+
overflow: auto;
2617+
white-space: normal;
2618+
}
2619+
2620+
table.foundation td {
2621+
border-bottom: 1px solid var(--hairline-color);
2622+
padding: 0 5px;
2623+
}
26112624

26122625
table.docutils td,
26132626
table.docutils th {

0 commit comments

Comments
 (0)