Skip to content

Commit 27db2d3

Browse files
committed
layout for tables, now they're boxed
1 parent 060d4da commit 27db2d3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

_layouts/default.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,41 @@
7070
text-decoration: underline;
7171
}
7272

73+
/* Boxed table styling */
74+
table {
75+
border-collapse: collapse;
76+
border: 1px solid #ddd;
77+
width: 100%;
78+
margin: 1.5rem 0;
79+
background-color: white;
80+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
81+
}
82+
83+
th, td {
84+
border: 1px solid #ddd;
85+
padding: 0.75rem 1rem;
86+
text-align: left;
87+
}
88+
89+
th {
90+
background-color: #f6f8fa;
91+
font-weight: 600;
92+
color: #111;
93+
text-align: center;
94+
}
95+
96+
td {
97+
text-align: center;
98+
}
99+
100+
tr:nth-child(even) {
101+
background-color: #fafafa;
102+
}
103+
104+
tr:hover {
105+
background-color: #f0f0f0;
106+
}
107+
73108
/* ✅ Scrollable long equations - MathJax 3.x */
74109
/* Target MathJax display math containers (various formats) */
75110
.MathJax-Display,

0 commit comments

Comments
 (0)