Skip to content

Commit 91e095b

Browse files
committed
Make foonotes responsive
1 parent ed9316c commit 91e095b

1 file changed

Lines changed: 7 additions & 40 deletions

File tree

static/css/markdown-styles.css

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,16 @@
177177
}
178178

179179
.footnotes{
180+
max-width: 50vw;
180181
overflow-wrap: break-word;
181182
}
182183

184+
@media (max-width: 768px) {
185+
.footnotes {
186+
max-width: 100%;
187+
}
188+
}
189+
183190
li{
184191
overflow-wrap: break-word;
185192
}
@@ -188,46 +195,6 @@ a{
188195
overflow-wrap: break-word;
189196
}
190197

191-
/* --- Responsive Table Container --- */
192-
table{
193-
display: block;
194-
width: 100%;
195-
overflow-x: auto; /* Enables horizontal scrolling */
196-
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
197-
border-radius: 8px; /* Optional: for aesthetics */
198-
margin: 1.5em 0; /* Optional: adds vertical spacing */
199-
}
200-
201-
/* --- Basic Table Styling (for a clean look) --- */
202-
/* This styling is optional but recommended */
203-
table {
204-
width: 100%;
205-
border-collapse: collapse;
206-
font-size: 0.95em;
207-
text-align: left;
208-
}
209-
210-
th,
211-
td {
212-
padding: 12px 15px;
213-
border: 1px solid #e1e1e1;
214-
}
215-
216-
thead th {
217-
background-color: #f8f9fa; /* A light grey for the header */
218-
font-weight: 600;
219-
color: #333;
220-
}
221-
222-
tbody tr:nth-of-type(even) {
223-
background-color: #fdfdfd; /* Zebra-striping for readability */
224-
}
225-
226-
tbody tr:hover {
227-
background-color: #f1f1f1; /* Hover effect */
228-
}
229-
230-
231198

232199
/* --- Container for Code Block and Filename --- */
233200
.code-block-container {

0 commit comments

Comments
 (0)