Skip to content

Commit f6df399

Browse files
Make columns wider
1 parent f0342d6 commit f6df399

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

_sass/color_schemes/custom.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
// Make the main content area wider
2+
.main-content {
3+
max-width: 1200px !important; // Increase from default ~800px
4+
margin: 0 auto;
5+
}
6+
7+
// Make tables more responsive and wider
8+
table {
9+
width: 100%;
10+
max-width: 100%;
11+
overflow-x: auto;
12+
display: block;
13+
14+
@media (min-width: 768px) {
15+
display: table;
16+
}
17+
}
18+
19+
// Ensure table cells don't wrap unnecessarily
20+
td, th {
21+
white-space: nowrap;
22+
padding: 8px 12px;
23+
24+
// Allow wrapping for longer content in specific columns
25+
&:nth-child(3) { // Lecture column
26+
white-space: normal;
27+
min-width: 200px;
28+
}
29+
30+
&:nth-child(4) { // Assignments column
31+
white-space: normal;
32+
min-width: 150px;
33+
}
34+
}
35+
36+
// Add horizontal scroll for very small screens
37+
@media (max-width: 767px) {
38+
.main-content {
39+
overflow-x: auto;
40+
}
41+
}
42+
143
@media (max-width: $content-width) {
244
.content-nav {
345
display: none;

0 commit comments

Comments
 (0)